Wiki source code of Anonymisation des Urls

Last modified by Aurelie Bertrand on 2020/07/21 11:35

Hide last authors
Aurelie Bertrand 55.6 1 **Procedure for automatic connection and anonymization of urls**
jhurst 1.1 2
Aurelie Bertrand 55.6 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 55.6 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.
abertrand 13.1 6
Aurelie Bertrand 55.6 7 This token allows you to create an automatic session without having to specify the user name and password.
Aurelie Bertrand 21.2 8
Aurelie Bertrand 55.6 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.
Aurelie Bertrand 23.1 10
Aurelie Bertrand 55.6 11 Here is the procedure:
Aurelie Bertrand 22.1 12
Aurelie Bertrand 55.6 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.
Aurelie Bertrand 22.1 16
Aurelie Bertrand 55.6 17 Example:
Aurelie Bertrand 42.1 18
Aurelie Bertrand 55.6 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.
Aurelie Bertrand 42.1 22 )))
23
Aurelie Bertrand 55.6 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.
Aurelie Bertrand 21.2 27 )))
28
Aurelie Bertrand 23.1 29
Aurelie Bertrand 55.6 30