Skip to content

Instantly share code, notes, and snippets.

@ryansroberts
Created June 1, 2016 17:53
Show Gist options
  • Save ryansroberts/35ebe961f617edd4d06dc710f904272d to your computer and use it in GitHub Desktop.
Save ryansroberts/35ebe961f617edd4d06dc710f904272d to your computer and use it in GitHub Desktop.
#+BEGIN_SRC plantuml :file actors.png
cloud facebook
cloud google
node [Prescience API]
agent mobiledevice
agent router
prescienceapi -- facebook
prescienceapi -- google
mobiledevice -- facebook
mobiledevice -- google
mobiledevice -- router
router -- prescienceapi
mobiledevice -- prescienceapi
prescienceapi -- mobiledevice
#+END_SRC
#+RESULTS:
[[file:actors.png]]
#+BEGIN_SRC wsd
title Sequence
participant MobileDevice as m
participant Router as r
participant MobileApi as a
participant OpenIdFederation as f
m->r: Request router serial / mac (1.1.1)
r->m: Router serial / mac (1.1.1)
m->a: Unauthenticated request (1.1.2)
a->m: Redirect to OpenId federation (1.1.2)
m->f: Register or authenticate against federation (1.1.3)
f->m: Redirect to api (1.1.3)
m->a: Provision router serial / mac (1.1.4)
a->m: Return router authentication token (1.1.4)
m->r: Set router authentication token and address (1.1.5)
#+END_SRC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment