Variable introspection_response_body_when_token_is_retrievedConst
introspection_response_body_when_token_is_retrieved: TObject<
{
active: TBoolean;
client_id: TString;
exp: TOptional<TNumber>;
iat: TOptional<TNumber>;
iss: TOptional<TString>;
jti: TOptional<TString>;
me: TString;
scope: TString;
},
> = ...
Introspection Response.
OAuth 2.0 Token Introspection requires only
active
in the introspection response. IndieAuth requires alsome
. It's not clear whether IndieAuth also requiresclient_id
andscope
.An access token with no scope should be invalid, but I am not sure I should treat as invalid a refresh token that has no associated scope.
The presence of
client_id
andscope
allows a stricter token validation, so I think it makes sense to err on the side of caution and require both.