The following section appears at the appsettings.json configuration file. It allows you to specify whether an RPIAuthKey authentication token needs to be passed when making calls to API endpoint methods that require the roles listed therein.
"BasicAuthenticationRequireToken":
{
"Standard": false,
"Forms": true,
"ListenerQueue": true,
"Recommendations": true,
"Views": true
}
In this case, methods protected by the Standard role do not require an RPIAuthKey authentication token, whereas those protected by the Forms role do require a token.
If authentication is not satisfied when calling a method, the following body is returned:
{
"Message": "Authorization has been denied for this request."
}
The return's status is 401 Unauthorized.