Affects Version/s: None
Fix Version/s: None
Portal provides for JAX-RS applications a configuration configuration com.liferay.oauth2.provider.rest.internal.jaxrs.feature.configuration.ConfigurableScopeCheckerFeatureConfiguration that allows to map and check any scopes based on URL pattern matching using com.liferay.oauth2.provider.rest.internal.jaxrs.feature.ConfigurableScopeCheckerFeature
The configuration can be created and managed using the portal System Settings portlet.
Using osgi.jaxrs.application.select it is possible to target specific JAX-RS application.
Property patterns specifies the actual scopes that matches to endpoint URLs. The syntax is following:
"HTTP method pattern" :: "URL pattern" :: "Scopes delimited with comma"
Patterns are checked and applied in the order of appearance, if none of the patterns matches, the algorithm returns value of allowUnmatched property.