[DeviceHome][VD] Provides webapis.sso APIs 98/282598/12 submit/tizen/20221028.160022
authorDongHyun Song <dh81.song@samsung.com>
Thu, 6 Oct 2022 09:24:55 +0000 (18:24 +0900)
committerDongHyun Song <dh81.song@samsung.com>
Thu, 27 Oct 2022 05:02:06 +0000 (05:02 +0000)
commit6dc64de013c41ef5374870fcbfa9d4140deae90b
tree95eaa4e9768eed5683a64b53cbf326c67310ee88
parentd5be18d0388da950108a8e8b97a7bede20200f51
[DeviceHome][VD] Provides webapis.sso APIs

This patch introduces 2 sso API.
 - webapis.sso.getGuid(): string;
 - webapis.sso.getOspAccessToken(clientId: string, secret: string,
       resolve: Function, reject?: Function): void;
   . reject is optional

When the 'OspAccessToken' event is emitted from WRT side to the main
thread, then, it propagates the event to the all workers. But the worker
has registered 'OspAccessToken' event can only take it.
Like as this manner, message listener can be expanded for another
purpose later.

Related chromium-efl patch:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/282600/

Change-Id: I5c941e66e2729dbbeeafbbdb35a803134ed4924b
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
wrt_app/service/device_api_router.ts
wrt_app/service/main.ts
wrt_app/service/service_manager.ts
wrt_app/service/service_runner.ts