From 4bc382c7d08c88ec0bff1690f0cde52aa01f3e7c Mon Sep 17 00:00:00 2001 From: Artyom Vancyan Date: Sun, 10 Sep 2023 22:13:30 +0400 Subject: [PATCH 01/14] Add "Error handling" section --- docs/references/tutorials.md | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/docs/references/tutorials.md b/docs/references/tutorials.md index 737b64b..58248e2 100644 --- a/docs/references/tutorials.md +++ b/docs/references/tutorials.md @@ -39,20 +39,20 @@ scopes required for the API endpoint. ```mermaid flowchart TB - subgraph level2["request (Starlette's Request object)"] - direction TB - subgraph level1["auth (Starlette's extended Auth Credentials)"] + subgraph level2["request (Starlette's Request object)"] direction TB - subgraph level0["provider (OAuth2 provider with client's credentials)"] + subgraph level1["auth (Starlette's extended Auth Credentials)"] direction TB - token["access_token (Access token for the specified scopes)"] + subgraph level0["provider (OAuth2 provider with client's credentials)"] + direction TB + token["access_token (Access token for the specified scopes)"] + end end end - end - style level2 fill:#00948680,color:#f6f6f7,stroke:#3c3c43; - style level1 fill:#2b75a080,color:#f6f6f7,stroke:#3c3c43; - style level0 fill:#5c837480,color:#f6f6f7,stroke:#3c3c43; - style token fill:#44506980,color:#f6f6f7,stroke:#3c3c43; + style level2 fill: #00948680, color: #f6f6f7, stroke: #3c3c43; + style level1 fill: #2b75a080, color: #f6f6f7, stroke: #3c3c43; + style level0 fill: #5c837480, color: #f6f6f7, stroke: #3c3c43; + style token fill: #44506980, color: #f6f6f7, stroke: #3c3c43; ``` ::: @@ -129,6 +129,14 @@ approach is useful when there missing mandatory attributes in `request.user` for database. You need to define a route for provisioning and provide it as `redirect_uri`, so the [user context](/integration/integration#user-context) will be available for usage. +## Error handling + +::: info NOTE + +This section is under development. + +::: +