mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-24 20:18:13 +02:00
azure: support deriving credentials from client id, client secret and provider url (#1300)
This commit is contained in:
parent
882b6b54ee
commit
c4c8ef8e53
6 changed files with 104 additions and 13 deletions
|
@ -632,8 +632,9 @@ func (o *Options) Validate() error {
|
|||
}
|
||||
|
||||
// if no service account was defined, there should not be any policies that
|
||||
// assert group membership
|
||||
if o.ServiceAccount == "" {
|
||||
// assert group membership (except for azure which can be derived from the client
|
||||
// id, secret and provider url)
|
||||
if o.ServiceAccount == "" && o.Provider != "azure" {
|
||||
for _, p := range o.Policies {
|
||||
if len(p.AllowedGroups) != 0 {
|
||||
return fmt.Errorf("config: `allowed_groups` requires `idp_service_account`")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue