feat: Allow to configure OpenShift OAuth scope (#1685)

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
pull/1689/head
Anatolii Bazko 2023-05-24 10:17:31 +03:00 committed by GitHub
parent 47d5ae3f05
commit b31b92b137
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -81,6 +81,7 @@ const (
OAuthScmConfiguration = "oauth-scm-configuration"
AccessToken = "access_token"
IdToken = "id_token"
OpenShiftOAuthScope = "user:full"
// Labels
KubernetesComponentLabelKey = "app.kubernetes.io/component"

View File

@ -78,7 +78,7 @@ upstreams = [
]
client_id = "%s"
client_secret = "%s"
scope = "user:full"
scope = "%s"
openshift_service_account = "%s"
cookie_secret = "%s"
cookie_expire = "24h0m0s"
@ -91,6 +91,7 @@ skip_provider_button = false
ctx.CheHost,
oauthClientName,
oauthSecret,
utils.GetValue(ctx.CheCluster.Spec.Networking.Auth.OAuthScope, constants.OpenShiftOAuthScope),
GatewayServiceName,
cookieSecret,
skipAuthConfig(ctx.CheCluster))