Auth0 php support

hello -

is there some way to get better PHP support? i have posted this question and have not received a reply yet. i suspect this provided PHP example is not working correctly, since i was unable to get it to work.


note that using

‘scope’ => ‘openid email name nickname picture’,

works across all Oauth2 logins i have tested thus far (Auth0/google/msn/github/facebook) but does not give me anything except for an email address, but when i use:

‘persist_id_token’ => true,
‘persist_access_token’ => true,
‘persist_refresh_token’ => true,

without the scope, i get everything i want, which is wonderful, except this combination only seems to work on Auth0 and Google, the others (facebook/msn/github) would return an “invalid state” error.

include “profile” for it to work properly.

Thanks for sharing it with the community! I’ve already relayed the feedback to our docs team!

The Auth0-PHP SDK comes with a base Auth0 class that handles common authentication tasks like logging in, logging out, getting user information, and callback processing. These tasks are explained below with examples.

i needed to include this to get the examples working with facebook, msn, and github:

1 Like