EnvDaboryToGateToken.uml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. @startuml
  2. title Extended Process of AppBase of GateToken
  3. participant ErpFrontend as front_api
  4. participant ErpBackendAPI as back_api
  5. database MemoryDB as memory_db
  6. participant SsoFrontAPi as sso_front_api
  7. participant SsoBackAPI as sso_back_api
  8. database SsoDB as sso_db
  9. autonumber
  10. note over front_api #FCC873
  11. <b>.env.dabory file</b>
  12. ClientId
  13. CleintSecret
  14. BeforeBase64
  15. end note
  16. front_api->back_api: Request /gate-token-get
  17. note over back_api #73EDFC
  18. Go to
  19. 10. Decrypt BB64 with KeyPair
  20. if LocalKeyPair
  21. end note
  22. note over back_api #73EDFC
  23. <b>GateToken/BackAPI Url Get</b>
  24. Skip to
  25. 7.Request GateToken To DaborySSO Backend
  26. unlessf they are not in Memory Array
  27. end note
  28. back_api->sso_front_api: Request \n/dabory-app/gate-token-get\n with BB64 of DaborySSO \nwhich is in conf file
  29. sso_front_api->sso_back_api: Request \n/gate-token-get with BB64
  30. sso_back_api->sso_back_api: Get Local KeyPair \n & Decrypt BB64
  31. sso_back_api->sso_front_api: Return GateToken from Sso
  32. /'6'/
  33. sso_front_api->back_api: Response \nGateToken/BackApiUri \n from Sso to Backend
  34. note over back_api #99FF99: Keep GateToken/BackApiUri in array
  35. back_api->sso_back_api: Request /key-pair-get with ClientId to DaborySSO Backend
  36. sso_back_api->sso_db: Get key-pair-get \n with ClientId from SsoDb
  37. sso_db->sso_back_api: Return key-pair-get \n with ClientId from SsoDb
  38. sso_back_api->back_api: Response KeyPair from Sso to Backend
  39. note over back_api
  40. <b>1.Decrypt BB64 with KeyPair</b>
  41. end note
  42. back_api->memory_db: save GateToken/Base \n into MemoryDB
  43. back_api->front_api: Response GateToken
  44. front_api->front_api: keep GateToken in Front Session
  45. note over front_api #FCC873
  46. <b>if GateToken Lost or Expired</b>
  47. Show 505 Error Page &
  48. Go back to 1. Request /gate-token-get
  49. end note
  50. @enduml