ADNUNTIUS
Search…
/authenticate
Handles User log-in and provides Authentication Tokens.
Name
Type
Constraints
Description
grant_type
String
"password" or ""
Defines the scope of the grant type.
password
String
Authenticating users password
username
String
Authenticating users username
refresh_token
String
scope
String
"ng_api"
Describes what API to access.
Example authentication using grant type password
1
POST https://api.adnuntius.com/api/authenticate?context={{context}}
Copied!
1
{
2
"grant_type": "password",
3
"scope": "ng_api",
4
"username": "{{adn-username}}",
5
"password": "{{adn-password}}"
6
}
Copied!
Example authentication using grant type refresh_token
1
POST https://api.adnuntius.com/api/authenticate?context={{context}}
Copied!
1
{
2
"grant_type": "refresh_token",
3
"scope": "ng_api",
4
"refresh_token": "TK0eTkcK7TiNzrAsBpfaSTu1NVPKWhmdcjMLO..."
5
}
Copied!
Example response for all grant types:
1
{
2
"access_token": "VaOHWOyKRLQkkoO6yATH0Tc2RQcKxHsJssTxvg...",
3
"token_type": "bearer",
4
"expires_in": "3600",
5
"refresh_token": "TK0eTkcK7TiNzrAsBpfaSTu1NVPKWhmdcjMLO..."
6
}
Copied!
Last modified 7mo ago
Copy link