fix onelogin auth

Signed-off-by: Matteo Silvestri <matteosilv@gmail.com>
This commit is contained in:
Matteo Silvestri
2024-04-19 13:05:14 +01:00
committed by Fredrik Adelöw
parent b78caea0c6
commit 844f5a21bb
2 changed files with 2 additions and 1 deletions
@@ -76,7 +76,7 @@ export default class OneLoginAuth {
oauthRequestApi,
provider,
environment,
defaultScopes: ['openid', 'email', 'profile', 'offline_access'],
defaultScopes: ['openid', 'email', 'profile'],
scopeTransform(scopes) {
return scopes.map(scope => {
if (OIDC_SCOPES.has(scope)) {
@@ -58,6 +58,7 @@ export const oneLoginAuthenticator = createOAuthAuthenticator({
},
async start(input, helper) {
input.scope = 'openid email profile';
return helper.start(input, {
accessType: 'offline',
prompt: 'consent',