Skip to content

Commit 81092fe

Browse files
authored
Merge pull request #209 from AzureAD/robust-migration
Migration should fail gracefully even on wrong RT
2 parents 8d62027 + 78b77a2 commit 81092fe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

msal/application.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def get_authorization_request_url(
291291
Can be one of "consumers" or "organizations" or your tenant domain "contoso.com".
292292
If included, it will skip the email-based discovery process that user goes
293293
through on the sign-in page, leading to a slightly more streamlined user experience.
294-
More information on possible values
294+
More information on possible values
295295
`here <https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow#request-an-authorization-code>`_ and
296296
`here <https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-oapx/86fb452d-e34a-494e-ac61-e526e263b6d8>`_.
297297
:return: The authorization url as a string.
@@ -737,9 +737,10 @@ def acquire_token_by_refresh_token(self, refresh_token, scopes):
737737
"""
738738
return self._get_client().obtain_token_by_refresh_token(
739739
refresh_token,
740-
decorate_scope(scopes, self.client_id),
740+
scope=decorate_scope(scopes, self.client_id),
741741
rt_getter=lambda rt: rt,
742742
on_updating_rt=False,
743+
on_removing_rt=lambda rt_item: None, # No OP
743744
)
744745

745746

0 commit comments

Comments
 (0)