File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Auth0 + Python + Flask API Seed
22This is the seed project you need to use if you're going to create a Python + Flask API.
33If you just want to create a Regular Python WebApp, please
4- check [ this other seed project] ( https://github.com/auth0-samples/auth0-python-web-app/tree/master/01-Login )
4+ check [ this project] ( https://github.com/auth0-samples/auth0-python-web-app/tree/master/01-Login )
55
66# Running the example
77In order to run the example you need to have ` python ` and ` pip ` installed.
@@ -47,9 +47,13 @@ Once you've set those 2 enviroment variables:
47471 . Execute in command line ` sh exec.sh ` to run the Docker in Linux, or ` .\exec.ps1 ` to run the Docker in Windows.
48482 . Try calling [ http://localhost:3001/ping ] ( http://localhost:3001/ping )
4949
50+ # Testing the API
51+
5052You can then try to do a GET to [ http://localhost:3001/secured/ping ] ( http://localhost:3001/secured/ping ) which will
5153throw an error if you don't send an access token signed with RS256 with the appropriate issuer and audience in the
52- Authorization header. You can also try to do a GET to
54+ Authorization header.
55+
56+ You can also try to do a GET to
5357[ http://localhost:3001/secured/private/ping ] ( http://localhost:3001/secured/private/ping ) which will throw an error if
5458you don't send an access token with the scope ` read:agenda ` signed with RS256 with the appropriate issuer and audience
5559in the Authorization header.
You can’t perform that action at this time.
0 commit comments