feat: Allow to configure OpenShift OAuth scope (#1685)
Signed-off-by: Anatolii Bazko <abazko@redhat.com>pull/1689/head
parent
47d5ae3f05
commit
b31b92b137
|
|
@ -81,6 +81,7 @@ const (
|
|||
OAuthScmConfiguration = "oauth-scm-configuration"
|
||||
AccessToken = "access_token"
|
||||
IdToken = "id_token"
|
||||
OpenShiftOAuthScope = "user:full"
|
||||
|
||||
// Labels
|
||||
KubernetesComponentLabelKey = "app.kubernetes.io/component"
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in New Issue