I wrote a new article on how to authenticate a Spring Boot REST API using an external authorization server. Any authorization server that supports OAuth2/OIDC can be used including the spring oauth2 authorization server. Please have a look: https://medium.com/geekculture/jwt-authentication-with-oauth2-resource-server-and-an-external-authorization-server-2b8fd1524fc