bshaffer / oauth2-server-php-docs

documentation for the oauth2-server-php library
231 stars 148 forks source link

Add custom assertions/claims in id_token #99

Closed kamrankhatti closed 7 years ago

kamrankhatti commented 7 years ago

I want to add email and scope in id_token is it possible? I notice in IdToken.php file we can pass $userClaims in createIdToken() method but how? - don't know :(

For further details visit stack overflow link.

Thanks

bluebaroncanada commented 7 years ago

You might be talking about JWT/OIDC/transparent tokens(as opposed to opaque tokens).