Skip to content

Commit

Permalink
I know it's halloween, but still... we should rewrite this in Ruby
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Snaps <[email protected]>
  • Loading branch information
alexsnaps committed Oct 24, 2024
1 parent b445436 commit fdc7c7b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pkg/evaluators/identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,13 @@ func (config *IdentityConfig) ResolveExtendedProperties(pipeline auth.AuthPipeli
authJSON := pipeline.GetAuthorizationJSON()

for _, extendedProperty := range config.ExtendedProperties {
resolved, err := extendedProperty.ResolveFor(extendedIdentityObject, authJSON)
if err != nil {
return nil, err
if extendedProperty.Value != nil {
resolved, err := extendedProperty.ResolveFor(extendedIdentityObject, authJSON)
if err != nil {
return nil, err
}
extendedIdentityObject[extendedProperty.Name] = resolved
}
extendedIdentityObject[extendedProperty.Name] = resolved
}

return extendedIdentityObject, nil
Expand Down

0 comments on commit fdc7c7b

Please sign in to comment.