File

src/api/aaai/authProvider.interface.ts

Description

Authentication Provider, abstraction via interface allow us to change the mode of authentication without changes rippling throught he app.

Index

Methods

Methods

getManageUrl
getManageUrl()
Returns : string
getUser
getUser()
Returns : null | AAAIUser
login
login()

Attempt to login.

Returns : void
logout
logout()

Attempt to logout.

Returns : void
watchForUserChange
watchForUserChange()
Returns : Observable<null | AAAIUser>
import { AAAIUser } from './aaaiUser.interface';
import { Observable } from 'rxjs';

/** Authentication Provider, abstraction via interface allow us to change the mode of authentication
 * without changes rippling throught he app. */
export interface AuthenticationProvider {
  /**
   * Attempt to login.
   */
  login(): void;

  /**
   * Attempt to logout.
   */
  logout(): void;

  watchForUserChange(): Observable<null | AAAIUser>;
  getUser(): null | AAAIUser;

  getManageUrl(): string;
}

results matching ""

    No results matching ""