Skip to content

Commit

Permalink
Only re-assign redirect_uri if redirect_uri is not None
Browse files Browse the repository at this point in the history
fixes #507
  • Loading branch information
lepture committed Dec 6, 2022
1 parent b0fc78f commit d186f68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion authlib/integrations/base_client/sync_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,8 @@ def create_authorization_url(self, redirect_uri=None, **kwargs):


with self._get_oauth_client(**metadata) as client:
client.redirect_uri = redirect_uri
if redirect_uri is not None:
client.redirect_uri = redirect_uri
return self._create_oauth2_authorization_url(
client, authorization_endpoint, **kwargs)

Expand Down

0 comments on commit d186f68

Please sign in to comment.