Skip to content
Snippets Groups Projects
Commit 28cd801f authored by srosse's avatar srosse
Browse files

OO-5029: additional fallbacks for OAuth identity lookup

parent 546c3c58
No related branches found
No related tags found
No related merge requests found
......@@ -227,6 +227,12 @@ public class OAuthDispatcher implements Dispatcher {
if(identity == null) {
identity = securityManager.findIdentityByLogin(id);
}
if(identity == null) {
identity = securityManager.findIdentityByNameCaseInsensitive(id);
}
if(identity == null) {
identity = securityManager.findIdentityByNickName(id);
}
if(identity != null) {
securityManager.createAndPersistAuthentication(identity, registration.getAuthProvider(), id, null, null);
registration.setIdentity(identity);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment