Skip to content

Commit f3860e3

Browse files
committed
Rename obtain_token_with_authorization_code(...) to ...by...(...)
1 parent 4a74670 commit f3860e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

oauth2cli/oauth2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def parse_auth_response(params, state=None):
278278
raise ValueError('state mismatch')
279279
return params
280280

281-
def obtain_token_with_authorization_code(
281+
def obtain_token_by_authorization_code(
282282
self, code, redirect_uri=None, **kwargs):
283283
"""Get a token via auhtorization code. a.k.a. Authorization Code Grant.
284284

tests/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def test_auth_code(self):
124124
"code", redirect_uri=redirect_uri, scope=CONFIG.get("scope"))
125125
ac = obtain_auth_code(port, auth_uri=auth_request_uri)
126126
self.assertNotEqual(ac, None)
127-
result = self.client.obtain_token_with_authorization_code(
127+
result = self.client.obtain_token_by_authorization_code(
128128
ac,
129129
data={
130130
"scope": CONFIG.get("scope"),

0 commit comments

Comments
 (0)