I can use claims in the JWT token and use claims matching , however in OAUTH2 standards scope is the correct way to describe if the token is allowed access to a particular resourse.
These are the list of support condition attributes
There is request.auth.claims. However no support for scope
Is there a way to do scope condition evaluation other than using extensions like OPA