bshaffer / oauth2-server-bundle

OAuth2 for your Symfony Application
MIT License
106 stars 72 forks source link

Working scope query #53

Closed Rawi01 closed 7 years ago

Rawi01 commented 7 years ago

Changed the scope query to allow multiple scopes. (Doctrine 2.5.6)

Before: SELECT o0_.scope AS scope0, o0.description AS description_1 FROM oauthscope o0 WHERE o0_.scope IN ('scope1,scope2,scope3');

After SELECT o0_.scope AS scope0, o0.description AS description_1 FROM oauthscope o0 WHERE o0_.scope IN ('scope1', 'scope2', 'scope3');

I also added a unit test but was unable to execute unit tests at all, some configuration problem i guess. Only tested with my symfony application.

bshaffer commented 7 years ago

This is great! Thank you for finding this, fixing it, and then writing a test. A++!