SohoHouse / nuxt-oauth

Simple OAuth2 integration for your Nuxt app
MIT License
122 stars 27 forks source link

Does this library support OAuth2 authentication scope? #12

Closed ton212 closed 6 years ago

ton212 commented 6 years ago

I did not see anywhere in the README mentioned authentication scope. How do I define scope with authenticating users with my OAuth server?

samtgarson commented 6 years ago

This library currently doesn't support scope but I don't think it would be very difficult to add! Should just be a case of adding an attribute to the config (maybe a function which receives the user as an argument and returns the desired scope) and then passing that through to the underlying OAuth library...

I don't have a huge amount of time right now but I'll happily accept PRs, otherwise I'll look into this when I get some time.

Lahori-Jawan commented 6 years ago

I had to go to \node_modules\nuxt-oauth\lib\handler.js to add scope but the side effect is that it reverts back! issue 7