...
Info |
---|
|
Environments / endpoints
TEST |
|
|
| ||||||||
PRODUCTION |
|
|
|
Making a request
Request headers
Key | Value |
---|---|
Content-Type | application/json |
Request body
Field | Description | Example | Data type |
---|---|---|---|
username | The username that was provided by the DI service desk | myName | String |
password | The password that was provided by the DI service desk | secret!23 | String |
MinutesValid | Values are between 1 and 1440 minutes which indicates the tome the Token is valid | 1440 |
String |
Curl request example
Code Block |
---|
curl -X POST \ https://ws.di.no/ws/json/auth/v-3/login/1440 \ -H 'Content-Type: application/json' \ -d "{\"username\": \"myname\", \"password\": \"secret\"}" |
...
The endpoint replies with a response object in JSON format, containing the following data
Field | Description | Example | Data type |
---|---|---|---|
token | The JWT token to be used in subsequent requests | aVeryLongString | String |
The security token should be placed in the Authorization header like this:
...