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 three values
    • a boolean isLoggedIn
    • a string userName and
    • a form loginForm if not loggedin.

logIn

  • logIn(username: string, password: string): Promise<LoginResult>
  • 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<LoginResult>

    • a boolean isLoggedin and a string username

logOut

  • logOut(): Promise<boolean>

redirectedLogIn

  • redirectedLogIn(__namedParameters: object): Promise<LoginResult>
  • Opens Pop up window to SAS Login screen. And checks if user has finished login process.

    Parameters

    • __namedParameters: object
      • onLoggedOut: undefined | function

    Returns Promise<LoginResult>

Generated using TypeDoc