determining-active-channel.puml 607 B

12345678910111213141516171819202122232425
  1. ' This diagram illustrates the logic used to determine the
  2. ' active Channel when a request is received by the API
  3. @startuml
  4. !include theme.puml
  5. title Determining the active channelId for a request
  6. start
  7. :request received;
  8. if (token exists?) then (yes)
  9. if (is token valid?) then (yes)
  10. :get channelId by token lookup;
  11. else (no)
  12. #cc6666:return error;
  13. stop
  14. endif
  15. else (no)
  16. if (is SuperAdmin?) then (yes)
  17. :get active default channelId;
  18. else (no)
  19. #cc6666:return error;
  20. stop
  21. endif
  22. endif
  23. #66aa66:add channelId to request context;
  24. stop
  25. @enduml