mirror of https://github.com/rancher/dashboard.git
Merge pull request #2564 from mantis-toboggan-md/bugfix-auth-azure
Fix azuread auth route
This commit is contained in:
commit
c1741c6430
|
|
@ -72,7 +72,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
replyUrl() {
|
replyUrl() {
|
||||||
return `${ window.location.origin }/verify-auth`;
|
return `${ window.location.origin }/verify-auth-azure`;
|
||||||
},
|
},
|
||||||
|
|
||||||
tenantId() {
|
tenantId() {
|
||||||
|
|
|
||||||
|
|
@ -126,7 +126,7 @@ export const actions = {
|
||||||
const params = { response_type: 'code', response_mode: 'query' };
|
const params = { response_type: 'code', response_mode: 'query' };
|
||||||
|
|
||||||
redirectUrl = addParams(redirectUrl, params );
|
redirectUrl = addParams(redirectUrl, params );
|
||||||
returnToUrl = `${ window.location.origin }/verify-auth`;
|
returnToUrl = `${ window.location.origin }/verify-auth-azure`;
|
||||||
}
|
}
|
||||||
|
|
||||||
const nonce = await dispatch('setNonce', opt);
|
const nonce = await dispatch('setNonce', opt);
|
||||||
|
|
@ -143,6 +143,7 @@ export const actions = {
|
||||||
}
|
}
|
||||||
|
|
||||||
let url = removeParam(redirectUrl, GITHUB_SCOPE);
|
let url = removeParam(redirectUrl, GITHUB_SCOPE);
|
||||||
|
|
||||||
const params = {
|
const params = {
|
||||||
[GITHUB_SCOPE]: scopes.join(','),
|
[GITHUB_SCOPE]: scopes.join(','),
|
||||||
[GITHUB_NONCE]: base64Encode(nonce, 'url')
|
[GITHUB_NONCE]: base64Encode(nonce, 'url')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue