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

SSO login for generic clients and CLI (#140)

* sso

* move break into try block

* make client id dynamic

* clientId is a string, DOH!

* reject if port not available

* lint fixes
This commit is contained in:
Kyle Spearrin
2020-08-03 15:24:26 -04:00
committed by GitHub
parent 101c5688c4
commit 7d49902eea
5 changed files with 175 additions and 45 deletions

View File

@@ -261,7 +261,8 @@ export class PasswordGenerationService implements PasswordGenerationServiceAbstr
}
async getPasswordGeneratorPolicyOptions(): Promise<PasswordGeneratorPolicyOptions> {
const policies: Policy[] = await this.policyService.getAll(PolicyType.PasswordGenerator);
const policies: Policy[] = this.policyService == null ? null :
await this.policyService.getAll(PolicyType.PasswordGenerator);
let enforcedOptions: PasswordGeneratorPolicyOptions = null;
if (policies == null || policies.length === 0) {