Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Wout Feys committed Dec 2, 2024
1 parent 7267ddc commit 456f845
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/django.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ MIDDLEWARE = [
# ...
]
```
You can set a user using the following function :
As soon as you identify the user in you authorization middleware, pass the identity info to Aikido.
```py
from aikido_zen import set_user

Expand Down
4 changes: 2 additions & 2 deletions docs/flask.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ app = Flask(__name__)
# ...
app.wsgi_app = AikidoFlaskMiddleware(app.wsgi_app)
# ...
# set user in middleware
# Authorization middleware here (Make sure aikido middleware runs after this)
# ...
```
You can set a user using the following function :
As soon as you identify the user in you authorization middleware, pass the identity info to Aikido.
```py
from aikido_zen import set_user

Expand Down
4 changes: 2 additions & 2 deletions docs/quart.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ from aikido_zen.middleware import AikidoQuartMiddleware

app = Quart(__name__)
app.asgi_app = AikidoQuartMiddleware(app.asgi_app)
# Set user in middleware somewhere here
# Authorization middleware here (Make sure aikido middleware runs after this)
```

You can set a user using the following function :
As soon as you identify the user in you authorization middleware, pass the identity info to Aikido.
```py
from aikido_zen import set_user

Expand Down
2 changes: 1 addition & 1 deletion docs/starlette.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ app = Starlette(routes=[
...
], middleware=[
...
# add the Aikido middleware after the user authorization middleware
# Authorization middleware here (Make sure aikido middleware runs after this)
...
Middleware(AikidoStarletteMiddleware),
...
Expand Down

0 comments on commit 456f845

Please sign in to comment.