diff --git a/src/index.js b/src/index.js index d9bcbe5..432622d 100644 --- a/src/index.js +++ b/src/index.js @@ -236,7 +236,7 @@ async function startLogin(request, env) { authorize.searchParams.set('client_id', env.AUTH_CLIENT_ID); authorize.searchParams.set('response_type', 'code'); authorize.searchParams.set('redirect_uri', env.AUTH_REDIRECT_URI); - authorize.searchParams.set('scope', env.AUTH_SCOPE || 'openid profile email phones'); + authorize.searchParams.set('scope', env.AUTH_SCOPE || 'openid profile email'); authorize.searchParams.set('state', state); authorize.searchParams.set('nonce', nonce); authorize.searchParams.set('code_challenge', challenge); diff --git a/wrangler.toml b/wrangler.toml index 05bbb57..10c42db 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -11,7 +11,7 @@ routes = [ [vars] AUTH_REDIRECT_URI = "https://qa-test.baroncs.co.kr/auth/callback" AUTH_POST_LOGOUT_REDIRECT_URI = "https://qa-test.baroncs.co.kr/" -AUTH_SCOPE = "openid tenants profile email phones" +AUTH_SCOPE = "openid tenants profile email" AUTH_CLIENT_ID = "e1270f17-e192-4c8c-84b6-54e9698d0f36" AUTH_AUTHORIZE_URL = "https://app.brsw.kr/oidc/oauth2/auth" AUTH_TOKEN_URL = "https://app.brsw.kr/oidc/oauth2/token"