docs: improve docs with images (#2474)

* docs: exchange auth flow from mermaid to image

* docs: img

Co-authored-by: fabi <fabienne.gerschwiler@gmail.com>
This commit is contained in:
Livio Amstutz
2021-10-04 17:11:16 +02:00
committed by GitHub
parent 18a0a16752
commit eb60fe8582
4 changed files with 10 additions and 4 deletions

View File

@@ -2,6 +2,12 @@
title: ZITADEL APIs
---
## Overview
![API Overview](/img/api/apis_overview.png)
## Proto
All of our APIs are generated by proto defintions. You can find all the proto definitions in the [Proto API Definitions](proto/auth).
> More about [Protocol Buffer](https://developers.google.com/protocol-buffers)

View File

@@ -4,7 +4,6 @@ title: Login Users into your Application
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import CodeFlowChart from '../../imports/_code-flow-chart.md';
## Overview
@@ -29,7 +28,7 @@ For a basic understanding of OAuth and its flows, we'll briefly describe the mos
The following diagram demonstrates a basic authorization_code flow:
<CodeFlowChart />
![Authorization Code Flow](/img/guides/auth_flow.png)
1. When an unauthenticated user visits your application,
2. you will create an authorization request to the authorization endpoint.
@@ -38,6 +37,7 @@ The following diagram demonstrates a basic authorization_code flow:
5. Your application will be called on the registered callback path (redirect_uri) and be provided an authorization_code.
6. This authorization_code must then be sent together with you applications authentication (client_id + client_secret) to the token_endpoint
7. In exchange the Authorization Server (ZITADEL) will return an access_token and if requested a refresh_token and in the case of OIDC an id_token as well
8. The access_token can then be used to call a Resource Server (API). The token will be sent as Authorization Header.
This flow is the same when using PKCE or JWT with Private Key for authentication.

BIN
docs/static/img/api/apis_overview.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 475 KiB

BIN
docs/static/img/guides/auth_flow.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 297 KiB