Skip to content
Snippets Groups Projects
Commit 535bcb62 authored by Megan Henning's avatar Megan Henning Committed by GitHub
Browse files

Merge pull request #771 from scitran/allow-insecure-jwt

Add config option to disable proper SSL connection verification to the JWT Auth service
parents 23dd2db9 9ffbb116
No related branches found
No related tags found
No related merge requests found
......@@ -97,7 +97,7 @@ class JWTAuthProvider(AuthProvider):
}
def validate_user(self, token):
r = requests.post(self.config['verify_endpoint'], data={'token': token})
r = requests.post(self.config['verify_endpoint'], data={'token': token}, verify=self.config.get('check_ssl', True))
if not r.ok:
raise APIAuthProviderException('User token not valid')
uid = json.loads(r.content).get('mail')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment