mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 22:03:36 +00:00
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>
21 lines
607 B
TypeScript
21 lines
607 B
TypeScript
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>;
|
|
}
|