Lookup OAuth Code
Looks up details of an OAuth authorisation code for the device code flow, returning client and scope information.
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
OAuth code to be looked up
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 "Connect-Timeout-Ms: 1000" \ -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": {}
}
},
"iacManaged": true,
"approved": true,
"mode": "CLIENT_APPLICATION_BINDING_MODE_UNSPECIFIED",
"requestedScopes": [
"string"
],
"approvedScopes": [
"string"
],
"state": "APPLICATION_BINDING_STATE_UNSPECIFIED",
"decisionPending": true,
"decidedAt": "2023-01-15T01:30:15.01Z",
"autoApprovedScopes": [
"string"
],
"callerExchange": true
}
],
"brandProfile": {
"name": "Acme",
"logoUrl": "string",
"primaryColor": "#4F46E5",
"gradientColors": [
"string"
],
"bgImageDarkUrl": "string",
"bgImageLightUrl": "string",
"headline": "string",
"subtitle": "string"
}
},
"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,
"required": true
}
],
"hasPermission": true,
"missingApplications": [
{
"name": "Trellis",
"slug": "trellis",
"clientApplication": true,
"canRequestAccess": true,
"accessRequestState": "ACCESS_REQUEST_STATE_UNSPECIFIED"
}
],
"authorizationDetails": [
{
"type": "uploads:bucket",
"applicationId": "550e8400-e29b-41d4-a716-446655440000",
"title": "My Photos Bucket",
"description": "Contains 234 photos",
"approved": true,
"raw": {
"property1": {},
"property2": {}
}
}
],
"limitableResourceTypes": [
{
"type": "forge:repository",
"application": {
"applicationId": "app_prod_myapp",
"name": "My Application",
"slug": "my-application",
"websiteUrl": "app.example.com",
"enabledIdps": [
"github",
"discord"
]
},
"parents": [
"string"
],
"actions": [
"string"
]
}
]
}Get Pushed Request Hints POST
Returns a pushed authorization request's prompt, max_age, login_hint and acr_values (RFC 9126). **Authentication:** None required
Process Logout POST
Processes an RP-Initiated Logout request, revoking credentials and returning front-channel logout URIs for the frontend to render. **Required scopes:** `auth:oauth`