Permalink
Browse files

Merge pull request #977 from Microsoft/jwilaby/#976-azure-login

#976 - azure sign in tool now prompts for username with each login
  • Loading branch information...
justinwilaby committed Oct 11, 2018
2 parents 6c97c1b + 9a43889 commit 7eff20f915d215deff979723a9d6d7c5bf7f717f
Showing with 5 additions and 6 deletions.
  1. +5 −6 packages/app/main/src/services/azureAuthWorkflowService.ts
@@ -47,7 +47,7 @@ export class AzureAuthWorkflowService {
private static config: Config;
private static jwks: Jwks;
public static * retrieveAuthToken(renew: boolean = false, redirectUri: string): IterableIterator<any> {
public static* retrieveAuthToken(renew: boolean = false, redirectUri: string): IterableIterator<any> {
const authWindow = yield this.launchAuthWindow(renew, redirectUri);
authWindow.show();
const result = yield this.waitForAuthResult(authWindow, redirectUri);
@@ -62,7 +62,7 @@ export class AzureAuthWorkflowService {
yield armToken;
}
public static * enterSignOutWorkflow(prompt: boolean): IterableIterator<any> {
public static* enterSignOutWorkflow(prompt: boolean): IterableIterator<any> {
const signOutWindow = yield this.launchSignOutWindow(prompt);
signOutWindow.show();
@@ -139,11 +139,10 @@ export class AzureAuthWorkflowService {
`nonce=${nonce}`,
'x-client-SKU=Js',
'x-client-Ver=1.0.17',
'resource=https://management.core.windows.net/'
'resource=https://management.core.windows.net/',
`prompt=${renew ? 'none' : 'consent'}`
];
if (renew) {
bits.push('prompt=none');
}
const url = bits.join('&');
browserWindow.loadURL(url);
return new Promise<BrowserWindow>(resolve => {

0 comments on commit 7eff20f

Please sign in to comment.