summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-07-30 13:32:13 +0300
committerLars Wirzenius <liw@liw.fi>2018-07-30 13:32:13 +0300
commite1ee319f86587dbf5837a0a83c33c06a58e6848b (patch)
tree32f8ba78e7e4f1ed7af3434ab1909b4eaa52188f
parent9bcc20773dc96bfab159ddccf58c9db39d278ac6 (diff)
downloadqvisqve-e1ee319f86587dbf5837a0a83c33c06a58e6848b.tar.gz
Change: make qvisqve-get-token not whinge about TLS certs
-rwxr-xr-xqvisqve-get-token9
1 files changed, 9 insertions, 0 deletions
diff --git a/qvisqve-get-token b/qvisqve-get-token
index 8068585..77c9ab8 100755
--- a/qvisqve-get-token
+++ b/qvisqve-get-token
@@ -1,12 +1,21 @@
#!/usr/bin/env python3
+import logging
import sys
+import urllib3
import requests
+# We do not currently care about verify certificates. Maybe later.
+# FIXME: Remove these once we have proper certificates for everything,
+# including test instances of Qvarn.
+urllib3.disable_warnings()
+logging.captureWarnings(True)
+
+
baseurl, user, secret = sys.argv[1:4]
scopes = sys.argv[4:]