From c7b8c0f7666e53b3b95ba67bb88042f78ca58556 Mon Sep 17 00:00:00 2001 From: Jakub K Date: Thu, 1 Feb 2024 23:28:40 +0100 Subject: [PATCH] add proxies --- jobposting/views.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/jobposting/views.py b/jobposting/views.py index c0a12da..a931f7c 100644 --- a/jobposting/views.py +++ b/jobposting/views.py @@ -94,15 +94,14 @@ class GetAuthTokenView(APIView): authentication_classes = [] permission_classes = [] def post(self, request): - print("GET ID") - client_id = settings.REACT_CLIENT_ID - client_secret = settings.REACT_CLIENT_SECRET - print("GET SECRET") - credential = "{0}:{1}".format(client_id, client_secret) - credential_b = base64.b64encode(credential.encode("utf-8")).decode("utf-8") - print(credential_b) + # print("GET ID") + # client_id = settings.REACT_CLIENT_ID + # client_secret = settings.REACT_CLIENT_SECRET + # print("GET SECRET") + # credential = "{0}:{1}".format(client_id, client_secret) + # credential_b = base64.b64encode(credential.encode("utf-8")).decode("utf-8") + # print(credential_b) headers = { - "Authorization": f"Basic {credential_b}", "Cache-Control": "no-cache", "Content-Type": "application/x-www-form-urlencoded" }