You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After some discussion with @Bolo89 and following this very important comment #270 (comment) too, let's discuss about how to have a better minimal option for microservice (for example)
For user-facing monoliths without reusable APIs, a better minimal option would be "login-only" (without resource server). It was the first version of the previous PR, so it would be easy to reproduce.
oauth2Login() provides the OAuth2 login feature for end-users interacting with the application
oauth2Client() is used for machine-to-machine communications, with eg. WebClient
So there is another case, which is "client-only" for a job that calls APIs but doesn't not expose anything. It's a less common scenario, and although I implemented it in a previous attempt, I guess it won't be very useful.
Do you confirm that we prefer distinct endpoints over common endpoints with options?
I'll see how to propose something smarter, with your initial idea. Maybe 2 versions of OAuth2:
one with login (generally, used with a front): probably the default one
one without login
About endpoints, yes, for now, I prefer distinct endpoints, until this ticket is solved: #144
Then, it can be changed later, during refactoring if needed.
The new module OAuth2 is better now, thanks to @DamnClin
So this ticket can be closed, if there are some suggestions, we can open a new ticket to discuss
Currently, the API OAuth2 generates:
After some discussion with @Bolo89 and following this very important comment #270 (comment) too, let's discuss about how to have a better minimal option for microservice (for example)
cc @Bolo89 @pblanchardie
The text was updated successfully, but these errors were encountered: