123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- title "How to Prepare Service from Provider Server with Api23Key"
- boundary ReceiverMemberFront as receiver
- boundary ProviderUserFront as provider
- entity ProvServer_User as prov_svr
- database ProvDB as prov_db
- entity SsoServer as sso_svr
- autonumber
- [->provider: open setup page@user-menu
- activate provider
- provider->provider: create \nApi23KeyPair\n #setup popup page
- provider->prov_svr: request /api23e-key-pair-set \n %Api23KeyPair
- activate prov_svr
- prov_svr->sso_svr: request /key-pair-get
- activate sso_svr
- sso_svr->prov_svr: response KeyPair
- deactivate sso_svr
- prov_svr->prov_svr: encrypt #Api23KeyPair \n%Api23KeyPair, KeyPair
- prov_svr->prov_db: save Api23eKeyPair\n @setup table
- prov_svr->provider: response OK
- deactivate prov_svr
- deactivate provider
- [->receiver:open FormA \nApi23-key-get page \n@member_menu
- activate receiver
- receiver->receiver: input \nRecType(web/js/app),\nRecUrl
- receiver->receiver: get ClientId@SysVars
- receiver->prov_svr: request /api23-key-get \n%(ClientId, RecType, RecUrl)
- activate prov_svr
- prov_db->prov_svr: get api23e-key-pair\n @setup table
- prov_svr->sso_svr: request /key-pair-get
- activate sso_svr
- sso_svr->prov_svr: response KeyPair
- deactivate sso_svr
- prov_svr->prov_svr: decrypt #Api23KeyPair \n%Api23eKeyPair, KeyPair
- prov_svr->prov_svr: encrypt #Api23Key \n%json ( ClientId,\nRecUrl,\nRecType, \nSsoSubId ),\n %Api23KeyPair
- prov_svr->prov_db: save Api23Key\n #api23_key @api23_key table
- prov_svr->receiver: show for user to copy-paste Api23Key
- deactivate prov_svr
- receiver->[: copy-paste \n@js-file
- deactivate receiver
|