Integration OAuth2 callback of an auto-provisioned (DCR) client's authorization server (popup)
The redirect URI a dynamically registered (RFC 7591) client is registered with and sends, one per authorization server ({tag} derives from its validated issuer): the server a remote MCP manifest fixes, or one chosen per connection (AFPS §7.3: an issuer or source.remote.url templated over connection variables). One per server is the RFC 9700 §4.4 mix-up defence, so the response must arrive at the tag of the server the request was sent to: a mismatch is refused, as is a response for a flow on the shared /callback or for a client metadata document (/callback/cimd/{tag}). Otherwise identical to integrationsOAuthCallback, including the RFC 9207 iss check.
/api/integrations/callback/{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/string"