Migrate Keycloak to EnrichSession & support multiple groups

This commit is contained in:
Nick Meves
2020-12-24 14:04:19 -08:00
parent 89e0a77a8f
commit 3369799853
4 changed files with 183 additions and 102 deletions
+4 -1
View File
@@ -263,7 +263,10 @@ func parseProviderInfo(o *options.Options, msgs []string) []string {
p.SetRepo(o.GitHubRepo, o.GitHubToken)
p.SetUsers(o.GitHubUsers)
case *providers.KeycloakProvider:
p.SetGroup(o.KeycloakGroup)
// Backwards compatibility with `--keycloak-group` option
if len(o.KeycloakGroups) > 0 {
p.SetAllowedGroups(o.KeycloakGroups)
}
case *providers.GoogleProvider:
if o.GoogleServiceAccountJSON != "" {
file, err := os.Open(o.GoogleServiceAccountJSON)