Xeonr Developer Docs
API SpecificationPRIVATEOAuth Provider

Lookup OAuth Code

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

Looks up details of an OAuth authorisation code for the device code flow, returning client and scope information.

Required scopes: private

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

Value in1
Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

oauthCode?string

OAuth code to be looked up

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://auth.xeonr.io/xeonr.auth.private.v1.OAuthService/LookupOAuthCode" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "Client": {
    "clientId": "550e8400-e29b-41d4-a716-446655440000",
    "name": "My OAuth App",
    "websiteUrl": "https://myapp.example.com",
    "logoUrl": "https://cdn.example.com/logos/myapp.png",
    "description": "A sample OAuth application for demonstration purposes",
    "isVerified": "true",
    "createdAt": "2023-01-15T01:30:15.01Z",
    "applicationBindings": [
      {
        "applicationId": "app_prod_myapp",
        "config": {
          "jsonConfig": {
            "property1": {},
            "property2": {}
          }
        }
      }
    ]
  },
  "scopes": [
    {
      "name": "email",
      "description": "Access to your email address",
      "isSensitive": true,
      "application": {
        "applicationId": "app_prod_myapp",
        "name": "My Application",
        "slug": "my-application",
        "websiteUrl": "app.example.com",
        "enabledIdps": [
          "github",
          "discord"
        ]
      },
      "isDelegatable": true
    }
  ],
  "hasPermission": true
}
{
  "code": "not_found",
  "message": "string",
  "details": [
    {
      "type": "string",
      "value": "string",
      "debug": {}
    }
  ]
}