How do I accept an access token in Spring Boot?

It does seem I am getting a opaque token and that I may need to do this…

However this confuses me for 2 reasons.

  1. I may need different permissions for different requests so I can’t really set it at the Provider level. I have previous code that used to work at the token acquisition level but it seems like something changed.

  2. Why do I need to call an access token function if this sort of thing is stored at the Provider level? Why doesn’t it provide it as a variable instead?