przekazanie do sekretów do env - test only /// append slash
All checks were successful
continuous-integration/drone Build is passing
All checks were successful
continuous-integration/drone Build is passing
This commit is contained in:
parent
71653c20c7
commit
b863e9c9b1
@ -93,10 +93,11 @@ class GetAuthTokenView(APIView):
|
||||
def post(self, request):
|
||||
client_id = settings.REACT_CLIENT_ID
|
||||
client_secret = settings.REACT_CLIENT_SECRET
|
||||
headers = {'Content-Type': 'application/x-www-form-urlencoded'}
|
||||
data = {
|
||||
'grant_type': 'client_credentials',
|
||||
'client_id': client_id,
|
||||
'client_secret': client_secret,
|
||||
}
|
||||
response = requests.post('http://izaac.izaac.pl/o/token/', data=data)
|
||||
response = requests.post('http://izaac.izaac.pl/o/token/', data=data, headers=headers)
|
||||
return Response(response.json())
|
||||
Loading…
x
Reference in New Issue
Block a user