Use of cynagoauth 40/23340/2
authorJosé Bollo <jose.bollo@iot.bzh>
Tue, 10 Dec 2019 22:13:52 +0000 (23:13 +0100)
committerJosé Bollo <jose.bollo@iot.bzh>
Tue, 17 Dec 2019 18:09:24 +0000 (19:09 +0100)
The flow of HTML5 applications is adjusted to use
the basic implementation of cynagoauth.

Bug-AGL: SPEC-2968
Bug-AGL: SPEC-3032

Change-Id: Iabf7ebb39fe9ed87bf1fd5b6742fb512a6df19a7
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
conf/system/afm-system-daemon.service.in
conf/unit/binder.inc

index fa83f11..dc980cc 100644 (file)
@@ -1,6 +1,6 @@
 [Unit]
 Description=Application Framework Master, system side
-Requires=afm-system-setup.service
+Requires=afm-system-setup.service cynagoauth.service
 
 [Service]
 #User=afm
index 81758fc..a7188e0 100644 (file)
@@ -47,6 +47,6 @@ ENDIF \
                ON_VALUE(tcp,           --ws-server=tcp:{{name}}) \
        {{/provided-api}} \
        ON_PERM(:platform:apis:auto-ws, --auto-api=API_PATH_WS) \
-       ON_CONTENT(text/html,                   --exec /usr/bin/web-runtime http://LOCALUSERAPP:8080/{{content.src}}) \
+       ON_CONTENT(text/html,                   --exec /usr/bin/cynagoauth-launch /usr/bin/web-runtime http://LOCALUSERAPP:8080/{{content.src}}) \
        ON_CONTENT(application/vnd.agl.native,  --exec {{:#metadata.install-dir}}/{{content.src}} @p @t)
 %nl