跳到主要内容

getPublicClientInfo

ClientInfoResponse getPublicClientInfo(clientId)

GET /api/2.0/oauth2/clients/{clientId}/public/info

Get public client info

Returns the same consent-facing client information as the signed read, but without requiring a portal signature. It is meant for a login or consent page that has to render the client before the user is known, so it resolves the client by ID alone: there is no authentication, no tenant scoping and no creator check, and any caller who knows a client ID can read that client's public details. It still exposes no secret, no redirect URIs and no allowed origins. Being unauthenticated it is rate-limited on a separate, tighter budget than the signed endpoints. An unknown client ID, and an identifier that is not a client ID at all, are both reported as 404.

Parameters​

NameInTypeDescriptionNotes
clientIdpathStringID of the client to retrieve[required] [example: 6c7cf17b-1bd3-47d5-94c6-be2d3570e168] [minLength: 1]

Responses​

Status codeDescriptionTypeResponse headers
200Successfully retrieved client public infoClientInfoResponse-
400The client ID is blank or contains only whitespaceProblemDetail-
404No client with this ID exists, or the ID cannot be parsed as a client IDProblemDetail-
429Too many requests - rate limit exceededProblemDetail-
500Internal server error occurredProblemDetail-
405The HTTP method is not allowed for this pathProblemDetail-
406The Accept header does not allow application/jsonProblemDetail-

Return type​

ClientInfoResponse

Authorization​

No authorization required

HTTP request headers​

  • Content-Type: Not defined
  • Accept: application/json