...
Obsolete.Tokens should be refreshed with Keycloak.
Authorize a user and get "remember me" token.
User is still logged on to other services. For real logout, call Keycloack.
Deck of Cards |
---|
|
Card |
---|
default | true |
---|
label | URL / Resource / JSON Structure |
---|
| Resource: authorize URL: https://api-stage.bimplus.net/v2/authorize JSON Structure: Name | Mandatory / Optional | Type | Description |
---|
user_id | mandatory | string | The email address of the user | password | mandatory | string | The user's password | client_id | optional | string | The identifier of the used client | application_id | optional | string | The id of the application | remember_me | mandatory | bool | Set it to true |
|
Card |
---|
| Once the "remember_me" parameter is set to true, we will get 2 extra parameters in the json response (i.e remember_me_token & remember_me_expires_in) The remember_me_expires_in value will be set to 30 days. The client have to save the client_id & remember_me_token in their localStorage, cookie etc. So, for next authentication, they have to use this token as seen in the request json tab. By this way, if this set it is not necessary for the user to enter their credentials every time (i.e the credentials are not required to generate the auth token. Rather the remember_me_token will generate the auth token each time)
Returns a BIMPlus-token for further API calls. These tokens are supported only for backward compatibility only and API will be removed in 2026. |
Card |
---|
|
Code Block |
---|
borderColor | Green |
---|
lang | xml |
---|
title | Headers |
---|
| Content-Type: application/json
|
Code Block |
---|
borderColor | Red |
---|
lang | xml |
---|
title | JSON |
---|
| {
"user_id" : "test@bimplus.net",
"password" : "test",
"remember_me" : "true",
"application_id": "0106c8baad467c08e26f026852cb7525",
"client_id": "0864b512-1776-4a55-8ee5-2b19d7d9b7ea"
}
|
|
Card |
---|
|
Code Block |
---|
borderColor | Green |
---|
lang | xml |
---|
title | Status |
---|
| Status: 200 OK
|
Code Block |
---|
borderColor | Red |
---|
lang | xml |
---|
title | JSON |
---|
| {
"access_token": "35eb2b5e94b54d5aafa6b6a7b6e8de01",
"expires_in": 28799,
"application_id": "0106c8baad467c08e26f026852cb7525",
"client_id": "0864b512-1776-4a55-8ee5-2b19d7d9b7ea",
"remember_me": true,
"remember_me_token": "b930e0179baf4f919caeab28328190a3",
"remember_me_expires_in" : 2591999
}
|
|
|
...