1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 13:53:34 +00:00

feat(SSO): (Auth/[PM-22110] Remove Alternate Login Options when SSO Required (#16340)

If a user is part of an org that has the `RequireSso` policy, when that user successfully logs in we add their email to a local `ssoRequiredCache` on their device. The next time this user goes to the `/login` screen on this device, we will use that cache to determine that for this email we should only show the "Use single sign-on" button and disable the alternate login buttons.

These changes are behind the flag: `PM22110_DisableAlternateLoginMethods`
This commit is contained in:
rr-bw
2025-09-22 08:32:20 -07:00
committed by GitHub
parent b455cb5986
commit 3bbc6c564c
15 changed files with 539 additions and 19 deletions

View File

@@ -900,7 +900,11 @@ export default class MainBackground {
this.restrictedItemTypesService,
);
this.ssoLoginService = new SsoLoginService(this.stateProvider, this.logService);
this.ssoLoginService = new SsoLoginService(
this.stateProvider,
this.logService,
this.policyService,
);
this.userVerificationApiService = new UserVerificationApiService(this.apiService);