Skip to content
Advertisement

How to run okta auth sample for php

I download sample code from github https://github.com/okta/samples-php/tree/develop/okta-hosted-login and run it following guide. when I start server, it shows this issue.

PHP Fatal error:  Uncaught Error: Call to undefined function JoseKeyConvertergmp_strval()

if I refresh page it says

Could not exchange code for an access token

how to fix this issue?

Advertisement

Answer

Try to generate a token on okta project manage panel. Copy it to config file in your project

For example:

AUTH_TOKEN:USDJFO34500YFDFSDF2345_W4>%23*^&FG
APP_ID: YOUR APP ID
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement