Skip to content

Commit f2f25bc

Browse files
authored
Fix typos (#210)
1 parent 97c7114 commit f2f25bc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

msal/oauth2cli/oauth2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def obtain_token_by_refresh_token(self, refresh_token, scope=None, **kwargs):
233233
234234
:param refresh_token: The refresh token issued to the client
235235
:param scope: If omitted, is treated as equal to the scope originally
236-
granted by the resource ownser,
236+
granted by the resource owner,
237237
according to https://tools.ietf.org/html/rfc6749#section-6
238238
"""
239239
assert isinstance(refresh_token, string_types)
@@ -397,7 +397,7 @@ def parse_auth_response(params, state=None):
397397

398398
def obtain_token_by_authorization_code(
399399
self, code, redirect_uri=None, scope=None, **kwargs):
400-
"""Get a token via auhtorization code. a.k.a. Authorization Code Grant.
400+
"""Get a token via authorization code. a.k.a. Authorization Code Grant.
401401
402402
This is typically used by a server-side app (Confidential Client),
403403
but it can also be used by a device-side native app (Public Client).
@@ -503,7 +503,7 @@ def obtain_token_by_refresh_token(self, token_item, scope=None,
503503
Either way, this token_item will be passed into other callbacks as-is.
504504
505505
:param scope: If omitted, is treated as equal to the scope originally
506-
granted by the resource ownser,
506+
granted by the resource owner,
507507
according to https://tools.ietf.org/html/rfc6749#section-6
508508
:param rt_getter: A callable to translate the token_item to a raw RT string
509509
:param on_removing_rt: If absent, fall back to the one defined in initialization

msal/oauth2cli/oidc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def build_auth_request_uri(self, response_type, nonce=None, **kwargs):
9999
response_type, nonce=nonce, **kwargs)
100100

101101
def obtain_token_by_authorization_code(self, code, nonce=None, **kwargs):
102-
"""Get a token via auhtorization code. a.k.a. Authorization Code Grant.
102+
"""Get a token via authorization code. a.k.a. Authorization Code Grant.
103103
104104
Return value and all other parameters are the same as
105105
:func:`oauth2.Client.obtain_token_by_authorization_code`,

0 commit comments

Comments
 (0)