Skip to content

Commit

Permalink
fix(authentication-service): allow keycloak username to be an auth id…
Browse files Browse the repository at this point in the history
… as well, if needed

gh-0
  • Loading branch information
samarpan-b committed Sep 12, 2021
1 parent 8aab9e1 commit e831237
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ export class KeycloakVerifyProvider
if (
!creds ||
creds.authProvider !== 'keycloak' ||
creds.authId !== profile.keycloakId
(creds.authId !== profile.keycloakId &&
creds.authId !== profile.username)
) {
throw new HttpErrors.Unauthorized(AuthErrorKeys.InvalidCredentials);
}
Expand Down

0 comments on commit e831237

Please sign in to comment.