Token autorisation requests
Bonjour,
Je vous sollicite pour avoir de l'aide afin de récupérer un token d'autorisation. En utilisant le code ci-dessous :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| access_point = "https://xxxx/token"
grant_type = (
"grant_type=password&username=my_user_name&password=my_password"
)
headers = {
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Cache-Control": "no-cache",
"Host": "xxxx.fr",
"Cache-control": "no-cache",
}
response = requests.post(access_point, data=grant_type, headers=headers, verify=False) |
j'ai le message d'erreur suivant :
Citation:
OpenSSL.SSL.SysCallError: (10060, 'WSAETIMEDOUT')
Précision : en utilisant un logiciel de type POSTMAN je dois désactiver "SSL certificate verification" des options pour récupérer le token.
Merci de votre aide