Integration OAuth2 callback of a client metadata document (popup)
Preview
Not yet in the latest release.
The redirect URI a Client ID Metadata Document of this instance lists (GET /oauth/client-metadata/{document}), one per authorization server, in a namespace dynamic registration never uses: a response here only completes a flow started with a metadata-document client of the server whose tag it carries — never one started with a DCR or administrator client, and never at /callback or /callback/{tag}. Any server can fetch any document, so such a flow also requires RFC 9207 iss naming the server the request was sent to; a response without it, or naming another server, is refused (RFC 9700 §4.4 mix-up defence). Otherwise identical to integrationsOAuthCallback.
/api/integrations/callback/cimd/{tag}Cookie session from Better Auth. Requires X-Org-Id header for org-scoped routes.
In: cookie
Path Parameters
The authorization server's tag: the first 22 characters of base64url(SHA-256(issuer)), the issuer of its validated RFC 8414 metadata.
^[A-Za-z0-9_-]{22}$Query Parameters
Authorization code returned by the IdP
OAuth state parameter (UUID)
OAuth error code (if the IdP rejected the request)
RFC 9207 issuer identifier of the authorization server that issued the response. Compared with the issuer the request was sent to whenever present.
curl -X GET "https://your-instance/api/integrations/callback/cimd/string"