Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AuthManager

Hierarchy

  • AuthManager

Constructors

Properties

Methods

Constructors

constructor

  • new AuthManager(serverUrl: string, serverType: ServerType, requestClient: RequestClient, loginCallback: function): AuthManager

Properties

userName

userName: string = ""

Methods

checkSession

  • checkSession(): Promise<object>
  • Checks whether a session is active, or login is required.

    Returns Promise<object>

    • a promise which resolves with an object containing two values - a boolean isLoggedIn, and a string userName.

logIn

  • logIn(username: string, password: string): Promise<object>
  • Logs into the SAS server with the supplied credentials.

    Parameters

    • username: string

      a string representing the username.

    • password: string

      a string representing the password.

    Returns Promise<object>

logOut

  • logOut(): Promise<boolean>

Generated using TypeDoc