Closed smarie closed 2 years ago
my_scopes = ['my_scope'] client = LegacyApplicationClient(..., scope=my_scopes) oauth_session = OAuth2Session(client=client) assert oauth_session.scope == my_scopes # <-- AssertError
Unfortunately, in OAuth2Session.refresh_token the self.scope is used
OAuth2Session.refresh_token
self.scope
I suggest to create a scope property which would return self._scope if overridden, or self.client.scope otherwise (if client is not None).
scope
self._scope
self.client.scope
I'll propose a PR
Unfortunately, in
OAuth2Session.refresh_token
theself.scope
is usedI suggest to create a
scope
property which would returnself._scope
if overridden, orself.client.scope
otherwise (if client is not None).I'll propose a PR