tokens
Crée un nouveau token personnel
Changed onCette méthode permet de créer un nouveau token personnel.
post/api/v2/tokens/personal
Request
- The document declares no server URL.
- Auth: one of:
- OAuth 2 (authorization code, authorization URL http://localhost:8082/realms/referentiel-applications/protocol/openid-connect/auth, token URL http://localhost:8082/realms/referentiel-applications/protocol/openid-connect/token)
- API key in header x-refapp-token
Request body
Example request
{
"description": "Token pour l'application X",
"name": "Service X",
"expiresAt": "2023-12-31T23:59:59.999Z"
}Response
Token créé avec succès
Example response
{
"id": "abc123def456ghi789jkl012mno345pq",
"description": "Token pour l'application X",
"name": "Service X",
"expiresAt": "2023-12-31T23:59:59.999Z",
"status": "active",
"createdBy": {
"id": "abc123def456ghi789jkl012mno345pq",
"email": "jean.dupont@beta.gouv.fr"
},
"userImpersonate": {
"id": "abc123def456ghi789jkl012mno345pq",
"email": "jean.dupont@beta.gouv.fr"
},
"scopeOrganization": {
"id": "f09ed26a-8415-476a-be3b-ada479291c34",
"path": "Direction de la transformation numérique",
"sigle": "dtnum",
"parentId": "f09ed26a-8415-476a-be3b-ada479291c34",
"businessDivisionId": "f09ed26a-8415-476a-be3b-ada479291c34",
"businessDivision": {
"label": "farm"
},
"maiaReferences": [
{
"id": "f09ed26a-8415-476a-be3b-ada479291c34",
"maiaRef": "MI/DNUM/SDID",
"organizationId": "f09ed26a-8415-476a-be3b-ada479291c34"
}
]
},
"password": "xyz987uvw654rst321opq098nml765kj"
}Changes
- info
added the required property
to the response with the status
- info
- info
added the optional property
/////to the response with the status
- info