Wiki source code of Anonymisation des Urls
Last modified by Aurelie Bertrand on 2025/02/07 10:22
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | **Procedure for automatic connection and anonymization of urls** | ||
2 | |||
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). | ||
4 | |||
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. | ||
6 | |||
7 | This token allows you to create an automatic session without having to specify the user name and password. | ||
8 | |||
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. | ||
10 | |||
11 | Here is the procedure: | ||
12 | |||
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. | ||
16 | |||
17 | Example: | ||
18 | |||
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. | ||
22 | ))) | ||
23 | |||
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. | ||
27 | ))) | ||
28 | |||
29 | |||
30 |