Class McpClientRegistrations

java.lang.Object
org.apache.juneau.rest.client.mcp.auth.McpClientRegistrations

public final class McpClientRegistrations extends Object
Bridges a Dynamic-Client-Registration result (McpClientRegistration) into the existing token flows — the McpAuthorizationCodeAcquirer (interactive auth-code + PKCE) and McpTokenProvider (client-credentials / refresh).

DCR changes only how the client_id/secret were obtained; it does not alter the resource= (RFC 8707) or iss (RFC 9207 / SEP-2468) enforcement those flows already perform — the caller still sets resource(...) / expectedIssuer(...) exactly as for a statically-configured client. These helpers only transplant the DCR-issued credential material (and, for the acquirer, keep the loopback redirect path and port consistent with what was registered, so a bind-first forPort registration matches at a strict exact-match authorization server).

Since:
10.0.0
  • Method Details