Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #262 from kylezhou/master
Remove token checking before load_server_metadata
  • Loading branch information
lepture committed Sep 4, 2020
2 parents 7b97daf + 6d6fd12 commit 319eb60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion authlib/integrations/base_client/async_app.py
Expand Up @@ -110,7 +110,7 @@ async def request(self, method, url, token=None, **kwargs):
url = urlparse.urljoin(self.api_base_url, url)

withhold_token = kwargs.get('withhold_token')
if token and not withhold_token:
if not withhold_token:
metadata = await self.load_server_metadata()
else:
metadata = {}
Expand Down
2 changes: 1 addition & 1 deletion authlib/integrations/base_client/remote_app.py
Expand Up @@ -115,7 +115,7 @@ def request(self, method, url, token=None, **kwargs):
url = urlparse.urljoin(self.api_base_url, url)

withhold_token = kwargs.get('withhold_token')
if token and not withhold_token:
if not withhold_token:
metadata = self.load_server_metadata()
else:
metadata = {}
Expand Down

0 comments on commit 319eb60

Please sign in to comment.