mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +01:00
suth service support for complete sso login (#136)
This commit is contained in:
parent
fe167beda9
commit
261a20031f
@ -18,6 +18,8 @@ export abstract class AuthService {
|
||||
remember?: boolean) => Promise<AuthResult>;
|
||||
logInComplete: (email: string, masterPassword: string, twoFactorProvider: TwoFactorProviderType,
|
||||
twoFactorToken: string, remember?: boolean) => Promise<AuthResult>;
|
||||
logInSsoComplete: (code: string, codeVerifier: string, redirectUrl: string,
|
||||
twoFactorProvider: TwoFactorProviderType, twoFactorToken: string, remember?: boolean) => Promise<AuthResult>;
|
||||
logOut: (callback: Function) => void;
|
||||
getSupportedTwoFactorProviders: (win: Window) => any[];
|
||||
getDefaultTwoFactorProvider: (u2fSupported: boolean) => TwoFactorProviderType;
|
||||
|
@ -142,6 +142,13 @@ export class AuthService implements AuthServiceAbstraction {
|
||||
remember);
|
||||
}
|
||||
|
||||
async logInSsoComplete(code: string, codeVerifier: string, redirectUrl: string,
|
||||
twoFactorProvider: TwoFactorProviderType, twoFactorToken: string, remember?: boolean): Promise<AuthResult> {
|
||||
this.selectedTwoFactorProviderType = null;
|
||||
return await this.logInHelper(null, null, code, codeVerifier, redirectUrl, null,
|
||||
twoFactorProvider, twoFactorToken, remember);
|
||||
}
|
||||
|
||||
logOut(callback: Function) {
|
||||
callback();
|
||||
this.messagingService.send('loggedOut');
|
||||
|
Loading…
Reference in New Issue
Block a user