Last active
October 16, 2019 08:57
-
-
Save Sherpard/e59f9304111be5e0cc2a3bf29b3f3b47 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
@startuml | |
actor User as U | |
participant "Application" as A | |
participant "Seed Realm Adapter" as ST | |
participant "Shiro Internals" as S | |
database "Seed Realm" as R | |
U -> A : Login Request | |
A -> ST : Login Request | |
ST --> S: Is in cache? | |
S -> ST : No | |
ST -> R : Login | |
R -> ST : Login Response | |
ST -> S : Store Credentials && Permissions | |
A -> A :Change User password / Permissions | |
note right: Cache should be invalidated here for the given user | |
U -> A : Logout | |
A -> ST : Logout | |
U -> A : Login Request | |
A -> ST : Login Request | |
ST --> S: Is in cache? | |
S -> ST : Yes | |
ST -> S : Send token | |
S -> S : Compare with stored token | |
note right: No communication with realm | |
S -> A : Login Response | |
A -> U : Login Response | |
@enduml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment