Skip to content

Instantly share code, notes, and snippets.

@almereyda
Created July 31, 2014 21:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save almereyda/5a11248f98ddc58f57f2 to your computer and use it in GitHub Desktop.
Save almereyda/5a11248f98ddc58f57f2 to your computer and use it in GitHub Desktop.
Welcome document
CC0 4.0 by e-P + J R
Legend:
* **Greeting App** runs in the Browser.
* **webserviced** runs remotely on *Server A*.
* **webprofiled**, **webfingerd** & **Persona IdP** run remotely on *Server B*.
```sequence
participant Greeting App
participant webserviced
participant webprofiled
participant webfingerd
participant Persona IdP
Note right of Persona IdP: Identity Provider
Note over Greeting App: User tries to log in with Persona.
Greeting App-->>Persona IdP: Request of Assertion
Persona IdP-->>Greeting App: Return Assertion
Note over Greeting App: Assertion
Greeting App-->>webserviced: Sends Assertion
Note over webserviced: Verify Assertion
Note over webserviced: Extract E-Mail from Assertion
webserviced-->>webfingerd: GET JRD
Note over webfingerd: JSON Resource Descriptor
webfingerd->webserviced: JRD
Note over webserviced: JRD with URI
webserviced-->>webprofiled: GET URI
webprofiled->webserviced: Profile JSON-LD
webserviced->Greeting App: Name + Avatar
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment