From 456f845af719ebfd734d6279f6dbee1013fc370d Mon Sep 17 00:00:00 2001 From: Wout Feys Date: Mon, 2 Dec 2024 14:10:49 +0100 Subject: [PATCH] Update docs --- docs/django.md | 2 +- docs/flask.md | 4 ++-- docs/quart.md | 4 ++-- docs/starlette.md | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/django.md b/docs/django.md index ea8e8083..4bede901 100644 --- a/docs/django.md +++ b/docs/django.md @@ -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 diff --git a/docs/flask.md b/docs/flask.md index 0baa0e54..d29e5b21 100644 --- a/docs/flask.md +++ b/docs/flask.md @@ -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 diff --git a/docs/quart.md b/docs/quart.md index e575be50..0aacf947 100644 --- a/docs/quart.md +++ b/docs/quart.md @@ -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 diff --git a/docs/starlette.md b/docs/starlette.md index 8487ce04..20dec290 100644 --- a/docs/starlette.md +++ b/docs/starlette.md @@ -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), ...