Repository navigation
Done
Labels
Description
- With an OIDC provider set up as a public client, connecting an MCP client ends with
error=authorization_failed("SSO authorization failed") instead of a login page. The identity provider is never contacted. - The server-side login that MCP sign-in hands over to is only built for confidential clients:
Lines 60 to 83 in 295f502
if (ClientType.CONFIDENTIAL.equals(authConfig.getClientType())) { try { AuthenticationCodeFlowHandler handler = new AuthenticationCodeFlowHandler(authConfig, authzConfig, sessionService); LOG.info( "Successfully initialized AuthenticationCodeFlowHandler for provider: {}", provider); return handler; } catch (Exception e) { LOG.error( "Failed to initialize AuthenticationCodeFlowHandler for provider: {}. " + "SSO will not be available. Error: {}", provider, e.getMessage(), e); return NoopAuthServeletHandler.getInstance(); } } LOG.warn( "OIDC provider {} requires CONFIDENTIAL client type, but got: {}. " + "Set AUTHENTICATION_CLIENT_TYPE=confidential to enable SSO.", provider, authConfig.getClientType()); return NoopAuthServeletHandler.getInstance(); - Personal access tokens still work on
/mcpthere.gapPublicOidcClientCannotSignInin test(mcp): run a real mcp sign-in for recorded client profiles #38440 pins today's behaviour.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone ✅
Activity
Fixes open-metadata#38480: Enable MCP sign-in with a public OIDC clie…