This class serves as a base for services that require user authentication and document management. It initializes the service with options such as authentication status, user information, documents, and error handling. It also sets the mode of operation (local or remote) and prepares the API URL. The class includes methods for managing user access, such as checking if access is valid, getting login/logout information, and retrieving access tokens.
authentification
user
documents
erreurs IAM
mode local ou remote on force toujours le mode d'authentification pour éviter les erreurs de configuration
Get Fetch
Set Fetch
fetch instance to sets
Save the current service state to the store
Throw an error
Check if the service is pending
Get emitter instance used to dispatch global events.
Set emitter instance used to dispatch global events.
Verifie la session Keycloak en utilisant (iframe)
oauth2 or keycloak
Check if the access is valid
Get the access login
Get the access logout
Get the access token
Check if the authentificate is already done locally
Check if the authentificate is really done
Classdesc
Classe ServiceBase
Description
Cette classe sert de base pour les services qui nécessitent une authentification utilisateur et une gestion de documents. Elle initialise le service avec des options telles que -le statut d'authentification, -les informations utilisateur, -les documents -et la gestion des erreurs.