feat: add azure devops backend (#4427)

This commit is contained in:
Ben Hulan
2020-11-26 04:55:24 -06:00
committed by GitHub
parent 864b3d0410
commit 4e6dc88efb
21 changed files with 1482 additions and 2 deletions

View File

@ -42,7 +42,16 @@ export default class ImplicitAuthenticator {
authURL.searchParams.set('response_type', 'token');
authURL.searchParams.set('scope', options.scope);
if (options.prompt != null && options.prompt != undefined) {
authURL.searchParams.set('prompt', options.prompt);
}
if (options.resource != null && options.resource != undefined) {
authURL.searchParams.set('resource', options.resource);
}
const state = JSON.stringify({ auth_type: 'implicit', nonce: createNonce() });
authURL.searchParams.set('state', state);
document.location.assign(authURL.href);