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

Jakarta supported version #401

Open
npsakthi opened this issue Jul 10, 2023 · 5 comments
Open

Jakarta supported version #401

npsakthi opened this issue Jul 10, 2023 · 5 comments

Comments

@npsakthi
Copy link

Using java-saml for security. its depends on javax.servlet. my project migrated from 'javax 'namespace to 'jakarta'. current version not supporting for jakarta servlet.

@pietro-saccani
Copy link

I'm gonna link here #395 just so that more people can find it.
Man I wish there already was a jakarta-compatible version. We're gonna need it soon-ish and the alternative is a library that's hosted on yet another repository to add to the build.gradle file, and it also uses Guava, which we would rather not have...

@Jerry29
Copy link

Jerry29 commented Jan 3, 2024

Is there any update to this ? Can we expect a jakarta supported onelogin any time soon ? If not is there any work around.
I had to upgrade springboot in my project to 3.0.5 and stuck with the javax dependency in onelogin

@tjmackert
Copy link

Is there any update to this ? Can we expect a jakarta supported onelogin any time soon ? If not is there any work around. I had to upgrade springboot in my project to 3.0.5 and stuck with the javax dependency in onelogin

I worked around this issue with org.apache.felix.http.wrappers. Still waiting on full jakarta support

@catji12152
Copy link

Currently, the latest version of java-saml (2.9.0?) is running 'javax'.
However, since our project is 'jakarta',

「The type javax.servlet.http.HttpServletResponse cannot be resolved. It is indirectly referenced from required type com.onelogin.saml2.Auth」
This error has occurred.

Is there a way to make it work in jakarta?

@pietro-saccani
Copy link

Currently, the latest version of java-saml (2.9.0?) is running 'javax'. However, since our project is 'jakarta',

「The type javax.servlet.http.HttpServletResponse cannot be resolved. It is indirectly referenced from required type com.onelogin.saml2.Auth」 This error has occurred.

Is there a way to make it work in jakarta?

A workaround is right above your post. You can use the Apache Felix Http Wrappers library to provide java-saml objects that wrap Jakarta ones and "pretend" to be Javax ones.

If you don't want to use a workaround then no, currently there's no way. You may want to follow this issue: #395
but it hasn't been updated in a long while.
There may be forks that support Jakarta, but if you're in a corporate environment using a potentially unsupported fork may not be a feasible solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants