Skip to content

Commit

Permalink
#
Browse files Browse the repository at this point in the history
Signed-off-by: abarreiro <abarreiro@vmware.com>
  • Loading branch information
adambarreiro committed Apr 30, 2024
1 parent abf731a commit b447beb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions govcd/org_oidc.go
Expand Up @@ -82,8 +82,10 @@ func (adminOrg *AdminOrg) SetOpenIdConnectSettings(settings types.OrgOAuthSettin
settings.Scope = wellKnownSettings.Scope
}
if settings.OIDCAttributeMapping == nil {
// The whole mapping is missing, we take the whole struct from wellknown endpoint
settings.OIDCAttributeMapping = wellKnownSettings.OIDCAttributeMapping
} else if wellKnownSettings.OIDCAttributeMapping != nil {
// Some mappings are present, others are missing. We take the missing ones from wellknown endpoint
if settings.OIDCAttributeMapping.EmailAttributeName == "" {
settings.OIDCAttributeMapping.EmailAttributeName = wellKnownSettings.OIDCAttributeMapping.EmailAttributeName
}
Expand Down

0 comments on commit b447beb

Please sign in to comment.