OIDC: add support for account claim maps (#1186)
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user