Using OAuth 2.0 Through OpenAM
To enable roles mapping and username retrieval with OpenAM, perform the following configuration in the IdP:
1. Add value isMemberOf to the LDAP User Attributes list in your Data Store.
2. Add values uid|Username and isMemberOf|Groups to the scopes mapping in your OAuth agent configuration.
Example configuration in Panopticon.properties: