2024-04-23 11:12:37 +00:00
|
|
|
@startuml impersonate
|
|
|
|
start
|
|
|
|
|
|
|
|
if (The request has bearer token with allow_impersonate=true?) then (yes)
|
|
|
|
:Treat bearer token issuer as the request owner.;
|
|
|
|
end
|
|
|
|
(no) elseif (The request has session token?) then (yes)
|
|
|
|
:Treat session token issuer as the request owner.;
|
|
|
|
end
|
|
|
|
else (no)
|
|
|
|
:Determine request owner from the request signature.;
|
|
|
|
end
|
|
|
|
endif
|
|
|
|
|
2024-05-06 11:52:15 +00:00
|
|
|
@enduml
|