mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 10:13:31 +00:00
setup launchSsoBrowserWindow() for Desktop
This commit is contained in:
@@ -1314,11 +1314,11 @@ const safeProviders: SafeProvider[] = [
|
||||
provide: LoginService,
|
||||
useClass: DefaultLoginService,
|
||||
deps: [
|
||||
SsoLoginServiceAbstraction,
|
||||
PasswordGenerationServiceAbstraction,
|
||||
CryptoFunctionServiceAbstraction,
|
||||
EnvironmentService,
|
||||
PasswordGenerationServiceAbstraction,
|
||||
PlatformUtilsServiceAbstraction,
|
||||
SsoLoginServiceAbstraction,
|
||||
],
|
||||
}),
|
||||
];
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user