@startuml
title "Inputing DBconn Info To Uploading .env.dabory"
boundary ERP_User_PC as erp_user
boundary DaborySSOPage as sso_page
participant SSO_FrontSrv as sso_front
participant SSO_BackSrv as sso_back
database sso_db
autonumber
note over sso_page #99FF99
After Login DaborSSO
end note
sso_page->sso_front: open app manager page
sso_front->sso_front: create client_id / client_secret
sso_page->sso_front: confirm to create key_pair/public_key
sso_front->sso_front: create key_pair/public_key
sso_page->sso_front: input DB connection info
sso_front->sso_front: encrypt DB con with public_key
sso_front->sso_front: create .xxx_env.dabory file
sso_front->erp_user: download .env.dabory file
sso_page->sso_front: click save button
sso_front->sso_back: request DB save with created info
sso_back->sso_db: save sso info
note over sso_db
Client Info
client_id
client_secret
key_pair
end note
sso_db->sso_back: OK save
sso_back->sso_front: OK
sso_front->sso_page: OK
sso_page->erp_user: Move to FTP uploader
erp_user->erp_front: Upload the file into .env.dabory