You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+69Lines changed: 69 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -72,6 +72,75 @@ INFO: Waiting for application startup.
72
72
INFO: Application startup complete.
73
73
INFO: Uvicorn running on http://0.0.0.0:5000 (Press CTRL+C to quit)
74
74
```
75
+
### Access it
76
+
To access a jwt_required protected url, all we have to do is send in the JWT with the request. By default, this is done with an authorization header that looks like:
77
+
```bash
78
+
Authorization: Bearer <access_token>
79
+
```
80
+
We can see this in action using CURL:
81
+
```console
82
+
$ curl http://localhost:5000/protected
83
+
84
+
{"detail":"Missing Authorization Header"}
85
+
86
+
$ curl -H "Content-Type: application/json" -X POST \
0 commit comments