Currently, when integrating Artifactory with Oauth OpenID, Artifactory is looking for a "preferred_username" or "email" fields in the JSON response.
In some cases, non of these are returned in the JSON. In these cases we did noticed the "unique_name" is being responded.
According to this: http://kb.mit.edu/confluence/display/istcontrib/Logging+in+Users+to+your+application+using+OpenID+Connect
"The preferred_username and email fields should never be used as unique identifiers"
This can be resolved by one of the 2:
1. Add the "unique_name" as an identifier.
2. Provide the user to decide which of the fields in the JSON should be used as the username in Artifactory (In the UI).