Complete OAuth Flow
Completes the OAuth authorisation flow after user consent, generating an authorisation code and returning the redirect URL.
Required scopes: auth:oauth
Authorization
BearerAuth JWT access token for internal API access. Requires 'private' scope for most endpoints, 'admin' scope for administrative operations.
In: header
Header Parameters
Define the version of the Connect protocol
Define the timeout, in ms
Request Body
application/json
Indicates if the user accepts the OAuth flow
"ACCEPT_TYPE_DENY" | "ACCEPT_TYPE_ALLOW" | "ACCEPT_TYPE_ALLOW_WITH_EXISTING_GRANT"Type of response expected from the OAuth flow
Code challenge for PKCE
State parameter to maintain state between request and callback
URI to redirect to after completing the OAuth flow. Required unless request_uri is set (see the message rules); empty, it is not checked.
uri1 <= length <= 1024Scopes requested during the OAuth flow. Required unless request_uri is set (see the message rules).
1 <= itemsIndicates if the authorization should be long-lived
uuidIf set, the request will only succeed if we can skip the OAuth flow.
1 <= length <= 1024RFC 8707: Resource indicator to restrict token audience
uriOIDC: Maximum authentication age in seconds. Forces re-auth if auth_time is older.
int32OIDC: Requested Authentication Context Class Reference values (space-separated)
PAR request URI containing authorization_details and other params
OIDC: space-delimited prompt values (none, login, consent, select_account). none = fail if any interaction (login or consent) would be required; login = force re-authentication; consent = force the consent screen.
OIDC: login_hint — a hint (e.g. email or username) about the identity the client expects to authenticate, used to pre-fill/select the account.
The connection picked on the consent screen when the resource is the central MCP gateway (GetPublicClientResponse.mcp_connection). On ALLOW it becomes the new grant's connection record when the code is redeemed. Refused when the resource is not the MCP gateway. Absent = an unconfigured connection.
The authorization request's required_scope parameter (AUTH-435). Ignored when request_uri is set: the pushed request's is used.
items <= 100The person's narrowing of the request on the consent screen (AUTH-435). Absent = the request as asked (as before). Applied after a pushed request's parameters, so it narrows what was pushed. Refused for the MCP gateway, whose picker sends mcp_connection.
Response Body
application/json
application/json
curl -X POST "https://auth.xeonr.io/xeonr.auth.private.v1.OAuthService/CompleteOAuthFlow" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{}'{
"url": "https://myapp.example.com/oauth/callback?code=abc123&state=xyz123state"
}Complete OAuth Code POST
Completes the device code flow by approving or denying the authorisation request. **Required scopes:** `auth:oauth`
Get Public Client POST
Retrieves public details of an OAuth client for displaying on the consent screen, including requested scopes and user permissions. **Required scopes:** `auth:oauth`