How can I define different security policies in Spring Oauth( different scopes for different resources of a client)
I have looked at in the table schema of OAUTH_CLIENT_DETAILS.
We can define a list of RESOURCE_IDS and list of scopes and roles. But I need to more granular control of access for each every resources.
For example 1. client1 has scope [ user] on [resource1], but at the same time client1 has scope [admin, user] on [resource2]. the same idea in IAM AWS.
Any advice how we can configure or implement this in spring security?