-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Support OAuth 2.0 Authorization Server #6320
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
Comments
I have repeated a particular implementation pattern enough times that I'm planning to develop a modular open-source auth-server solution that covers similar ground as Okta/the old Stormpath but has the control of in-house deployment and customized authentication steps/rules that have caused my clients to need an in-house solution. This is still in the planning stage, but I have a reasonably reliable pattern that I expect to follow. As part of this, I am interested in working on the rewritten auth-server support in Spring Security 5. I have a good bit of experience with Spring Security OAuth2 and am familiar with the architectural principles as well as the places that work smoothly and the friction points. I'm up for doing as much of this particular module as needed, although I don't have direct experience with OICD or PKCE yet. I'm especially interested in helping to smooth out some of the currently difficult aspects of configuring the workflow such as performing per-user authorization checks. |
@chrylis Thanks for getting in touch! We certainly can use the help and would welcome your contributions. I'm really interested to learn more about your interest/experience and see if we can work together to start this up. I'm thinking a zoom meeting might be the best bet to introduce ourselves and possibly come up with some sort of plan. What are your thoughts? |
I've been looking for support for passing JWTs by reference in addition to the default by value type. Is this something that is planned at all? Is it appropriate to ask here? I was going to create an issue when I came across this one and I figured this was probably more appropriate. |
Can you provide more details here? It's not clear to me what you're looking for exactly. Also, given this is a question, please ask on StackOverflow first. We prefer to keep issues for bug reports and new feature requests and/or enhancements. If you are looking for a new feature or enhancement, please log a new issue and provide as much detail as possible. Thank you. |
Does the work on Authorization Server PKCE support start ? |
@EtachGu No it hasn't started yet. This is targeted for 5.3 as indicated in the Milestone of this ticket. We are currently working on the upcoming 5.2 release. |
Support for OAuth2-authorization-server was targeted for early 2019. What is the current plan for getting finished with the authorization server implementation? |
It's tentatively scheduled for 5.3 Spring Security follows Spring Framework release schedule which has not been set for 5.3 Minor releases, such as 5.3, are typically a year out. |
The Spring Security team has decided to no longer provide support for Authorization Servers. Please see the latest announcement on Spring Security OAuth 2.0 Roadmap Update. |
RIP Spring Auth Server. This decission makes sense from the point of view of the Spring Team. However it was a nice alternative to other (generally) more complex solutions such as Keycloak. |
Disappointing decision!! Please reconsider. Even oauth referes to Spring. |
After that decision and hard working for 2 months, I finally migrated 10 applications from Spring Security OAuth2 to Spring Security 5.2 with Keycloak as authorization server.
|
@akuma8 thanks for sharing. We wound up using Auth0's service, so we would not have to manage a keycloak server,etc. I know that is not a solution for everyone, but wanted to share that as an alternative. It took some time as well, working thru their API's and best practices, but got it working eventually. |
@jzheaux |
@tb94 Well there was a comment announcing an update on this topic in the near future: spring-attic/spring-security-oauth#1832 (comment) |
Please reconsider and provide support for Authorization server. |
Hi, |
I waiting for long time. Please reconsider and provide support for Authorization server. |
@rwinch Thank you so much :-D |
Now spring-security provides client and resource-server support, and lacks the most important Authorization server, as @vborcea said. At this time, spring-security providing oauth2 support is like a car without an engine. It's incredible. At the same time, using an Authorization server like Keycloak brings additional learning costs and must also convince other members of the team, so I hope spring-security can reconsider providing support for Authorization server. |
Same here, please please please provide the support for Authorization Server. We have build a nice authentication solution on top of the current Spring libraries, which fits perfect for our needs and our customers are so happy... At the moment we plan to extend functionality around, and we are struggling now with the uncertainty if we should completely switch to another solution... but we still love the current Auth Server implementation of Spring - please reconsider to provide support for the Auth Server! |
For everyone providing feedback. Thank you! We are listening and working on a formal updated response (we will post an update here once we have it) but it is taking some time. Thank you for your patience and thank you again for the feedback! |
Please reconsider and provide support for Authorization server |
+1 for having authz server back on roadmap! hopefully before Spring Security OAuth EOL! |
Guys, seriously, please reconsider. The Authorization server is an actor in the OAuth 2 protocol, you can't just remove it. I've looked through the documentation on how to implement an Authorization server using Keycloack (in my case I want to enable username/pass and social login as well) and it's a mess. Please offer support so that we can go back to loving Spring Security 👍 |
Can you please share how you did it? Did you implement the Keycloak server as an embedded application inside a spring Boot app? |
All the time, spring was the best platform that I work with it. because of stability, simplify and reduce worries about everything. And nowadays some of us worry about some decisions in Spring team. I prefer to think about this as a 13 April lie. |
No, read my 2nd point, I still have a Keycloak server running inside a container. This is the most annoying thing because we have to be really careful to never have that server down. There are other challenges too like having Keycloak behind a gateway. I am currently working on that point because we don’t want to expose our Keycloak server to internet. |
@akuma8 since spring-security uses the nimbus sdk to implement oidc and oauth2, wouldn't it make sense to use that if we needed to implement authorization servers ourselves? |
Hope Spring team would reconsider this decision, the reason given was: "Spring Security’s Authorization Server support was never a good fit. An Authorization Server requires a library to build a product. Spring Security, being a framework, is not in the business of building libraries or products. " from https://spring.io/blog/2019/11/14/spring-security-oauth-2-0-roadmap-update So the key is to define the Spring security project scope and definition, I agree that spring security is a framework, so if you would consider the oauth2 servers as standalone app servers ( resource, client, and auth) instead of part of the Spring security framework, and regarding "An Authorization Server requires a library to build a product" when the library is referred ( instead of the whole framework). I would suggest to branch out / or create a new supporting auth LIB instead of depending on the ones from Spring Security framework, that would make the less coupled and on its own path. |
@rossbu from the very same post
and above
|
@OrangeDog Stay tuned for the blog announcement tomorrow. |
We are very excited to announce the Spring Authorization Server ! The ultimate goal of this community-driven project, led by the Spring Security team, is to replace the Authorization Server support provided by Spring Security OAuth. The project will start in Spring’s experimental projects as an independent project so that it can evolve more rapidly. The success of this project will heavily depend on contributions from the community. We are very excited to work with the community on this very important initiative. So please don't hold back and we look forward to your contributions! @OrangeDog @philsttr Going forward, please direct all communication to the Spring Authorization Server repository. |
Uh oh!
There was an error while loading. Please reload this page.
NOTE: Please see comment
The initial support for OAuth 2.0 Authorization Server will target the following features:
The text was updated successfully, but these errors were encountered: