Last modified by Aurelie Bertrand on 2025/02/07 10:22

Hide last authors
jhurst 1.1 1 {{ddtoc/}}
2
Aurelie Bertrand 10.1 3 = Introduction =
jhurst 1.1 4
baudard 1.2 5
Aurelie Bertrand 10.1 6 DigDash can be embedded at multiple “levels” in external websites:
jhurst 1.1 7
Aurelie Bertrand 10.1 8 * Dashboard
9 * Dashboard page
10 * Information {{glossaryReference glossaryId="Glossary" entryId="Flux"}}Flow{{/glossaryReference}}
11
12 In this document we will present url that works in the following context:
13
14 * Server name: ddsrv
jhurst 1.1 15 * Port: 8080
Aurelie Bertrand 10.1 16 * DigDash Domain: ddenterpriseapi
17 * DigDash Dashboard Domain: digdash_dashboard
jhurst 1.1 18
Aurelie Bertrand 10.1 19 = Dashboard =
jhurst 1.1 20
Aurelie Bertrand 10.1 21 At this level you can embed multiple pages in an iframe.
jhurst 1.1 22
23 URL : http:~/~/ddsrv:8080/digdash_dashboard/index.html
24
Aurelie Bertrand 10.1 25 Available parameters:
jhurst 1.1 26
Aurelie Bertrand 10.1 27 * login=<user> User to authenticate
28
29 * pass=<password> Password for the user
jhurst 1.1 30
Aurelie Bertrand 10.1 31 * domain=<domainname>// //DigDash Enteprise domain name
32 Example: ddenterpriseapi
33 * server=<server URL> DigDash Enterprise domain server URL
34 Example : http:~/~/localhost:8080
jhurst 1.1 35
Aurelie Bertrand 10.1 36 * hideBanner=<true|false> Hide (true) or show (false) the main title bar
37
38 * hideFilters=<true|false> Hide (true) or show (false) the filter bar
39
40 * <variableName>=<value> Specify a value for the variable variableName
41
42 * <filterselection> See section V below
43
44 **Example**
45
jhurst 1.1 46 (% class="box" %)
47 (((
Aurelie Bertrand 10.1 48 http:~/~/ddsrv:8080/digdash_dashboard/index.html?server=http:~/~/localhost:8080&domain=ddenterpriseapi&login=user1&pass=pass1&hideBanner=true&hideFilters=true&var=1
jhurst 1.1 49 )))
50
Aurelie Bertrand 10.1 51 = Dashboard Page =
jhurst 1.1 52
Aurelie Bertrand 10.1 53 At this level you can embed one page or all the pages of a dashboard role into an iframe
abertrand 5.1 54
Aurelie Bertrand 10.1 55 URL:
jhurst 1.1 56
Aurelie Bertrand 10.1 57 http:~/~/ddsrv:8080/digdash_dashboard/index.html?page=<user|role>[.<pagename>]
jhurst 1.1 58
Aurelie Bertrand 10.1 59 If you want one page you specify the page name otherwise you will get all the pages of the user or role selected.
jhurst 1.1 60
Aurelie Bertrand 10.1 61 Available parameters:
jhurst 1.1 62
Aurelie Bertrand 10.1 63 * page=<user|role>[.<pagename>] Page name prefixed by role or user name
64 * login=<user> User to authenticate
65
66 * pass=<password> Password for the user
67 * domain=<domainname>// //DigDash Enteprise domain name
68 Example: ddenterpriseapi
69 * server=<server URL> DigDash Enterprise domain server URL
70 Example : http:~/~/localhost:8080
71 * hideBanner=<true|false> Hide (true) or show (false) the main title bar
72 * hideFilters=<true|false> Hide (true) or show (false) the filter bar
73 * <variableName>=<value> Specify a value for the variable variableName
74 * <filterselection> See section V below
jhurst 1.1 75
Aurelie Bertrand 10.1 76 **Example**
jhurst 1.1 77
78 (% class="box" %)
79 (((
Aurelie Bertrand 10.1 80 [[http:~~/~~/ddsrv:8080/digdash_dashboard/index.html?page=user1.page1&domain=ddenterpriseapi&login=user1&pass=pass1&hideBanner=true&hideFilters=true&var=1>>url:http://ddsrv:8080/digdash_dashboard/index.html?page=user1.page1&domain=ddenterpriseapi&login=user1&pass=pass1&hideBanner=true&hideFilters=true&var=1]]
jhurst 1.1 81 )))
82
Aurelie Bertrand 10.1 83 = Information {{glossaryReference glossaryId="Glossary" entryId="Flux"}}Flow{{/glossaryReference}} =
jhurst 1.1 84
Aurelie Bertrand 10.1 85 At this level you can embed one information flow (graphic component) of your information wallet into an iframe
jhurst 1.1 86
Aurelie Bertrand 10.1 87 URL: http:~/~/ddsrv:8080/ddenterpriseapi/viewflow?flowId=<flowid>
jhurst 1.1 88
Aurelie Bertrand 10.1 89 There is an easy way to get that URL for a specific flow from the information wallet configuration by clicking on “copy flow URL”
jhurst 1.1 90
Aurelie Bertrand 10.1 91 Available parameters:
jhurst 1.1 92
Aurelie Bertrand 10.1 93 * flowId=<flow> Identifier for the flow to display
94 * user=<user> User to authenticate
95
96 * pass=<password> Password for the user
jhurst 1.1 97
Aurelie Bertrand 10.1 98 * hideFilters=<true|false> Hide (true) or show (false) the filter bar
jhurst 1.1 99
Aurelie Bertrand 10.1 100 * <variableName>=<variableValue> Specify the value of variable variableName
jhurst 1.1 101
Aurelie Bertrand 10.1 102 * <filterselection> See section V below
103
104 **Example:**
105
jhurst 1.1 106 (% class="box" %)
107 (((
Aurelie Bertrand 10.1 108 http:~/~/ddsrv:8080/ddenterpriseapi/viewflow?flowId=2340fd0&user=user1&pass=pass1&hideFilters=true&var=1
jhurst 1.1 109 )))
110
Aurelie Bertrand 10.1 111 = Filters =
jhurst 1.1 112
Aurelie Bertrand 10.1 113 You can specify pre-defined filters when for your iframe integration by setting some dimension filter parameters.
jhurst 1.1 114
Aurelie Bertrand 10.1 115 Filters are on the form:
jhurst 1.1 116
Aurelie Bertrand 10.1 117 DimensionName=FilterValue
jhurst 1.1 118
Aurelie Bertrand 10.1 119 If the dimension contains one or more Hierarchies you can select the desired Hierarchy and Level by adding
jhurst 1.1 120
Aurelie Bertrand 10.1 121 **H**DimensionName=HierarchyName
jhurst 1.1 122
Aurelie Bertrand 10.1 123 **L**DimensionName=LevelName
jhurst 1.1 124
Aurelie Bertrand 10.1 125 **Example**
jhurst 1.1 126
127 (% class="box" %)
128 (((
129 http:~/~/ddsrv:8080/ddenterpriseapi/viewflow?flowId=2340fd0&user=user1&pass=pass1&Geo=France&HGeo=Geography&LGeo=Country
130 )))
fperrier 4.1 131
Aurelie Bertrand 10.1 132 = Security Constraints =
fperrier 4.1 133
Aurelie Bertrand 10.1 134 Some browsers, for example Chrome from its version 80, may refuse to process cookies that are coming from embedded webpages if the iframe site host is different than the embedding page.
fperrier 4.1 135
Aurelie Bertrand 10.1 136 The solution is to use an attribute //SameSite=None// on the cookie. This attribute must be set be the application container (Tomcat), or the HTTP front server (eg. Apache httpd). There are various available documents online to configure this cookie attribute. For tomcat's cookies : [[https:~~/~~/tomcat.apache.org/tomcat-9.0-doc/config/cookie-processor.html>>https://tomcat.apache.org/tomcat-9.0-doc/config/cookie-processor.html]]. On the Apache httpd side, the use of mod_headers module may be required.
fperrier 4.1 137
Aurelie Bertrand 10.1 138 However, the attribute //SameSite //can not be set on an non-secure cookie. So the //Secure //attribute must be set as well to be able to set SameSite=None. And the //Secure //attribute must be set only for HTTPS site.
fperrier 4.1 139
Aurelie Bertrand 10.1 140 So, consequently, embedding a DigDash Enterprise dashboard, or viewflow page, in an iframe,** if the embedding page and the iframe have different hosts**, will require to use an HTTPS connexion, and to configure cookie processing.
141
142 The following Mozilla document this requirements : [[https:~~/~~/developer.mozilla.org/fr/docs/Web/HTTP/Headers/Set-Cookie/SameSite>>url:https://developer.mozilla.org/fr/docs/Web/HTTP/Headers/Set-Cookie/SameSite]]
143
144
145
146
147