@startuml title Extended Process of AppBase of GateToken boundary ProPage as pro_page control Erp_Front_API as app_api control Erp_Backend_API as back_api autonumber note over pro_page: AppUri, AppBase64 pro_page->app_api: request /gate-token-get note over app_api #FCC873: ClientId, BB64, AB64 app_api->back_api: Request /gate-token-get note over back_api #73EDFC KeyPair Get See EnvDaboryToGateToken end note back_api->back_api: Decrypt AB64 with KeyPair note over back_api #73EDFC 1.Get Decrypted ClientId and SsoSubId From AB64 2.ClientId and Decrypted ClientId end note back_api->app_api: return error If ClientId Mismatch note over back_api #73EDFC Create GateToken and Save GTBase DBconn, SsoSubId and Etc See EnvDaboryToGateToken SsoSubId -> Allow to Access All APIs end note back_api->app_api: Response GateToken app_api->pro_page: Return GateToken @enduml