How to configure Spring security Oauth 2.0 with dynamic URL matchers configuration?
<p>I need to implement dynamic spring security matchers (URLs, Methods, Roles, Authorities, etc.) verifications in a spring boot oauth 2.0 resource server with a remote authorization server.</p>

<p>Is there any tips on how to do it, extracting these informations to a database?</p>

<p>So far I have found one small indication on how to proceed, creating a filter extending <em>DefaultFilterInvocationSecurityMetadataSource</em> and overriding the method <em>getAttributes(Object object)</em>, but I don't  know if this is the best way to do it.
<a href="https://github.com/sohamghosh/spring-security-dynamic-roles" rel="nofollow">https://github.com/sohamghosh/spring-security-dynamic-roles</a></p>