cartes.gouv.fr-service
    Preparing search index...

    Service d'authentification à distance utilisant une redirection vers un IAM externe. Ce service gère les redirections de login/logout et résout le statut d'authentification en fonction des paramètres d'URL après redirection.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    settings: any
    authenticated: any

    authentification

    user: any

    user

    documents: any

    documents

    error: any

    erreurs IAM

    mode: any

    mode local ou remote on force toujours le mode d'authentification pour éviter les erreurs de configuration

    url: string
    api: string

    Methods

    • Set Fetch

      Parameters

      • fetcher: any

        fetch instance to sets

      Returns void

    • Save the current service state to the store

      Returns void

      This method saves the current state of the service instance to the service store. It is typically called after any changes to the service's properties to ensure that the latest state is persisted.

      // Usage:
      const service = new ServiceBase();
      service.saveStore();
    • Throw an error

      Parameters

      • error: any

      Returns void

    • Check if the service is pending

      Returns boolean

      • true if pending, false otherwise
    • Stop the pending state

      Returns void

      This method sets the pending state of the service to false, indicating that the service is no longer in a pending state. It is typically called when an operation is completed or cancelled.

    • Get emitter instance used to dispatch global events.

      Returns any

    • Set emitter instance used to dispatch global events.

      Parameters

      • emitter: any

      Returns void

    • Verifie la session Keycloak en utilisant (iframe)

      • soit avec la librairie Keycloak (par défaut)
      • soit via la méthode oauth2

      Parameters

      • adapter: string

        oauth2 or keycloak

      Returns Promise<boolean>

      • true if session is active, false otherwise
    • Check if the authentificate is already done locally

      Returns boolean

      • True if authentificate
    • Check if the authentificate is really done

      Returns Promise<boolean>

      • True if authentificate
    • Check if the access is valid

      Returns Promise<string>

      • Promise that resolves if access is valid, rejects otherwise
    • Get the access login

      Returns Promise<string>

      • Promise that resolves with the access login
    • Get the access logout

      Returns Promise<string>

      • Promise that resolves with the access logout
    • Get the access token

      Returns Promise<void>

      • Promise that resolves with the access token