thephpleague / oauth2-server-bundle

Symfony bundle for the OAuth2 Server.
MIT License
176 stars 86 forks source link

Better checks for access rights #142

Closed AurelienPillevesse closed 3 months ago

AurelienPillevesse commented 1 year ago

Instead of using a listener CheckScopeListener (https://github.com/thephpleague/oauth2-server-bundle/blob/60e209852edafccacb3ab43b406d8288a84b2c7f/src/Security/EventListener/CheckScopeListener.php)

Is it a good idea to transform it into a Symfony Voter ? It will improve performances with the Symfony cache.

What do you think about it ?

chalasr commented 3 months ago

PR welcome to give it a try.