Skip to Content
Xeonr Developer Docs
API SpecificationPRIVATEOAuth Provider

Get Public Client

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

Retrieves public details of an OAuth client for displaying on the consent screen, including requested scopes and user permissions.

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

clientId?string

Unique identifier for the OAuth Client

Formatuuid
scopes?array<>
requestUri?|

PAR request URI (if using Pushed Authorization Requests)

resource?|

RFC 8707 resource indicator from the authorization request. Ignored when request_uri is set (the pushed request's resource wins). Used only to tell the consent screen whether to show the MCP connection picker.

Lengthlength <= 1024
requiredScopes?array<>

The authorization request's required_scope parameter (AUTH-435): scopes the client cannot work without, so the consent screen does not offer to untick them. Ignored when request_uri is set (the pushed request's wins). openid is always required when requested.

Itemsitems <= 100
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://auth.xeonr.io/xeonr.auth.private.v1.OAuthService/GetPublicClient" \  -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,
  "authorizationDetails": [
    {
      "type": "uploads:bucket",
      "applicationId": "550e8400-e29b-41d4-a716-446655440000",
      "title": "My Photos Bucket",
      "description": "Contains 234 photos",
      "approved": true,
      "raw": {
        "property1": {},
        "property2": {}
      }
    }
  ],
  "missingApplications": [
    {
      "name": "Trellis",
      "slug": "trellis",
      "clientApplication": true,
      "canRequestAccess": true,
      "accessRequestState": "ACCESS_REQUEST_STATE_UNSPECIFIED"
    }
  ],
  "mcpConnection": true,
  "mcpRequestedRecord": {
    "teams": [
      "string"
    ],
    "allTeams": true,
    "products": {
      "property1": {
        "toolsets": [
          "string"
        ],
        "teams": [
          "string"
        ],
        "resources": [
          {
            "type": "string",
            "identifier": "string",
            "actions": [
              "string"
            ]
          }
        ]
      },
      "property2": {
        "toolsets": [
          "string"
        ],
        "teams": [
          "string"
        ],
        "resources": [
          {
            "type": "string",
            "identifier": "string",
            "actions": [
              "string"
            ]
          }
        ]
      }
    },
    "allProducts": true,
    "allToolsets": true,
    "defaultToolsets": [
      "string"
    ]
  },
  "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"
      ]
    }
  ]
}