hiidef / oauth2app

Django OAuth 2.0 Server App. Please fork and improve!
https://github.com/hiidef/oauth2app
MIT License
271 stars 115 forks source link

Refresh token, if a scope has not been supplied in request then leave th... #24

Closed trezorg closed 12 years ago

trezorg commented 12 years ago

...e scope equal to the scope originally granted (http://tools.ietf.org/html/draft-ietf-oauth-v2-16#page-36). Maybe I understood it right.

bhagany commented 12 years ago

I think you have the right idea, but we still need to set self.access_token.scope to [] if self.scope doesn't exists and there's no previously existing scope. Otherwise, places that are expecting an iterable to be there will fail.