Brian Demers
You can do it, but in general I wouldn’t recommend it.
https://developer.okta.com/…
Depending on the type of application you are building, you have some options. You could stick an API gateway (Spring Cloud Gateway for example) and add the authentication there (they you have a single app to manage your sessions (and you can cluster and configure that one app), then pass the access tokens (jwt) downstream to your application.
This is just an example, and i’m not trying to suggest this solution is right for you without knowing more about what you are trying to achieve.