Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Constructors

constructor

Properties

verifyConnection_

verifyConnection_: number

Methods

changePassword

  • changePassword(login: string, oldPwd: string, newPwd: string, confPwd: string, otp?: string): Promise<void>
  • Parameters

    • login: string

      Login.

    • oldPwd: string

      Old password.

    • newPwd: string

      New password.

    • confPwd: string

      New password confirmation.

    • otp: string = undefined

    Returns Promise<void>

    Promise.

checkUser_

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

    Parameters

    • data: User

      Ajax response.

    Returns User

    Response.

getEmail

  • getEmail(): string

getRolesIds

  • getRolesIds(): number[]

getRolesNames

  • getRolesNames(): string[]

handleDisconnection

  • handleDisconnection(): void

login

  • login(login: string, pwd: string, otp?: string): Promise<void | User>
  • Parameters

    • login: string

      Login name.

    • pwd: string

      Password.

    • otp: string = undefined

    Returns Promise<void | User>

    Promise.

logout

  • logout(): Promise<void>

onSuccessfulLogin

resetPassword

  • resetPassword(login: string): Promise<AuthenticationDefaultResponse>
  • Parameters

    • login: string

      Login name.

    Returns Promise<AuthenticationDefaultResponse>

    Promise.

Generated using TypeDoc