Authentification
Récupération du jeton d'accès
Requête
Point de terminaison
POST /auth/login
Paramètres
| Paramètre | Type | Description |
|---|---|---|
| String | Adresse Email du compte | |
| password | String | Mot de passe du compte |
Réponse
| Attribut | Type | Description |
|---|---|---|
| access_token | String | Jeton d'accès aux données |
| type | String | Type d'authentification |
| expires_in | Number | Nombre de secondes avant l'expiration du jeton |
Exemple
Requête
curl -X POST 'https://sandbox-data.orishas-finance.com/api/auth/login' \
-d [email protected] \
-d password=TestUserPassword
Réponse
{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
"token_type": "bearer",
"expires_in": 8640000
}
Autorisation
Pour s'authentifier avec le jeton d'authentifiaction, il faut passer le jeton d'accès comme la valeur de l'entête Authorization