Page 1 of 2

Auto Login

Posted: Wed May 04, 2016 4:52 pm
by saidmsl
Hi,

Is it possible to pass login and password on url or using a post method to auto login to LD?

Thanks

Re: Auto Login

Posted: Thu May 05, 2016 8:26 am
by agaspa
Hi said,
currently it is not possible, but I have a question 4 Y,
you need to work with the software GUI, or it's something you'd like to use with Web-services?

In the next release of LogicalDOC (LogicalDOC 7.5) we're working on, there will be significant innovations on the subject of web-services.
In fact there will be a whole new class of web-services REST who will implement the JAX-RS specification (2.0)

Alex

Re: Auto Login

Posted: Thu May 05, 2016 4:30 pm
by saidmsl
Hi,

i need to embed the GUI inside an iframe so that the user does not have to login
something like :
<iframe width="100%" height="600" src="http://127.0.0.1:8080/?user=admin&passw ... "></iframe>
Thanks

Re: Auto Login

Posted: Mon May 09, 2016 8:29 am
by agaspa
Hi saidmsl,
currently this is not possible, maybe in the future with the next release 7.5
I don't know all the details, but perhaps that will be possible

Br
Alex

Re: Auto Login

Posted: Tue May 10, 2016 9:45 am
by agaspa
Hi Said,
to tell the truth, there would be a way to open Logicaldoc in an iframe avoid passing from the login page.
To implement it is necessary to first perform an authentication via web-service, and then pass a parameter (sid) to the address of access

E.g.:

Code: Select all

http://localhost:8080/?sid=4b787ad7-4b58-4bd6-b4a0-ba98a08852fc
or (if your context is "/logicaldoc")

Code: Select all

http://localhost:8080/logicaldoc/frontend.jsp?sid=4b787ad7-4b58-4bd6-b4a0-ba98a08852fc
Br
Alex

Re: Auto Login

Posted: Tue May 10, 2016 2:51 pm
by saidmsl
thanks

let me try

Re: Auto Login

Posted: Tue May 10, 2016 3:10 pm
by saidmsl
got this error :

F14F81377E3366CD239B0AB9CF0EF64A.cache.html:6601
Uncaught TypeError: Cannot read property 'C' of undefined

and the window is frozen on Loading messages

Re: Auto Login

Posted: Tue May 10, 2016 3:21 pm
by agaspa
Of course you should substitute the value of the param sid with a valid sessionID value.
Other problem might be the browser you're using or the execution privileges on frames/iframes (I know that Internet Explorer has some of these settings)
Also do not forget to completely clear the cache of the browser

Re: Auto Login

Posted: Tue May 10, 2016 4:37 pm
by saidmsl
have tested on both mozilla firefox and google chrome (i'm not using IE)
of course i have used a valid sid and cleared the cache
still have the same error

opening the url on new page load the document well

is it possible to disable the cache.html?

Re: Auto Login

Posted: Tue May 10, 2016 5:12 pm
by agaspa
I'm sorry, but I don't know how to solve this problem.
Try to add a new random parameter (myRandomPar):

Code: Select all

http://localhost:8080/logicaldoc/frontend.jsp?sid=<sessionID>&myRandomPar=<timestamp>