Last active
June 4, 2017 07:20
-
-
Save dictav/7bf03639acc8b6e34f909bf361d2fbb1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
g1 | |
@startuml; | |
autonumber 10 10 "<b>[000]" | |
; | |
actor "Nanp App" as app; | |
participant "Browser" as br; | |
participant "nanp.builderscon.io" as ns; | |
participant "OAuth\nProvider" as op; | |
participant Octav as octav; | |
; | |
app -> br: Do Auth; | |
activate br; | |
; | |
br -> ns: Open Auth Page; | |
activate ns; | |
ns --> br: Auth Page; | |
deactivate ns; | |
; | |
br -> op: Login; | |
activate op; | |
op --> br: OK Redirect; | |
deactivate op; | |
; | |
br -> ns: Redirect with oauth_token; | |
deactivate br; | |
activate ns; | |
ns -> op: Veify; | |
activate op; | |
op --> ns: User Info; | |
deactivate op; | |
; | |
ns -> octav: Create User; | |
activate octav; | |
octav --> ns: User+auth_token; | |
deactivate octav; | |
; | |
alt builderscon.io; | |
ns -> ns: Create\nCookie key; | |
ns --> br: Dashboard Set-Cookie; | |
else nanp.builderscon.io; | |
ns -> ns: Create\nOne-Time-Password; | |
ns --> br: Finish Page with OTP; | |
end; | |
deactivate ns; | |
; | |
activate br; | |
br --> app: Back with OTP; | |
deactivate br; | |
; | |
activate app; | |
app -> ns: Exchange token with OTP; | |
activate ns; | |
ns --> app: auth_token; | |
deactivate ns; | |
; | |
app -> app: Save auth_token on Secure Storage; | |
app -> octav: Request API with auth_token; | |
activate octav; | |
octav --> app: Response; | |
@enduml; | |
g1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment