EPrints Technical Mailing List Archive
Message: #06943
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] login redirection not working
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] login redirection not working
- From: Jonathan NORRIS <jonathan.norris@ist.ac.at>
- Date: Wed, 8 Nov 2017 15:08:26 +0000
So I had a look in the loginticket table and saw that on my last login an entry was created with a 'code' matching the value of my 'eprints_session%3A' cookie, but as you said,
there is a 'securecode' value in the database but no secure_eprints_session cookie in my browser.
If you look at my mail and look at the examples I gave of print outs of 'generate_cookie' and 'generate_secure_cookie' in 'perl_lib/EPrints/DataObj/LoginTicket.pm'. I can find an entry in the db with a code and securecode matching the values in those examples. But I guess only the non secure session cookie was set properly on that occasion too. I'm presuming that these entries are created in the database and then on the login redirect the values are taken from the cookies and compared against the database values, if everything matches then the user is logged in. Just as another point, before trying it with SSL I set it up with standard HTTP and was getting the exact same behaviour, just getting caught in the redirection loop. I hadn't investigated so deeply at that point and just configured SSL then as the eprints/shibboleth wiki example was done with SSL. Jonathan From: eprints-tech-bounces@ecs.soton.ac.uk [eprints-tech-bounces@ecs.soton.ac.uk] on behalf of Alan.Stiles [alan.stiles@open.ac.uk]
Sent: 08 November 2017 15:37 To: eprints-tech@ecs.soton.ac.uk Subject: Re: [EP-tech] login redirection not working If it is accessing via ssl it may well be looking for the secure cookie code, not finding it, sending you to the Shib login which knows who you are so sends you back to the login function which doesn’t find the secure code etc…
If you look in the loginticket table of your eprints instance, presumably your userid is there with the code matching your cookie and a securecode value which isn’t?
Alan
From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Jonathan NORRIS
Hello, |
- References:
- [EP-tech] login redirection not working
- From: Jonathan NORRIS <jonathan.norris@ist.ac.at>
- Re: [EP-tech] login redirection not working
- From: "Alan.Stiles" <alan.stiles@open.ac.uk>
- [EP-tech] login redirection not working
- Prev by Date: Re: [EP-tech] login redirection not working
- Next by Date: Re: [EP-tech] login redirection not working
- Previous by thread: Re: [EP-tech] login redirection not working
- Next by thread: Re: [EP-tech] login redirection not working
- Index(es):