The Maritime Domain Awareness API uses basic authentication to authorize users to access the provided services.
Basic authentication is based on a username and password, that is provided through an HTTP or HTTPS request.
To authenticate, provide a header with Authorization as the header name, Basic as the authentication scheme and a base64 encoding of the username and password.
The format of the username and password is joining them by a semicolon :, username:password and then encode it as Base64.
The full header field is in the following format:
"Authorization": "Basic <credentials>"
, where credentials is the base64 encoding of the username and password.
To encode the username and password as Base64 format, simply search for an online Base64 converter and paste your username and password in the format username:password and then use the result as the credentials.