fix onelogin auth
Signed-off-by: Matteo Silvestri <matteosilv@gmail.com>
This commit is contained in:
committed by
Fredrik Adelöw
parent
b78caea0c6
commit
844f5a21bb
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user