Peter Turcsanyi created NIFI-14618:
--------------------------------------

             Summary: JWTBearerOAuth2AccessTokenProvider should evaluate JWT ID 
property per token request
                 Key: NIFI-14618
                 URL: https://issues.apache.org/jira/browse/NIFI-14618
             Project: Apache NiFi
          Issue Type: Bug
            Reporter: Peter Turcsanyi
            Assignee: Peter Turcsanyi


The purpose of the JWT ID property is to provide a value for the "jti" claim in 
the token request, which should be a unique identifier for the request. It can 
be used by OAuth servers to detect replay attacks.

Though it is possible to configure the JWT ID property with EL like ${UUID()}, 
it is evaluated only once in onEnabled() and the same value is used in the 
requests which can lead to
{noformat}
HTTP 400
Response: [{"error":"invalid_client","error_description":"Client authentication 
with signed JWT failed: Token reuse detected"}]{noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to