...
Info |
---|
|
Environments / endpoints
TEST |
| https://staging-ws.di.no/ws/json/auth/v-2/login | ||||||
PRODUCTION |
| https://ws.di.no/ws/json/auth/v-2/login |
...
Field | Description | Example | Data type | Count |
---|---|---|---|---|
username | The username that was provided by the DI service desk | myName | String1 | |
password | The password that was provided by the DI service desk | secret!23 | String1 |
Curl request example
Code Block |
---|
curl https://ws.di.no/ws/json/auth/v-2/login \ -H "Content-Type:application/json" \ -d "{\"username\": \"myname\", \"password\": \"secret\"}" |
...
Field | Description | Example | Data type | Count |
---|---|---|---|---|
token | The JWT token to be used in subsequent requests | aVeryLongString | String1 |
The security token should be placed in theĀ Authorization header like this:
...