Skip to content

Commit 08ca3f2

Browse files
authored
feat: ✨ support fastapi deps in guards (#44)
This allows us to, for example, use fastapi's OAuth2PasswordBearer in our guards, to implement authentication with openapi support and all the benefits from fastapi's built-in security functionalities
1 parent e2f3b85 commit 08ca3f2

File tree

29 files changed

+205
-70
lines changed

29 files changed

+205
-70
lines changed

β€Ž.vscode/launch.jsonβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"request": "launch",
1919
"module": "uvicorn",
2020
"args": [
21-
"example.app.main:app",
21+
"examples.api.app.main:app",
2222
"--reload",
2323
],
2424
"justMyCode": false
@@ -29,7 +29,7 @@
2929
"request": "launch",
3030
"module": "uvicorn",
3131
"args": [
32-
"guard:app",
32+
"examples.auth_example:app",
3333
"--reload",
3434
],
3535
"justMyCode": false
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
Β (0)