Is it possible to map a single attribute returned from OAuth2 to multiple attributes within OpenAM? I’ve read these may be stored in a hash table so this may be causing an issue with unique keys, so is the only way to achieve this to use a custom attribute mapper class?
Basically, we are trying to create accounts from social logins using OAuth2 and set the uid and mail attribute to the email address returned from Facebook etc.
The main reason for doing this is so users can login with their more user friendly email address as their username. So perhaps this would be better to simply let the uid be stored as the id returned from OAuth2, and instead adjust the LDAP authentication to add the mail attribute to the list of attributes to search for an authenticated user?