NIFI-10350 Corrected Registry User Authorization for OIDC
Summary
NIFI-10350 Corrects NiFi Registry user authorization determination when authenticating using OpenID Connect.
The current implementation refreshes the Registry Configuration after successful username and password authentication with LDAP or Kerberos, but does not refresh the configuration after OIDC authentication.
The solution moves the Registry Configuration refresh to the shared checkLogin functions, which incorporate a ticket exchange request to an OIDC provider when configured. This approach ensures that the user interface has the current Registry Configuration regardless of the authentication strategy.
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking
- [X] Apache NiFi Jira 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
mainbranch - [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
- [ ] Build completed using
mvn clean install -P contrib-check- [X] JDK 8
- [ ] JDK 11
- [ ] JDK 17
Licensing
- [ ] New dependencies are compatible with the Apache License 2.0 according to the License Policy
- [ ] New dependencies are documented in applicable
LICENSEandNOTICEfiles
Documentation
- [ ] Documentation formatting appears as expected in rendered files