EPrints Technical Mailing List Archive
Message: #06945
< 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: Thu, 9 Nov 2017 11:57:33 +0000
So as a test I decided to set up an non-SSL instance of my eprints container and investigate the cookies a bit. In my SSL configure eprints when I try to log in I can see that only
the 'eprints_session' cookie is set with no 'secure_eprints_session'. This time, in my non-SSL setup, no cookies are being set when I try to log in. Like in my previous tests I can log the fact that they are being created by 'generate_cookie' in the 'set_cookies'
sub, but the do not seem to be set in the browser.
So in both cases the required cookie is not being set. When eprints is in SSL then only the 'eprints_session' cookies is set. When eprints is in non-SSL no eprints session cookies are set at all. I'm wondering could the fact that all the requests are proxied through the containers host machine have an effect on this. 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 16:26 To: eprints-tech@ecs.soton.ac.uk Subject: Re: [EP-tech] login redirection not working Also – if you have recently upgraded to a version newer than 3.3.13 (I think) the cookie name may now be “eprints_session:”.$repo->config(‘host’), So ours is now (where the colon is represented as %3A )
eprints_session%3Aoro.open.ac.uk for the standard (non-ssl) cookie name and will be secure_eprints_session%3Aoro.open.ac.uk for the secure code
From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Jonathan NORRIS
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.
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] 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, -- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority in relation to its secondary activity of credit broking. |
- 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>
- Re: [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: [EP-tech] REF Compliance Checker report Heading
- Previous by thread: Re: [EP-tech] login redirection not working
- Next by thread: [EP-tech] REF Compliance Checker report Heading
- Index(es):