diff --git a/edit/auth/azuread.vue b/edit/auth/azuread.vue index 2f377980cc..651f81ae81 100644 --- a/edit/auth/azuread.vue +++ b/edit/auth/azuread.vue @@ -72,7 +72,7 @@ export default { }, replyUrl() { - return `${ window.location.origin }/verify-auth`; + return `${ window.location.origin }/verify-auth-azure`; }, tenantId() { diff --git a/store/auth.js b/store/auth.js index 929221a846..0592d44fd7 100644 --- a/store/auth.js +++ b/store/auth.js @@ -126,7 +126,7 @@ export const actions = { const params = { response_type: 'code', response_mode: 'query' }; redirectUrl = addParams(redirectUrl, params ); - returnToUrl = `${ window.location.origin }/verify-auth`; + returnToUrl = `${ window.location.origin }/verify-auth-azure`; } const nonce = await dispatch('setNonce', opt); @@ -143,6 +143,7 @@ export const actions = { } let url = removeParam(redirectUrl, GITHUB_SCOPE); + const params = { [GITHUB_SCOPE]: scopes.join(','), [GITHUB_NONCE]: base64Encode(nonce, 'url')