-
Notifications
You must be signed in to change notification settings - Fork 785
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
I want to set up resource server. #575
Comments
I want to know too. In my case we want to create multiple resource servers (api's) which are all bound to a user. Just a few examples:
Every single resource server should be decoupled from the authentication server (like in a microservices architecture). Because the For everything I searched for, there is nothing like that available but the example image suggest there should be. Techinical setup: @trueneutre would this also describe your use case? |
thank you @leroy0211 I want this right. The resource server and the authentication server have to be separated. I plan to implement it myself. Could there be a good idea? Problems that arise during implementation are written here. |
is there a recent update about this feature? I want know how separated resource and auth server to create sso app The only one i know support this feature is spring boot |
Hmm, I can see this being something we might add. We don't have any plans on adding this right now but if you can you're free to send in a PR to the master branch for the next version. |
Would OAuth2 Introspection not be a way to handle this? (https://tools.ietf.org/html/rfc7662). I have implemented this myself on Passport but it should be something that laravel has build in so resource servers can ask passport for token meta data. See also #491 |
@corbosman waiting on OAuth2 Server to implement that first. |
@driesvints yup i saw that, this comment was more meant for the OP @trueneutre as I think he's looking at the wrong solution for his issue. Introspection is meant to solve exactly his problem. There is actually a laravel package already he could theoretically use (although be aware it handles authentication wrong imo, https://github.com/ipunkt/laravel-oauth-introspection) |
This PR is looking at adding introspection. It has stalled a bit at the moment but hoping it will be pushed forwards soon thephpleague/oauth2-server#925 |
So I couldn't really wait for the PRs or this functionality to be added to the base Passport package. I created my own Introspection package that handles both introspection on the Passport side as well as provides the middleware and authentication guard for a resource server. This is my first attempt at anything of this scale if I'm being honest and a bit nervous about sharing ;) Please let me know if you give it a try and what you think. Sorry there are not any tests, I am still learning testing frameworks and didn't want to delay this as I needed it for an ongoing project. I did my best to make it as configurable as possible but the solution was developed for my specific needs so there might be some stuff overlooked. I took inspiration from Passport, ipunkt's OAuth introspection and arietimmerman's OAuth Introspection Middleware
EDIT (July 30, 2020): https://github.com/DataHiveDevelopment/passport-introspection-docs |
Closing this as we're waiting for OAuth2 Server to implement this first. |
How can I set it up?
laravel 5.3 In the past I thought https://github.com/jeffsrepoaccount/resource-authorization could be used to do this, but what do I do now?
The text was updated successfully, but these errors were encountered: