Skip to content

Instantly share code, notes, and snippets.

@Sherpard
Last active October 16, 2019 08:57
Show Gist options
  • Save Sherpard/e59f9304111be5e0cc2a3bf29b3f3b47 to your computer and use it in GitHub Desktop.
Save Sherpard/e59f9304111be5e0cc2a3bf29b3f3b47 to your computer and use it in GitHub Desktop.
@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