I need some lights about convenience of using an autheorizarion server in my project scope.
We're realising and deploying our services into customer environment.
- Customer infrastructure already provides an authentication mechanism in order to authenticate users.
- This mechanism intercepts all comunications and redirects user to a "login" form.
- After that, user is redirected to our service and we've to handle and digest it and respond with an JWT token.
Here is where I'm feeling lost:
I'm thinking about:
- using spring-oauth2 in order to request a JWT token to an authorization server, or
- using spring-oauth2 in order to auto-generate an JWT token and validate it. I don't know if it's possible.
My question is, since user is already authenticated, have it sense to use an oauth2 authorization server, using client-credentials in order to authentication client against our resource services?
Short question would be, could I use spring-oauth2 librearies in order to generate a JWT without an authorization server?