Authorization
AIRisk API implements an Authorization Code Grant flow. This is a two-step process.
Authorization Request: Your application directs the user’s browser to AIRisk’s Authorization Endpoint with your
client_id
, aredirect_uri
, and optionally auserid
if you are requesting a user-specific token. If requesting a user-specific token, theuserid
must be an existingid
on someApplicationUser
in the AIRisk deployment. Also,client_id
andclient_secret
must be valid for someAPIUser
in the instances database.redirect_uri
must match at least one comma-separated value in the sameAPIUser
s (as the client id & secret)redirect_uri
column
Authorization Code Redirect: If AIRisk’s authorization server authorizes the request, then it redirects the client back to the specified
redirect_uri
with an authorization code in the URL (e.g. https://localhost/callback?code=REMOTELY_GENERATED_AUTH_CODE_HERE). This code is short-lived and cannot be used by itself except to request a token.
Last updated