Reputation: 41
We wish to return custom attributes from LDAP server as part of OAuth access token.
I could not find a concrete answer, please avise. Thank you.
Upvotes: 4
Views: 927
Reputation: 8332
It's indeed both possible and advisable, for example the spring security implementation provides an interface allowing to enrich the access token with custom properties.
Upvotes: 0
Reputation: 2488
Yes you can add custom attributes in addition to standards properties like , (access_token,refresh_token, expiry) etc.
The spec does not impose strict property usage , check the sample response mentioned in spec OAuth2 Spec
Upvotes: 2