Federico Mariani created CAMEL-27123:
----------------------------------------

             Summary: camel-oauth - step-up authentication (RFC 9470): 
required-acr and max-auth-age-seconds on validation profiles
                 Key: CAMEL-27123
                 URL: https://issues.apache.org/jira/browse/CAMEL-27123
             Project: Camel
          Issue Type: Sub-task
          Components: camel-oauth, camel-platform-http
            Reporter: Federico Mariani


Support step-up authentication (RFC 9470) in camel-oauth validation profiles, 
used by the HTTP consumers ({{platform-http}}, servlet, ...) and the MCP server:
* {{required-acr}}: accepted values of the {{acr}} claim;
* {{max-auth-age-seconds}}: maximum age of the user authentication 
({{auth_time}} claim).

A valid token that does not meet them is rejected with a new 
{{OAuthTokenValidationResult.ErrorCode.INSUFFICIENT_USER_AUTHENTICATION}}, and 
the consumer answers
{code}
HTTP/1.1 401
WWW-Authenticate: Bearer error="insufficient_user_authentication", 
error_description="...", acr_values="2", max_age=300
{code}
so that the client can ask the user to authenticate again, for example with 
MFA, instead of getting a generic {{invalid_token}}.

{code}
camel.oauth.users-mfa.base-uri = https://idp.example.com/realms/demo
camel.oauth.users-mfa.expected-audience = conference-api
camel.oauth.users-mfa.required-acr = 2
{code}

Not in scope: a per-tool requirement at the MCP HTTP layer (the MCP server 
validates the token for the whole endpoint before the tool is known).

_Claude Code on behalf of Federico Mariani_




--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to