node-oauth2-server icon indicating copy to clipboard operation
node-oauth2-server copied to clipboard

scope in getAccessToken

Open sm2017 opened this issue 7 years ago • 5 comments

I want to use JWT for my access tokens , but for some scope I want to revoke JWT immediately

In model.getAccessToken() , How can I access requested scope? I want to verify JWT in some scopes and run a database query on other scopes

sm2017 avatar Aug 14 '18 06:08 sm2017

@oauthjs reply please

sm2017 avatar Aug 18 '18 15:08 sm2017

:-(

sm2017 avatar Aug 24 '18 07:08 sm2017

@sm2017 maybe try to pass scope through generateAccessToken method ?

miloszsobczak avatar Sep 04 '18 07:09 miloszsobczak

v3.1.0 should support this - you'll have access to the request context within all model methods. You can try it out now by using next for the version in your package.json.

mjsalinger avatar Sep 05 '18 11:09 mjsalinger

@mjsalinger I'm also trying to get the req scope inside saveToken, does 3.1.1 capable of this ?

rcauquil-pycom avatar Sep 02 '20 08:09 rcauquil-pycom