Skip to Content
Xeonr Developer Docs
API SpecificationPRIVATEOAuth Provider

Complete OAuth Flow

POST
/xeonr.auth.private.v1.OAuthService/CompleteOAuthFlow

Completes the OAuth authorisation flow after user consent, generating an authorisation code and returning the redirect URL.

Required scopes: auth:oauth

Authorization

BearerAuth
AuthorizationBearer <token>

JWT access token for internal API access. Requires 'private' scope for most endpoints, 'admin' scope for administrative operations.

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

acceptType?string

Indicates if the user accepts the OAuth flow

Value in"ACCEPT_TYPE_DENY" | "ACCEPT_TYPE_ALLOW" | "ACCEPT_TYPE_ALLOW_WITH_EXISTING_GRANT"
responseType?string

Type of response expected from the OAuth flow

codeChallenge?|

Code challenge for PKCE

codeChallengeMethod?|
state?string

State parameter to maintain state between request and callback

redirectUri?string

URI to redirect to after completing the OAuth flow. Required unless request_uri is set (see the message rules); empty, it is not checked.

Formaturi
Length1 <= length <= 1024
scope?array<>

Scopes requested during the OAuth flow. Required unless request_uri is set (see the message rules).

Items1 <= items
forever?boolean

Indicates if the authorization should be long-lived

clientId?string
Formatuuid
withoutApproval?boolean

If set, the request will only succeed if we can skip the OAuth flow.

nonce?|
Length1 <= length <= 1024
resource?|

RFC 8707: Resource indicator to restrict token audience

Formaturi
maxAge?|

OIDC: Maximum authentication age in seconds. Forces re-auth if auth_time is older.

Formatint32
acrValues?|

OIDC: Requested Authentication Context Class Reference values (space-separated)

requestUri?|

PAR request URI containing authorization_details and other params

prompt?|

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.

loginHint?|

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.

mcpConnection?|

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.

requiredScopes?array<>

The authorization request's required_scope parameter (AUTH-435). Ignored when request_uri is set: the pushed request's is used.

Itemsitems <= 100
consentSelection?|

The 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.

[key: string]?never

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"
}