From daf8c684ee16ea135716d9f034378a9a40c25f68 Mon Sep 17 00:00:00 2001 From: mauriziovitale Date: Fri, 19 Jul 2024 13:35:56 +0200 Subject: [PATCH] Remove change on core --- lib/core/src/lib/auth/oidc/auth.service.ts | 56 +++++++++++----------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/lib/core/src/lib/auth/oidc/auth.service.ts b/lib/core/src/lib/auth/oidc/auth.service.ts index 1007d05192..4d44aa2d37 100644 --- a/lib/core/src/lib/auth/oidc/auth.service.ts +++ b/lib/core/src/lib/auth/oidc/auth.service.ts @@ -22,40 +22,40 @@ import { Observable } from 'rxjs'; * Provide authentication/authorization through OAuth2/OIDC protocol. */ export abstract class AuthService { - abstract onLogin: Observable; + abstract onLogin: Observable; - abstract onTokenReceived: Observable; + abstract onTokenReceived: Observable; - /** Subscribe to whether the user has valid Id/Access tokens. */ - abstract authenticated$: Observable; + /** Subscribe to whether the user has valid Id/Access tokens. */ + abstract authenticated$: Observable; - /** Get whether the user has valid Id/Access tokens. */ - abstract authenticated: boolean; + /** Get whether the user has valid Id/Access tokens. */ + abstract authenticated: boolean; - /** Subscribe to errors reaching the IdP. */ - abstract idpUnreachable$: Observable; + /** Subscribe to errors reaching the IdP. */ + abstract idpUnreachable$: Observable; - /** - * Initiate the IdP login flow. - */ - abstract login(currentUrl?: string): Promise | void; + /** + * Initiate the IdP login flow. + */ + abstract login(currentUrl?: string): Promise | void; - abstract baseAuthLogin(username: string, password: string): Observable; + abstract baseAuthLogin(username: string, password: string): Observable ; - /** - * Disconnect from IdP. - * - * @returns Promise may be returned depending on implementation - */ - abstract logout(): Promise | void; + /** + * Disconnect from IdP. + * + * @returns Promise may be returned depending on implementation + */ + abstract logout(): Promise | void; - /** - * Complete the login flow. - * - * In browsers, checks URL for auth and stored state. Call this once the application returns from IdP. - * - * @returns Promise, resolve with stored state, reject if unable to reach IdP - */ - abstract loginCallback(loginOptions?: LoginOptions): Promise; - abstract updateIDPConfiguration(...args: any[]): void; + /** + * Complete the login flow. + * + * In browsers, checks URL for auth and stored state. Call this once the application returns from IdP. + * + * @returns Promise, resolve with stored state, reject if unable to reach IdP + */ + abstract loginCallback(loginOptions?: LoginOptions): Promise; + abstract updateIDPConfiguration(...args: any[]): void; }