Browse Source

docs: Identifier and emailAddress should be equal (#2622)

Derrick Bol 2 years ago
parent
commit
0c645e3744
1 changed files with 2 additions and 1 deletions
  1. 2 1
      docs/docs/guides/core-concepts/auth/index.md

+ 2 - 1
docs/docs/guides/core-concepts/auth/index.md

@@ -546,7 +546,8 @@ export class KeycloakAuthenticationStrategy implements AuthenticationStrategy<Ke
         return this.externalAuthenticationService.createAdministratorAndUser(ctx, {
             strategy: this.name,
             externalIdentifier: userInfo.sub,
-            identifier: userInfo.preferred_username,
+            // identifier and emailAddress should be equal
+            identifier: userInfo.email,
             emailAddress: userInfo.email,
             firstName: userInfo.given_name,
             lastName: userInfo.family_name,