Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with the curl command code provided in the 'using you api' section of the quickstart guide for the Python API #9630

Open
S-Fahmy opened this issue Feb 24, 2021 · 0 comments

Comments

@S-Fahmy
Copy link

S-Fahmy commented Feb 24, 2021

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:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant