Error Responses
401 - Unauthorized
For example, if passing in an unknown
client_id
, the endpoint returns a response like:With Parameters:
type
: string url - Link to the RFCtitle
: string - Human-readable name of the errorstatus
: int - The Error CodetraceId
: string - The id of the trace with which to use to check the stack trace later on.
Note: It’s recommended to also include a "state" parameter (in our case:
code
) in the authorization URL (not shown above) to maintain state between the request and callback (protecting against CSRF attacks). The AIRisk authorization server will return this state value unmodified in the redirect. This is part of OAuth2 best practices, though for brevity the examples here focus on the core parameters.
Last updated