NIFI-16191: Add OAuth support for ConfluentSchemaRegistry controller service - #11534
NIFI-16191: Add OAuth support for ConfluentSchemaRegistry controller service#11534takraj wants to merge 2 commits into
Conversation
27676d1 to
c49c203
Compare
175cc27 to
16569f2
Compare
…service Signed-off-by: Rajmund Takacs <takraj@gmail.com>
16569f2 to
730f9c1
Compare
exceptionfactory
left a comment
There was a problem hiding this comment.
Thanks for proposing this addition @takraj.
Add supporting for OAuth 2 requires careful lifecycle handling due to the limited expiration of Access Tokens. The current approach only retrieves the Access Token in the constructor, which will lead to expiration and permanent failure after a period of time, so a different approach is needed.
| this(baseUrls, timeoutMillis, sslContextProvider, logger, httpHeaders); | ||
|
|
||
| if (oauth2AccessTokenProvider != null) { | ||
| final String accessToken = oauth2AccessTokenProvider.getAccessDetails().getAccessToken(); |
There was a problem hiding this comment.
Retrieving the Access Token once in the constructor will run into expiration issues over the lifecycle, so a different approach is needed.
There was a problem hiding this comment.
@exceptionfactory Good catch. I'll move this part to the applyRequestHeaders() then...
Signed-off-by: Rajmund Takacs <takraj@gmail.com>
a09e9a2 to
ffea1b0
Compare
exceptionfactory
left a comment
There was a problem hiding this comment.
Recent changes appear to have caused build timeouts on all platforms. There was a system issue with GitHub Actions yesterday, but I'm not seeing anything today. I recommend reviewing the changes to ensure there are no issues with tests based on the request token handling.
The functional approach looks good now, but I would like to see successful workflow builds before approving and merging |
Summary
NIFI-16191
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking
Pull Request Tracking
NIFI-00000NIFI-00000VerifiedstatusPull Request Formatting
mainbranchVerification
Please indicate the verification steps performed prior to pull request creation.
Build
./mvnw clean install -P contrib-checkLicensing
LICENSEandNOTICEfilesDocumentation