mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +00:00
Remove change on core
This commit is contained in:
@@ -22,40 +22,40 @@ import { Observable } from 'rxjs';
|
|||||||
* Provide authentication/authorization through OAuth2/OIDC protocol.
|
* Provide authentication/authorization through OAuth2/OIDC protocol.
|
||||||
*/
|
*/
|
||||||
export abstract class AuthService {
|
export abstract class AuthService {
|
||||||
abstract onLogin: Observable<any>;
|
abstract onLogin: Observable<any>;
|
||||||
|
|
||||||
abstract onTokenReceived: Observable<any>;
|
abstract onTokenReceived: Observable<any>;
|
||||||
|
|
||||||
/** Subscribe to whether the user has valid Id/Access tokens. */
|
/** Subscribe to whether the user has valid Id/Access tokens. */
|
||||||
abstract authenticated$: Observable<boolean>;
|
abstract authenticated$: Observable<boolean>;
|
||||||
|
|
||||||
/** Get whether the user has valid Id/Access tokens. */
|
/** Get whether the user has valid Id/Access tokens. */
|
||||||
abstract authenticated: boolean;
|
abstract authenticated: boolean;
|
||||||
|
|
||||||
/** Subscribe to errors reaching the IdP. */
|
/** Subscribe to errors reaching the IdP. */
|
||||||
abstract idpUnreachable$: Observable<Error>;
|
abstract idpUnreachable$: Observable<Error>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initiate the IdP login flow.
|
* Initiate the IdP login flow.
|
||||||
*/
|
*/
|
||||||
abstract login(currentUrl?: string): Promise<void> | void;
|
abstract login(currentUrl?: string): Promise<void> | void;
|
||||||
|
|
||||||
abstract baseAuthLogin(username: string, password: string): Observable<TokenResponse>;
|
abstract baseAuthLogin(username: string, password: string): Observable<TokenResponse> ;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Disconnect from IdP.
|
* Disconnect from IdP.
|
||||||
*
|
*
|
||||||
* @returns Promise may be returned depending on implementation
|
* @returns Promise may be returned depending on implementation
|
||||||
*/
|
*/
|
||||||
abstract logout(): Promise<void> | void;
|
abstract logout(): Promise<void> | void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Complete the login flow.
|
* Complete the login flow.
|
||||||
*
|
*
|
||||||
* In browsers, checks URL for auth and stored state. Call this once the application returns from IdP.
|
* 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
|
* @returns Promise, resolve with stored state, reject if unable to reach IdP
|
||||||
*/
|
*/
|
||||||
abstract loginCallback(loginOptions?: LoginOptions): Promise<string | undefined>;
|
abstract loginCallback(loginOptions?: LoginOptions): Promise<string | undefined>;
|
||||||
abstract updateIDPConfiguration(...args: any[]): void;
|
abstract updateIDPConfiguration(...args: any[]): void;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user