Problem with the curl command code provided in the 'using you api' section of the quickstart guide for the Python API
S-Fahmy opened this issue · 0 comments
S-Fahmy commented
Description: I faced troubles following the curl code provided in the quickstack documentation
I was following the quickstart guide Python API: Using your API section, and the provided curl command
didn't work with me, the api couldn't find the headers value in the request, because the following exception got triggered "authorization_header_missing"original doc code:
curl --request GET --url http://localhost:3010/api/private --header 'authorization: Bearer YOUR_ACCESS_TOKEN'
Writing it this way instead work:
curl GET http://localhost:3010/api/private -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'
Reproduction
implemented the quickstart code: https://auth0.com/docs/quickstart/backend/python/01-authorization
tried the curl commands written here: https://auth0.com/docs/quickstart/backend/python/02-using
curl --request GET --url http://localhost:3010/api/private --header 'authorization: Bearer YOUR_ACCESS_TOKEN'
Environment
- Auth 2
- Flask 1.1.2 and latest curl version
- windows 10: