Skip to content
PlantUML templates

Login Sequence (PlantUML)

A username/password login with session creation.

Template previewPlantUML
Rendering…

Make it your own.

@startuml
actor User
participant "Web App" as App
participant "Auth Service" as Auth
database "Sessions" as DB

User -> App: Submit credentials
App -> Auth: verify(user, pass)
Auth -> Auth: hash + compare
alt valid
  Auth -> DB: create session
  DB --> Auth: session_id
  Auth --> App: 200 + token
  App --> User: Redirect to dashboard
else invalid
  Auth --> App: 401 Unauthorized
  App --> User: Show error
end
@enduml