@startuml
skinparam backgroundColor white
skinparam defaultFontColor black
skinparam ArrowColor black
skinparam SequenceLifeLineBorderColor black
skinparam SequenceLifeLineBackgroundColor #F6F6F6
skinparam ParticipantBorderColor black
skinparam ParticipantBackgroundColor #EAF4FF
skinparam NoteBackgroundColor #FFF8DC
skinparam NoteBorderColor black

title Legacy /api/auth Prefix Flow (Before Shim)

actor Client as client
participant "Axum Router" as router #DCEBFF
participant "dispatch_auth_request" as dispatch #FFF2CC
participant "AthenaAuth::handle_request" as auth #E6FFEA

client -> router: ANY /api/auth/sign-in/email
router -> dispatch: Forward request as-is
note right of dispatch
Base path can be configured as '/'.
In that mode, '/api/auth/*' is not normalized.
end note

dispatch -> auth: path = /api/auth/sign-in/email
note right of auth
Core/plugin handlers expect normalized paths
like '/sign-in/email'.
end note

auth --> dispatch: 404 No handler found

dispatch --> client: 404 response
@enduml
