-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
22f43e1
commit ffe5a9a
Showing
3 changed files
with
103 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { MermaidWrapper, Mermaid } from '@interledger/docs-design-system' | ||
|
||
<MermaidWrapper client:load> | ||
|
||
{/* prettier-ignore */} | ||
<Mermaid | ||
graph={`sequenceDiagram | ||
Client instance->>Authorization server (AS): Sends interactive grant request | ||
Authorization server (AS)-->>Client instance: 200 returns interact redirect uri and continue uri | ||
Client instance->>Authorization server (AS): Navigates to interact redirect uri | ||
Authorization server (AS)->>Authorization server (AS): Starts interaction and sets session | ||
Authorization server (AS)-->>Client instance: 302 temporary redirect to identity provider <br>uri with grant info in query string | ||
Client instance->>Identity provider (IdP): Redirects to identity provider | ||
Identity provider (IdP)->>Identity provider (IdP): Resource owner (e.g. client end-user) <br>accepts interaction | ||
Identity provider (IdP)->>Authorization server (AS): Sends interaction choice | ||
Authorization server (AS) -->>Identity provider (IdP): 202 choice accepted | ||
Identity provider (IdP)->>Authorization server (AS): Requests to finish interaction | ||
Authorization server (AS)->>Authorization server (AS): Ends session | ||
Authorization server (AS)-->>Identity provider (IdP): 302 temporary redirect to finish url <br>(defined in initial grant request) <br>secured with unique hash and <br>interact_ref in query string | ||
Identity provider (IdP)->>Client instance: Follows redirect | ||
Client instance->>Client instance: Verifies hash | ||
Client instance->>Authorization server (AS): Sends grant continuation request with <br>interact_ref in body to continue uri | ||
Authorization server (AS)->>Client instance: 200 returns grant access token | ||
`} | ||
/> | ||
|
||
</MermaidWrapper> |