mirror of
https://github.com/bitwarden/browser
synced 2026-01-03 09:03:32 +00:00
* [deps] Autofill: Update prettier to v3 * prettier formatting updates --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jonathan Prusik <jprusik@classynemesis.com>
63 lines
2.3 KiB
TypeScript
63 lines
2.3 KiB
TypeScript
import { Component } from "@angular/core";
|
|
import { ActivatedRoute, Router } from "@angular/router";
|
|
|
|
import { SsoComponent as BaseSsoComponent } from "@bitwarden/angular/auth/components/sso.component";
|
|
import { ApiService } from "@bitwarden/common/abstractions/api.service";
|
|
import { AuthService } from "@bitwarden/common/auth/abstractions/auth.service";
|
|
import { ConfigServiceAbstraction } from "@bitwarden/common/platform/abstractions/config/config.service.abstraction";
|
|
import { CryptoFunctionService } from "@bitwarden/common/platform/abstractions/crypto-function.service";
|
|
import { EnvironmentService } from "@bitwarden/common/platform/abstractions/environment.service";
|
|
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
|
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
|
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
|
import { StateService } from "@bitwarden/common/platform/abstractions/state.service";
|
|
import { PasswordGenerationServiceAbstraction } from "@bitwarden/common/tools/generator/password";
|
|
import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.service.abstraction";
|
|
|
|
@Component({
|
|
selector: "app-sso",
|
|
templateUrl: "sso.component.html",
|
|
})
|
|
export class SsoComponent extends BaseSsoComponent {
|
|
constructor(
|
|
authService: AuthService,
|
|
router: Router,
|
|
i18nService: I18nService,
|
|
syncService: SyncService,
|
|
route: ActivatedRoute,
|
|
stateService: StateService,
|
|
platformUtilsService: PlatformUtilsService,
|
|
apiService: ApiService,
|
|
cryptoFunctionService: CryptoFunctionService,
|
|
environmentService: EnvironmentService,
|
|
passwordGenerationService: PasswordGenerationServiceAbstraction,
|
|
logService: LogService,
|
|
configService: ConfigServiceAbstraction,
|
|
) {
|
|
super(
|
|
authService,
|
|
router,
|
|
i18nService,
|
|
route,
|
|
stateService,
|
|
platformUtilsService,
|
|
apiService,
|
|
cryptoFunctionService,
|
|
environmentService,
|
|
passwordGenerationService,
|
|
logService,
|
|
configService,
|
|
);
|
|
super.onSuccessfulLogin = async () => {
|
|
syncService.fullSync(true);
|
|
};
|
|
|
|
super.onSuccessfulLoginTde = async () => {
|
|
syncService.fullSync(true);
|
|
};
|
|
|
|
this.redirectUri = "bitwarden://sso-callback";
|
|
this.clientId = "desktop";
|
|
}
|
|
}
|