This commit is contained in:
parent
50d26ba2d0
commit
b5987004ed
@ -99,10 +99,10 @@ 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)
|
||||||
base64.b64encode(credential.encode("utf-8"))
|
credential_b = base64.b64encode(credential.encode("utf-8"))
|
||||||
|
|
||||||
headers = {
|
headers = {
|
||||||
"Authorization": f"Basic {credential}",
|
"Authorization": f"Basic {credential_b}",
|
||||||
"Cache-Control": "no-cache",
|
"Cache-Control": "no-cache",
|
||||||
"Content-Type": "application/x-www-form-urlencoded"
|
"Content-Type": "application/x-www-form-urlencoded"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user