1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-08 12:40:26 +00:00
Files
browser/libs/auth/src/angular/sso/sso-component.service.ts
Todd Martin 895b36a3d8 [PM-18945] Add CLI as valid SSO client (#13723)
* Added CLI as valid SSO client.

* Updated SsoClientType
2025-03-07 18:30:28 -05:00

25 lines
634 B
TypeScript

import { ClientType } from "@bitwarden/common/enums";
export type SsoClientType =
| ClientType.Web
| ClientType.Browser
| ClientType.Desktop
| ClientType.Cli;
/**
* 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>;
}