provider-reciever-prepare.uml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. title "How to Prepare Service from Provider Server with Api23Key"
  2. boundary ReceiverMemberFront as receiver
  3. boundary ProviderUserFront as provider
  4. entity ProvServer_User as prov_svr
  5. database ProvDB as prov_db
  6. entity SsoServer as sso_svr
  7. autonumber
  8. [->provider: open setup page@user-menu
  9. activate provider
  10. provider->provider: create \nApi23KeyPair\n #setup popup page
  11. provider->prov_svr: request /api23e-key-pair-set \n %Api23KeyPair
  12. activate prov_svr
  13. prov_svr->sso_svr: request /key-pair-get
  14. activate sso_svr
  15. sso_svr->prov_svr: response KeyPair
  16. deactivate sso_svr
  17. prov_svr->prov_svr: encrypt #Api23KeyPair \n%Api23KeyPair, KeyPair
  18. prov_svr->prov_db: save Api23eKeyPair\n @setup table
  19. prov_svr->provider: response OK
  20. deactivate prov_svr
  21. deactivate provider
  22. [->receiver:open FormA \nApi23-key-get page \n@member_menu
  23. activate receiver
  24. receiver->receiver: input \nRecType(web/js/app),\nRecUrl
  25. receiver->receiver: get ClientId@SysVars
  26. receiver->prov_svr: request /api23-key-get \n%(ClientId, RecType, RecUrl)
  27. activate prov_svr
  28. prov_db->prov_svr: get api23e-key-pair\n @setup table
  29. prov_svr->sso_svr: request /key-pair-get
  30. activate sso_svr
  31. sso_svr->prov_svr: response KeyPair
  32. deactivate sso_svr
  33. prov_svr->prov_svr: decrypt #Api23KeyPair \n%Api23eKeyPair, KeyPair
  34. prov_svr->prov_svr: encrypt #Api23Key \n%json ( ClientId,\nRecUrl,\nRecType, \nSsoSubId ),\n %Api23KeyPair
  35. prov_svr->prov_db: save Api23Key\n #api23_key @api23_key table
  36. prov_svr->receiver: show for user to copy-paste Api23Key
  37. deactivate prov_svr
  38. receiver->[: copy-paste \n@js-file
  39. deactivate receiver