Skip to content

Commit

Permalink
fix: set the correct value for the identityProviderMapper when using …
Browse files Browse the repository at this point in the history
…keycloak-oidc identity provider (#850)
  • Loading branch information
stale-vegait authored Nov 10, 2023
1 parent ea2a048 commit fc26653
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func getUserTemplateImporterIdentityProviderMapperFromData(ctx context.Context,
return nil, err
}

if identityProvider.ProviderId == "facebook" || identityProvider.ProviderId == "google" {
if identityProvider.ProviderId == "facebook" || identityProvider.ProviderId == "google" || identityProvider.ProviderId == "keycloak-oidc" {
rec.IdentityProviderMapper = "oidc-username-idp-mapper"
} else {
rec.IdentityProviderMapper = fmt.Sprintf("%s-username-idp-mapper", identityProvider.ProviderId)
Expand Down

0 comments on commit fc26653

Please sign in to comment.