mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 23:03:32 +00:00
feat(sso): [PM-8114] implement SSO component UI refresh
Consolidates existing SSO components into a single unified component in libs/auth, matching the new design system. This implementation: - Creates a new shared SsoComponent with extracted business logic - Adds feature flag support for unauth-ui-refresh - Updates page styling including new icons and typography - Preserves web client claimed domain logic - Maintains backwards compatibility with legacy views PM-8114 --------- Co-authored-by: Jared Snider <116684653+JaredSnider-Bitwarden@users.noreply.github.com> Co-authored-by: Jared Snider <jsnider@bitwarden.com>
This commit is contained in:
20
libs/auth/src/angular/sso/sso-component.service.ts
Normal file
20
libs/auth/src/angular/sso/sso-component.service.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { ClientType } from "@bitwarden/common/enums";
|
||||
|
||||
export type SsoClientType = ClientType.Web | ClientType.Browser | ClientType.Desktop;
|
||||
|
||||
/**
|
||||
* Abstract class for SSO component services.
|
||||
*/
|
||||
export abstract class SsoComponentService {
|
||||
/**
|
||||
* Sets the cookies for the SSO component service.
|
||||
* Used to pass translation messages to the SSO connector page (apps/web/src/connectors/sso.ts) during the SSO handoff process.
|
||||
* See implementation in WebSsoComponentService for example usage.
|
||||
*/
|
||||
setDocumentCookies?(): void;
|
||||
|
||||
/**
|
||||
* Closes the window.
|
||||
*/
|
||||
closeWindow?(): Promise<void>;
|
||||
}
|
||||
Reference in New Issue
Block a user