summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-02-02 20:24:57 +0200
committerLars Wirzenius <liw@liw.fi>2018-02-03 15:09:32 +0200
commitde5443776abd8e69858ce6bbedb01e2c3892351a (patch)
tree92244ae50d4a216e11c4f142290d11776f71692c
parente7cf984b49c35c8e5a4ec9a451ebe4bc783ef2bb (diff)
downloadqvisqve-de5443776abd8e69858ce6bbedb01e2c3892351a.tar.gz
Change: don't verify TLS certificate in salami-get-token
This should probably be an option, but that would require turning the short script into a full application. Send a patch, please.
-rwxr-xr-xsalami-get-token2
1 files changed, 1 insertions, 1 deletions
diff --git a/salami-get-token b/salami-get-token
index 5c984b6..8068585 100755
--- a/salami-get-token
+++ b/salami-get-token
@@ -18,7 +18,7 @@ data = {
'scope': ' '.join(scopes),
}
-r = requests.post(url, auth=auth, data=data)
+r = requests.post(url, auth=auth, data=data, verify=False)
if r.ok:
obj = r.json()
print(obj['access_token'])