-
Notifications
You must be signed in to change notification settings - Fork 399
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
Allow java-saml to be used in non-JavaEE containers #115
base: master
Are you sure you want to change the base?
Conversation
The default Auth and ServletUtils classes were previously tied to the javax.servlet APIs, so couldn't be used in other frameworks (e.g. Play) Instead, introduce abstract HttpRequest and HttpResponse classes which can be used as wrappers around different request and response objects depending on the framework (plus default javax implementations).
That solution breaks environments that currently use HttpServletRequest and HttpServletResponse on Auth. |
@pitbulk any update on this PR? I'm finding myself in the same boat as @ashleymercer here. Specifically, I'd like to pass my own version of I'm having to implement my own skinny version of Somewhat related, it seems that |
We need to find a solution compatible with current Auth API... Since request and response attributes from the Auth class are private, I'm ok replacing then from HttpServletRequest/HttpServletResponse to HttpRequest/HttpResponse, but we need to |
@pitbulk I think it would be completely reasonable to add a few additional constructors to In other words, leave the existing constructors alone (for backwards compatibility sake), but add a means for consumers to pass their own I still contend though that definitions like |
@markkolich +1 |
As far as the solution keep compatible with the current Auth class, I'm ok merging it. |
Hey, wondering if this can be used with play now? |
ab7e4d7
to
3c79c8c
Compare
FWIW, I think #395 now supersedes this PR |
Fixes #115
The default Auth and ServletUtils classes were previously tied to the javax.servlet APIs, so couldn't be used in other frameworks (e.g. Play).
Instead, introduce abstract HttpRequest and HttpResponse classes which can be used as wrappers around different request and response objects depending on the framework (plus default javax implementations).
A nice result of this is that Auth and ServletUtils can move to the core module - the toolkit jar now contains only the javax.servlet wrappers.