From a9142653b6c8f19164e59dd68da2119d877c19e7 Mon Sep 17 00:00:00 2001 From: Carlos Brito <carlos.henrique@cern.ch> Date: Thu, 14 Mar 2024 15:08:09 +0100 Subject: [PATCH 1/5] Add debug --- simrad_server/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simrad_server/auth.py b/simrad_server/auth.py index 883c739..f99ef63 100644 --- a/simrad_server/auth.py +++ b/simrad_server/auth.py @@ -27,7 +27,7 @@ def introspect_token(token): url = DEFAULT_AUTH_URI + "/token/introspect" data = {"token": token} auth = (CLIENT_ID, CLIENT_SECRET) - print (CLIENT_ID) + print (CLIENT_SECRET) resp = requests.post(url, data=data, auth=auth) return resp.json() -- GitLab From 1a9138cb1c090b02414e0bd8affe49580cc35b5d Mon Sep 17 00:00:00 2001 From: Carlos Brito <carlos.henrique@cern.ch> Date: Thu, 14 Mar 2024 15:10:45 +0100 Subject: [PATCH 2/5] test --- simrad_server/auth.py | 1 + 1 file changed, 1 insertion(+) diff --git a/simrad_server/auth.py b/simrad_server/auth.py index f99ef63..960cb61 100644 --- a/simrad_server/auth.py +++ b/simrad_server/auth.py @@ -28,6 +28,7 @@ def introspect_token(token): data = {"token": token} auth = (CLIENT_ID, CLIENT_SECRET) print (CLIENT_SECRET) + resp = requests.post(url, data=data, auth=auth) return resp.json() -- GitLab From 6b20dfcf885d8e6147478d6ebd3a058022cd3388 Mon Sep 17 00:00:00 2001 From: Carlos Brito <carlos.henrique@cern.ch> Date: Thu, 14 Mar 2024 15:14:36 +0100 Subject: [PATCH 3/5] t --- simrad_server/auth.py | 1 - 1 file changed, 1 deletion(-) diff --git a/simrad_server/auth.py b/simrad_server/auth.py index 960cb61..f99ef63 100644 --- a/simrad_server/auth.py +++ b/simrad_server/auth.py @@ -28,7 +28,6 @@ def introspect_token(token): data = {"token": token} auth = (CLIENT_ID, CLIENT_SECRET) print (CLIENT_SECRET) - resp = requests.post(url, data=data, auth=auth) return resp.json() -- GitLab From 05fde4c0e0f919c46f35f6dbe706dfa182962875 Mon Sep 17 00:00:00 2001 From: Carlos Brito <carlos.henrique@cern.ch> Date: Thu, 14 Mar 2024 15:16:39 +0100 Subject: [PATCH 4/5] t --- simrad_server/auth.py | 1 + 1 file changed, 1 insertion(+) diff --git a/simrad_server/auth.py b/simrad_server/auth.py index f99ef63..960cb61 100644 --- a/simrad_server/auth.py +++ b/simrad_server/auth.py @@ -28,6 +28,7 @@ def introspect_token(token): data = {"token": token} auth = (CLIENT_ID, CLIENT_SECRET) print (CLIENT_SECRET) + resp = requests.post(url, data=data, auth=auth) return resp.json() -- GitLab From ad5114727db7d5c225ede32dbe9234dbf90bc63f Mon Sep 17 00:00:00 2001 From: Carlos Brito <carlos.henrique@cern.ch> Date: Thu, 14 Mar 2024 15:27:26 +0100 Subject: [PATCH 5/5] test auto deploy --- simrad_server/auth.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/simrad_server/auth.py b/simrad_server/auth.py index 960cb61..0becf6f 100644 --- a/simrad_server/auth.py +++ b/simrad_server/auth.py @@ -27,8 +27,6 @@ def introspect_token(token): url = DEFAULT_AUTH_URI + "/token/introspect" data = {"token": token} auth = (CLIENT_ID, CLIENT_SECRET) - print (CLIENT_SECRET) - resp = requests.post(url, data=data, auth=auth) return resp.json() -- GitLab