Skip to content

Auth AM API user

Authorization of AM API user

To get the value of request header x-am-authorization, use g.req.auth.authAMUser.

const am_api_user_auth = g.req.auth.authAMUser;

Get token of API user

  • The 'authTokenType' can be 'AM' and 'AM_DB'. The 'AM' is use for the API user.
  • The API user has assigned the groups. Each group can have different permission.
  • As per the groups assigned to API user, the application(database) user can access only that much of data.
  • For more information click here.
1
2
3
4
5
6
7
{
    "authTokenType": "AM",
    "authTokenAM": {
        "u": "API_user_username",
        "p": "API_user_password"
    }
}