Class AuthenticationService

An "authentication" service for a GeoMapFish application. Upon loading, it launches a request to determine whether a user is currently logged in or not.

The possible API requests it supports, which are all self-explanatory, are:

  • changePassword
  • login
  • logout
  • resetPassword

Hierarchy

  • AuthenticationService

Constructors

Properties

verifyConnection_: number

Methods

  • Returns

    Promise.

    Parameters

    • login: string

      Login.

    • oldPwd: string

      Old password.

    • newPwd: string

      New password.

    • confPwd: string

      New password confirmation.

    • Optional otp: string = undefined

      One-time password.

    Returns Promise<void>

  • Check the user to have a user with all parameters in all cases.

    Returns

    Response.

    Parameters

    • data: User

      Ajax response.

    Returns User

  • Returns

    Promise.

    Parameters

    • login: string

      Login name.

    • pwd: string

      Password.

    • Optional otp: string = undefined

      One-time password.

    Returns Promise<void | User>

  • Returns

    Promise.

    Parameters

    • login: string

      Login name.

    Returns Promise<AuthenticationDefaultResponse>

  • Parameters

    • userState: UserState

      state of the user.

    • noReload: boolean

      Don't request a new user object from the back-end after logging out, defaults to false.

    Returns void

Generated using TypeDoc