I have a Jax-RS application that uses spring for the component wiring and spring security for the authentication and authorization part. I have been trying to configure spring security with OAuth2 and JWT tokens but there is not any good sample to follow. The only one that I was able to find is this one: https://github.com/spring-projects/spring-security-oauth but it doesn't really shed any light on how the authentication part is done, for example how to obtain a token or how to send it (cookies or header) Is anyone aware of any good example on this specific setup?
Best.