This commit is contained in:
parent
53e939cc3b
commit
75922bec90
@ -99,7 +99,7 @@ class GetAuthTokenView(APIView):
|
|||||||
client_secret = settings.REACT_CLIENT_SECRET
|
client_secret = settings.REACT_CLIENT_SECRET
|
||||||
print("GET SECRET")
|
print("GET SECRET")
|
||||||
credential = "{0}:{1}".format(client_id, client_secret)
|
credential = "{0}:{1}".format(client_id, client_secret)
|
||||||
credential_b = base64.b64encode(credential.encode("utf-8"))
|
credential_b = base64.b64encode(credential.encode("utf-8")).decode("utf-8")
|
||||||
print(credential_b)
|
print(credential_b)
|
||||||
headers = {
|
headers = {
|
||||||
"Authorization": f"Basic {credential_b}",
|
"Authorization": f"Basic {credential_b}",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user