-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to pac4j 6.x, require Java 17 or newer, and migrate to EE 9 #446
Conversation
@@ -1,6 +1,6 @@ | |||
#!/usr/bin/env groovy | |||
|
|||
buildPlugin(useContainerAgent: true, configurations: [ | |||
buildPlugin(useContainerAgent: false, configurations: [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To run LiveTest
on CI builds.
SAML2Credentials unvalidated = (SAML2Credentials) client.getCredentials(ctx).orElse(null); | ||
credentials = (SAML2AuthenticationCredentials) client.validateCredentials(ctx, unvalidated).orElse(null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per the migration guide, the getCredentials
method has been split into the getCredentials
and validateCredentials
methods.
* Note: It does not call the logout service on SAML because the library does not implement it on this version, | ||
* it will be done when we upgrade the library. | ||
*/ | ||
@SuppressWarnings("deprecation") | ||
@Override | ||
protected String getPostLogOutUrl(StaplerRequest req, @NonNull Authentication auth) { | ||
protected String getPostLogOutUrl2(StaplerRequest2 req, @NonNull Authentication auth) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Migrating from Acegi to Spring Security.
It will trigger a release. Thanks for the changes. |
* Note: It does not call the logout service on SAML because the library does not implement it on this version, | ||
* it will be done when we upgrade the library. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kuisathaverat Now that the library has been upgraded, this task can be completed. From the blog post:
The
processLogout
method has been added, based on theLogoutProcessor
component.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have limited time, I do not plan to do it soon
https://www.pac4j.org/blog/what_s_new_in_pac4j_v6.html