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