mirror of
https://github.com/grafana/grafana.git
synced 2024-11-27 03:11:01 -06:00
Auth: Add missing skipOrgRoleSync property to SocialBase for GenericOAuth (#72752)
* add missing cfg for skiporgrolesync * add google skiporgrolesync * removed google skip * update docs to reflect google * remove docs update for google
This commit is contained in:
parent
2c949a6a33
commit
27f57fe112
@ -27,6 +27,7 @@ type SocialGenericOAuth struct {
|
||||
teamIdsAttributePath string
|
||||
teamIds []string
|
||||
allowedGroups []string
|
||||
skipOrgRoleSync bool
|
||||
}
|
||||
|
||||
func (s *SocialGenericOAuth) IsGroupMember(groups []string) bool {
|
||||
|
@ -239,6 +239,7 @@ func ProvideService(cfg *setting.Cfg,
|
||||
teamIds: sec.Key("team_ids").Strings(","),
|
||||
allowedOrganizations: util.SplitString(sec.Key("allowed_organizations").String()),
|
||||
allowedGroups: util.SplitString(sec.Key("allowed_groups").String()),
|
||||
skipOrgRoleSync: cfg.GenericOAuthSkipOrgRoleSync,
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user