diff --git a/ui/src/views/authentication/component/OIDC.vue b/ui/src/views/authentication/component/OIDC.vue index a8ed1d98e..2666bc647 100644 --- a/ui/src/views/authentication/component/OIDC.vue +++ b/ui/src/views/authentication/component/OIDC.vue @@ -39,6 +39,9 @@ + + + ({ tokenEndpoint: '', userInfoEndpoint: '', scope: '', + state: '', clientId: '', clientSecret: '', redirectUrl: '' diff --git a/ui/src/views/login/index.vue b/ui/src/views/login/index.vue index fff8a874c..4cacd7ee5 100644 --- a/ui/src/views/login/index.vue +++ b/ui/src/views/login/index.vue @@ -184,6 +184,9 @@ function redirectAuth(authType: string) { if (authType === 'OIDC') { const scope = config.scope || 'openid+profile+email' url = `${config.authEndpoint}?client_id=${config.clientId}&redirect_uri=${redirectUrl}&response_type=code&scope=${scope}` + if (config.state) { + url += `&state=${config.state}` + } } if (authType === 'OAuth2') { url =