The contents you find here are totally obsolete so do not use this website to obtain a solution for your issues: the indications you get from here will not be accurate and may lead to data loss or other mayor problems

Auto Login

We tried to make LogicalDOC as intuitive as possible, but an advice is always welcome.

Moderator: car031

saidmsl
Posts: 10
Joined: Wed May 04, 2016 5:10 am

Auto Login

Wed May 04, 2016 4:52 pm

Hi,

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

Thanks
agaspa
Posts: 714
Joined: Tue Apr 20, 2010 8:24 am

Re: Auto Login

Thu May 05, 2016 8:26 am

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
saidmsl
Posts: 10
Joined: Wed May 04, 2016 5:10 am

Re: Auto Login

Thu May 05, 2016 4:30 pm

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
agaspa
Posts: 714
Joined: Tue Apr 20, 2010 8:24 am

Re: Auto Login

Mon May 09, 2016 8:29 am

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
agaspa
Posts: 714
Joined: Tue Apr 20, 2010 8:24 am

Re: Auto Login

Tue May 10, 2016 9:45 am

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
saidmsl
Posts: 10
Joined: Wed May 04, 2016 5:10 am

Re: Auto Login

Tue May 10, 2016 2:51 pm

thanks

let me try
saidmsl
Posts: 10
Joined: Wed May 04, 2016 5:10 am

Re: Auto Login

Tue May 10, 2016 3:10 pm

got this error :

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

and the window is frozen on Loading messages
agaspa
Posts: 714
Joined: Tue Apr 20, 2010 8:24 am

Re: Auto Login

Tue May 10, 2016 3:21 pm

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
saidmsl
Posts: 10
Joined: Wed May 04, 2016 5:10 am

Re: Auto Login

Tue May 10, 2016 4:37 pm

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?
agaspa
Posts: 714
Joined: Tue Apr 20, 2010 8:24 am

Re: Auto Login

Tue May 10, 2016 5:12 pm

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>

Return to “Usage”

Who is online

Users browsing this forum: No registered users and 126 guests

× Attention! This forum has been dismissed and will be soon removed. The contents you find here are totally obsolete so do not use this website to obtain a solution for your issues: the indications you get from here will not be accurate and may lead to data loss or other mayor problems.