1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

callbacks for argv from window main (#141)

This commit is contained in:
Kyle Spearrin
2020-08-05 10:53:26 -04:00
committed by GitHub
parent 31a0be290b
commit 1513b25a35
2 changed files with 12 additions and 3 deletions

View File

@@ -82,10 +82,10 @@ export class SsoComponent {
const codeVerifierHash = await this.cryptoFunctionService.hash(codeVerifier, 'sha256');
codeChallenge = Utils.fromBufferToUrlB64(codeVerifierHash);
await this.storageService.save(ConstantsService.ssoCodeVerifierKey, codeVerifier);
await this.storageService.save(ConstantsService.ssoStateKey, state);
}
if (state == null) {
state = await this.passwordGenerationService.generatePassword(passwordOptions);
await this.storageService.save(ConstantsService.ssoStateKey, state);
}
const authorizeUrl = this.apiService.identityBaseUrl + '/connect/authorize?' +