Skip to content

Commit

Permalink
move entra-id provider into switch (treat like every other provider
Browse files Browse the repository at this point in the history
  • Loading branch information
tuunit authored and jjlakis committed Dec 24, 2024
1 parent 7f4b7ff commit c3a19e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/apis/options/legacy_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -709,10 +709,6 @@ func (l *LegacyProvider) convert() (Providers, error) {
GraphGroupField: l.AzureGraphGroupField,
}

provider.MicrosoftEntraIDConfig = MicrosoftEntraIDOptions{
AllowedTenants: l.EntraIDAllowedTenants,
}

switch provider.Type {
case "github":
provider.GitHubConfig = GitHubOptions{
Expand Down Expand Up @@ -762,6 +758,10 @@ func (l *LegacyProvider) convert() (Providers, error) {
UseApplicationDefaultCredentials: l.GoogleUseApplicationDefaultCredentials,
TargetPrincipal: l.GoogleTargetPrincipal,
}
case "entra-id":
provider.MicrosoftEntraIDConfig = MicrosoftEntraIDOptions{
AllowedTenants: l.EntraIDAllowedTenants,
}
}

if l.ProviderName != "" {
Expand Down

0 comments on commit c3a19e9

Please sign in to comment.