oauthPreAuth
Given a set of valid OAuth query parameters for the /oauth/authorize
endpoint, returns a
JSON object containing the necessary data for rendering the pre-authorization screen that
checks if you want to allow an application to access Intercode on your behalf.
This essentially emulates the JSON behavior of
Doorkeeper's API-only mode if you go to
/oauth/authorize
with query parameters. The only reason this query exists, rather than
simply having clients actually call /oauth/authorize
, is that we're running Doorkeeper
in regular mode so that we can get the server-rendered HTML admin views.
When we've implemented our own admin screens for OAuth (see this Github issue), this query will be deprecated.
oauthPreAuth(
queryParams: Json!
): Json!
Arguments
oauthPreAuth.queryParams
● Json!
non-null scalar
A set of HTTP query parameters for /oauth/authorize
, parsed out and
represented as a JSON object.
Type
Json
scalar
An arbitrary object, serialized as JSON