Skip to content

[Backport] pac4j: fix incompatible dependencies + authorization regression#15851

Merged
cryptoe merged 1 commit intoapache:29.0.0from
LakshSingla:backport-15753-to-29.0.0
Feb 7, 2024
Merged

[Backport] pac4j: fix incompatible dependencies + authorization regression#15851
cryptoe merged 1 commit intoapache:29.0.0from
LakshSingla:backport-15753-to-29.0.0

Conversation

@LakshSingla
Copy link
Copy Markdown
Contributor

Backport of #15753 to 29.0.0.

…he#15753)

- After upgrading the pac4j version in: apache#15522. We were not able to access the druid ui. 
- Upgraded the Nimbus libraries version to a compatible version to pac4j.
- In the older pac4j version, when we return RedirectAction there we also update the webcontext Response status code and add the authentication URL to the header. But in the newer pac4j version, we just simply return the RedirectAction. So that's why it was not getting redirected to the generated authentication URL.
- To fix the above, I have updated the NOOP_HTTP_ACTION_ADAPTER to JEE_HTTP_ACTION_ADAPTER and it updates the HTTP Response in context as per the HTTP Action.
@cryptoe
Copy link
Copy Markdown
Contributor

cryptoe commented Feb 7, 2024

code coverage IT failures in original PR as well.

@cryptoe cryptoe merged commit 8cfaaac into apache:29.0.0 Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants