Wiki source code of Anonymisation des Urls

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

Hide last authors
Aurelie Bertrand 16.1 1 **Procedure for automatic connection and anonymization of urls**
jhurst 1.1 2
Aurelie Bertrand 16.1 3 This document describes how to authenticate automatically without using the user and pass parameters in the various modules of DigDash Enterprise (dashboards, configuration pages).
jhurst 1.1 4
Aurelie Bertrand 16.1 5 The principle is to request, once authenticated, a tokenid allowing during its use to create a new session based on that requested by the current session.
jhurst 1.1 6
Aurelie Bertrand 16.1 7 This token allows you to create an automatic session without having to specify the user name and password.
jhurst 1.1 8
Aurelie Bertrand 16.1 9 This tokenid is for single use only, the same tokenid cannot be used to create more than one session. To create several sessions, several tokenid are necessary.
abertrand 13.1 10
Aurelie Bertrand 16.1 11 Here is the procedure:
jhurst 1.1 12
Aurelie Bertrand 16.1 13 * Classic authentication via login page or user login and password.
14 * REST API tokenid request.
15 * Use of tokenid in an url allowing to create an automatic session without authentication.
jhurst 1.1 16
Aurelie Bertrand 16.1 17 Example:
jhurst 1.1 18
Aurelie Bertrand 16.1 19 * Tokenid retrieval through a web service with the following url:
20 ** ex : [[http:~~/~~/localhost:8080/ddenterpriseapi/DDEnterpriseServlet?user=admin&pass=admin&method=newAuthToken>>url:http://http//localhost:8080/ddenterpriseapi/DDEnterpriseServlet?user=admin&pass=admin&method=newAuthToken]](((
21 Use of the method = newAuthToken parameter allowing the return of this url to recover the new tokenid thus generated.
jhurst 1.1 22 )))
fperrier 11.2 23
Aurelie Bertrand 16.1 24 * Use of tokenid in a dashboard:
25 ** ex : [[http:~~/~~/localhost:8080/digdash_dashboard/index.html?user=admin&authToken=tokenid>>url:http://localhost:8080/digdash_dashboard/index.html?user=admin&authToken=tokenid]](((
26 The tokenid parameter is the one returned in step 1.
jhurst 1.1 27 )))
fperrier 11.2 28
29
Aurelie Bertrand 16.1 30