Skip to content

Commit

Permalink
Merge pull request #9 from favipcj/microsoft-conn
Browse files Browse the repository at this point in the history
Update microsoft.go GroupNameFormat type as it doesnt seem to be working as expected
  • Loading branch information
favipcj authored Jun 12, 2024
2 parents 981df85 + e325f92 commit 84ec4e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions connector/microsoft/microsoft.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ type GroupNameFormat string

// Possible values for GroupNameFormat
const (
GroupID GroupNameFormat = "id"
GroupName GroupNameFormat = "name"
GroupID string = "id"
GroupName string = "name"
)

const (
Expand All @@ -50,7 +50,7 @@ type Config struct {
Tenant string `json:"tenant"`
OnlySecurityGroups bool `json:"onlySecurityGroups"`
Groups []string `json:"groups"`
GroupNameFormat GroupNameFormat `json:"groupNameFormat"`
GroupNameFormat string `json:"groupNameFormat"`
UseGroupsAsWhitelist bool `json:"useGroupsAsWhitelist"`
EmailToLowercase bool `json:"emailToLowercase"`

Expand Down Expand Up @@ -118,7 +118,7 @@ type microsoftConnector struct {
clientSecret string
tenant string
onlySecurityGroups bool
groupNameFormat GroupNameFormat
groupNameFormat string
groups []string
useGroupsAsWhitelist bool
logger log.Logger
Expand Down

0 comments on commit 84ec4e5

Please sign in to comment.