Skip to content

Instantly share code, notes, and snippets.

@elf-pavlik
Created August 6, 2014 19:03
Show Gist options
  • Save elf-pavlik/0977176e6f4e8e84d575 to your computer and use it in GitHub Desktop.
Save elf-pavlik/0977176e6f4e8e84d575 to your computer and use it in GitHub Desktop.
webdpack

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.
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