Skip to content
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

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

basil
Copy link
Member

@basil basil commented Oct 8, 2024

@@ -1,6 +1,6 @@
#!/usr/bin/env groovy

buildPlugin(useContainerAgent: true, configurations: [
buildPlugin(useContainerAgent: false, configurations: [
Copy link
Member Author

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.

Comment on lines +60 to +61
SAML2Credentials unvalidated = (SAML2Credentials) client.getCredentials(ctx).orElse(null);
credentials = (SAML2AuthenticationCredentials) client.validateCredentials(ctx, unvalidated).orElse(null);
Copy link
Member Author

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) {
Copy link
Member Author

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.

@basil basil requested a review from a team October 8, 2024 22:13
@kuisathaverat kuisathaverat merged commit 56a6423 into jenkinsci:main Oct 9, 2024
16 checks passed
@kuisathaverat
Copy link

It will trigger a release. Thanks for the changes.

@basil basil deleted the jakarta branch October 9, 2024 14:59
Comment on lines 606 to 607
* 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.
Copy link
Member Author

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 the LogoutProcessor component.

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

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.

2 participants