mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-23 19:49:13 +02:00
allow overriding with policy option
This commit is contained in:
parent
4d04838ebd
commit
6157363f49
1 changed files with 5 additions and 0 deletions
|
@ -57,6 +57,11 @@ func (o *Options) GetIdentityProviderForPolicy(policy *Policy) (*identity.Provid
|
|||
if policy.IDPClientSecret != "" {
|
||||
idp.ClientSecret = policy.IDPClientSecret
|
||||
}
|
||||
if v := policy.IDPAccessTokenAllowedAudiences; v != nil {
|
||||
idp.AccessTokenAllowedAudiences = &identity.Provider_StringList{
|
||||
Values: slices.Clone(*v),
|
||||
}
|
||||
}
|
||||
}
|
||||
idp.Id = idp.Hash()
|
||||
return idp, nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue