Authorizing Requests

In most cases, when sending requests to the DaaS services, the request includes a header that contains an authorization code. The authorization code is acquired by sending a request to DAE’s DaaS token service.

Authorization API

URL

HTTP Verb

Functionality

/authorize

POST

Login with posting credentials to get access and refresh JSON Web Tokens

Get accessToken and refreshToken

POST https://api.disasteraware.com/authorize

Login with posting credentials to get access and refresh JSON Web Tokens

Request Body

Name
Type
Description

User credential

object

User credential.

{
    "accessToken":"access.token.will.be.here",
    "refreshToken":"refresh.token.will.be.here"
}
curl --location --request POST \
  'https://api.disasteraware.com/authorize' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "username":"your_username", 
    "password":"your_password"
  }'

Please use the provided credentials to complete this request. The response will include a JSON Web Token (JWT) that you will send with the Authorization request header in the following format:

{
    "Authorization": "Bearer <insert-json-web-token>"
}

For more information about JWT please visit jwt.io

Last updated