concept approach in category spring

appears as: approach, n approach, approaches, pproaches
Spring Security in Action

This is an excerpt from Manning's book Spring Security in Action.

You can find different other approaches to separate the two responsibilities. I don’t want to say that the approach I presented in this section is the best or the only one. Usually, the way you choose to implement the class design depends a lot from one case to another. But the main idea is the same: avoid mixing responsibilities and try to write your code as decoupled as possible to increase the maintainability of your app.

In this section, we implement the validation of the token by allowing the Resource Server to call the Authorization Server directly. This approach is the simplest you can implement to enable access to the resource server with a valid access token. You choose this approach if the tokens in your system are plain (for example, simple UUIDs as in the default implementation of the Authorization Server with Spring Security). We start by discussing the approach, and then we’ll implement it within an example.