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

Commit

Permalink
Merge pull request #621 from rolsonquadras/issue-596
Browse files Browse the repository at this point in the history
docs: rp/issuer adapter and rp/issuer integration flow diagram
  • Loading branch information
fqutishat authored Feb 15, 2022
2 parents 1425c31 + 659c773 commit 9620573
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
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

0 comments on commit 9620573

Please sign in to comment.