Skip to content
This repository has been archived by the owner on Apr 5, 2023. It is now read-only.

docs: rp/issuer adapter and rp/issuer integration flow diagram #621

Merged
merged 1 commit into from
Feb 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion docs/issuer/integration/issuer.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,19 @@ a [OpenID Connect 1.0](https://openid.net/specs/openid-connect-core-1_0.html) cl
the Issuer. The reader is expected to be familiar with OIDC and the OAuth2 authorization code flow.

## Flow diagram
TODO

```mermaid
sequenceDiagram
participant issuer as issuer
participant issuer_adapter as issuer adapter
issuer->>issuer: register client/profile (one time)
issuer->>issuer_adapter: Redirect /<profile-id>/connect/wallet?cred=<scope>&txnID=<uuid>
issuer_adapter->>issuer: Redirect oidc auth
issuer->>issuer_adapter: Redirect oidc auth callback
issuer_adapter->>issuer: HTTP POST <issuer-url-from-profile>/data
issuer->>issuer_adapter: user data
issuer_adapter->>issuer: Redirect <issuer-url-from-profile>/cb?txnID=<txnID_from_initial_call>
```

## Steps
Follow these steps to integrate as a Issuer:
Expand Down
13 changes: 12 additions & 1 deletion docs/rp/integration/relying_parties.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,18 @@ This document serves as a guide for integrating [OpenID Connect 1.0](https://ope
client systems to the RP Adapter. The reader is expected to be familiar with OIDC and the OAuth2 authorization code flow.

## Flow diagram
TODO

```mermaid
sequenceDiagram
participant rp as rp/verifier
participant rp_adapter_core as rp adapter core
participant rp_adapter_oidc as rp adapter oidc (hydra)
rp->>rp_adapter_core: register client (one time)
rp->>rp_adapter_oidc: oidc auth redirect
rp_adapter_oidc->>rp: oidc auth callback
rp->>rp_adapter_oidc: oidc token endpoint
rp_adapter_oidc->>rp: id_token with user data
```

## Steps

Expand Down