ngeo
    Preparing search index...

    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
    Index

    Constructors

    Properties

    originalUrl: string = window.location.href
    verifyConnection_: number

    Methods

    • Parameters

      • login: string

        Login.

      • oldPwd: string

        Old password.

      • newPwd: string

        New password.

      • confPwd: string

        New password confirmation.

      • Optionalotp: string = undefined

        One-time password.

      Returns Promise<void>

      Promise.

    • Parameters

      • login: string

        Login name.

      • pwd: string

        Password.

      • Optionalotp: string = undefined

        One-time password.

      Returns Promise<void | User>

      Promise.

    • Parameters

      • login: string

        Login name.

      Returns Promise<AuthenticationDefaultResponse>

      Promise.

    • 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