exceptionfactory opened a new pull request, #8532:
URL: https://github.com/apache/nifi/pull/8532

   # Summary
   
   [NIFI-5302](https://issues.apache.org/jira/browse/NIFI-5302) Adds supports 
for the [OAuth 2.0 Client Credentials 
Flow](https://www.oauth.com/oauth2-servers/access-tokens/client-credentials/) 
when NiFi is configured for [OpenID 
Connect](https://openid.net/specs/openid-connect-core-1_0.html) authentication.
   
   The implementation changes maintain existing support for the [Authorization 
Code Grant 
Flow](https://www.oauth.com/oauth2-servers/server-side-apps/authorization-code/)
 as part of standard browser-based access, but enable machine-to-machine 
authentication using Client Credentials. Most of the code changes involve 
reorganizing the OIDC and JWT configuration objects for reuse between 
configuration classes.
   
   The configuration changes support verifying Access Tokens based on the 
provided Issuer claim. When the Token Issuer matches the OIDC Client 
Registration Issuer, NiFi uses the Identity Provider signing key for 
verification. In all other cases, NiFi uses the existing application signing 
key for verification, maintaining current behavior.
   
   Enabling machine-to-machine access with the Client Credentials Flow may also 
require authorization configuration changes depending on the deployed 
environment. The OpenID Connect fallback claims identifying user property may 
also be necessary to use the `sub` claim as the identity instead of the default 
`email` claim. These configuration elements can be enabled using existing 
configuration properties and do not require additional code changes.
   
   # Tracking
   
   Please complete the following tracking steps prior to pull request creation.
   
   ### Issue Tracking
   
   - [X] [Apache NiFi Jira](https://issues.apache.org/jira/browse/NIFI) issue 
created
   
   ### Pull Request Tracking
   
   - [X] Pull Request title starts with Apache NiFi Jira issue number, such as 
`NIFI-00000`
   - [X] Pull Request commit message starts with Apache NiFi Jira issue number, 
as such `NIFI-00000`
   
   ### Pull Request Formatting
   
   - [X] Pull Request based on current revision of the `main` branch
   - [X] Pull Request refers to a feature branch with one commit containing 
changes
   
   # Verification
   
   Please indicate the verification steps performed prior to pull request 
creation.
   
   ### Build
   
   - [X] Build completed using `mvn clean install -P contrib-check`
     - [X] JDK 21
   
   ### Licensing
   
   - [ ] New dependencies are compatible with the [Apache License 
2.0](https://apache.org/licenses/LICENSE-2.0) according to the [License 
Policy](https://www.apache.org/legal/resolved.html)
   - [ ] New dependencies are documented in applicable `LICENSE` and `NOTICE` 
files
   
   ### Documentation
   
   - [ ] Documentation formatting appears as expected in rendered files
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to