/authenticate

Handles User log-in and provides Authentication Tokens.

Example authentication using grant type password

POST https://api.adnuntius.com/api/authenticate?context={{context}}
{
    "grant_type": "password",
    "scope": "ng_api",
    "username": "{{adn-username}}",
    "password": "{{adn-password}}"
}

Example authentication using grant type refresh_token

POST https://api.adnuntius.com/api/authenticate?context={{context}}
{
    "grant_type": "refresh_token",
    "scope": "ng_api",
    "refresh_token": "TK0eTkcK7TiNzrAsBpfaSTu1NVPKWhmdcjMLO..."
}

Example response for all grant types:

{
    "access_token": "VaOHWOyKRLQkkoO6yATH0Tc2RQcKxHsJssTxvg...",
    "token_type": "bearer",
    "expires_in": "3600",
    "refresh_token": "TK0eTkcK7TiNzrAsBpfaSTu1NVPKWhmdcjMLO..."
}

Last updated