OIDC: add support for account claim maps (#1186)

This commit is contained in:
Jim authored and GitHub committed 2021-05-04 08:41:04 -04:00
1 parent 4ae5003763
commit 2437cdcc8d
28 files changed
+1456 -200

No files matched your search

@@ -161,6 +161,9 @@ func (r *Repository) getAuthMethods(ctx context.Context, authMethodId string, sc
if agg.ClaimsScopes != "" {
am.ClaimsScopes = strings.Split(agg.ClaimsScopes, aggregateDelimiter)
}
if agg.AccountClaimMaps != "" {
am.AccountClaimMaps = strings.Split(agg.AccountClaimMaps, aggregateDelimiter)
}
authMethods = append(authMethods, &am)
}
return authMethods, nil
@@ -191,6 +194,7 @@ type authMethodAgg struct {
Auds string
Certs string
ClaimsScopes string
AccountClaimMaps string
}
// TableName returns the table name for gorm