1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-20 02:03:39 +00:00

setup launchSsoBrowserWindow() for Desktop

This commit is contained in:
rr-bw
2024-09-14 12:59:51 -07:00
parent da18b42f80
commit d88606a6fd
7 changed files with 44 additions and 23 deletions

View File

@@ -11,12 +11,12 @@ import { PasswordGenerationServiceAbstraction } from "@bitwarden/generator-legac
export class DefaultLoginService implements LoginService {
constructor(
protected ssoLoginService: SsoLoginServiceAbstraction,
// TODO-rr-bw: refactor to not use deprecated service
protected passwordGenerationService: PasswordGenerationServiceAbstraction,
protected cryptoFunctionService: CryptoFunctionService,
protected environmentService: EnvironmentService,
// TODO-rr-bw: refactor to not use deprecated service
protected passwordGenerationService: PasswordGenerationServiceAbstraction,
protected platformUtilsService: PlatformUtilsService,
protected ssoLoginService: SsoLoginServiceAbstraction,
) {}
// Web

View File

@@ -251,8 +251,14 @@
{{ "logInWithPasskey" | i18n }}
</button>
<!-- Link to SSO page -->
<button type="button" bitButton block buttonType="secondary" routerLink="/sso">
<!-- Button to Login with SSO -->
<button
type="button"
bitButton
block
buttonType="secondary"
(click)="launchSsoBrowserWindow('desktop')"
>
<i class="bwi bwi-provider tw-mr-1"></i>
{{ "useSingleSignOn" | i18n }}
</button>