mirror of
https://github.com/bitwarden/browser.git
synced 2025-03-24 15:39:43 +01:00
[PM-18945] Add CLI as valid SSO client (#13723)
* Added CLI as valid SSO client. * Updated SsoClientType
This commit is contained in:
parent
c739a884b4
commit
895b36a3d8
libs/auth/src/angular/sso
@ -1,6 +1,10 @@
|
|||||||
import { ClientType } from "@bitwarden/common/enums";
|
import { ClientType } from "@bitwarden/common/enums";
|
||||||
|
|
||||||
export type SsoClientType = ClientType.Web | ClientType.Browser | ClientType.Desktop;
|
export type SsoClientType =
|
||||||
|
| ClientType.Web
|
||||||
|
| ClientType.Browser
|
||||||
|
| ClientType.Desktop
|
||||||
|
| ClientType.Cli;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Abstract class for SSO component services.
|
* Abstract class for SSO component services.
|
||||||
|
@ -199,7 +199,9 @@ export class SsoComponent implements OnInit {
|
|||||||
* @returns True if the value is a valid SSO client type, otherwise false
|
* @returns True if the value is a valid SSO client type, otherwise false
|
||||||
*/
|
*/
|
||||||
private isValidSsoClientType(value: string): value is SsoClientType {
|
private isValidSsoClientType(value: string): value is SsoClientType {
|
||||||
return [ClientType.Web, ClientType.Browser, ClientType.Desktop].includes(value as ClientType);
|
return [ClientType.Web, ClientType.Browser, ClientType.Desktop, ClientType.Cli].includes(
|
||||||
|
value as ClientType,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user