Skip to content

Commit d8804ce

Browse files
committed
Always use access token for access_token parameter.
1 parent dcebd72 commit d8804ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

boxsdk/auth/oauth2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def revoke(self):
275275
'client_secret': self._client_secret,
276276
'token': token_to_revoke,
277277
},
278-
access_token=token_to_revoke,
278+
access_token=access_token,
279279
)
280280
if not network_response.ok:
281281
raise BoxOAuthException(network_response.status_code, network_response.content, url, 'POST')

test/unit/auth/test_oauth2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,6 @@ def test_revoke_sends_revoke_request(
311311
'client_secret': client_secret,
312312
'token': expected_token_to_revoke,
313313
},
314-
access_token=expected_token_to_revoke,
314+
access_token=access_token,
315315
)
316316
assert oauth.access_token is None

0 commit comments

Comments
 (0)