Skip to content

Commit

Permalink
Make jwk_data get respect ssl_verify=no
Browse files Browse the repository at this point in the history
Take the value off of the given AuthClient object.
Closes #160
  • Loading branch information
sirosen committed Mar 22, 2017
1 parent 09049c1 commit 0ceb8ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion globus_sdk/auth/token_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ def decode_id_token(self, auth_client):
logger.debug('Fetch JWK Data: Start')
oidc_conf = auth_client.get('/.well-known/openid-configuration')
jwks_uri = oidc_conf['jwks_uri']
jwk_data = requests.get(jwks_uri).json()
# use the auth_client's decision on ssl_verify=yes/no
jwk_data = requests.get(jwks_uri, verify=auth_client._verify).json()
logger.debug('Fetch JWK Data: Complete')

return jwt.decode(
Expand Down

0 comments on commit 0ceb8ff

Please sign in to comment.