EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #09550
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Redirect loop after shibboleth authentication
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] Redirect loop after shibboleth authentication
- From: Lee Paton <PatonL@cardiff.ac.uk>
- Date: Fri, 19 Jan 2024 14:53:45 +0000
CAUTION: This e-mail originated outside the University of Southampton.
Hi Dave/John First up, John, apologies, I copied and pasted the cookie info from the incorrect site, the ones for orca-dev2.cardiff.ac.uk are: { "Request Cookies": { "_ga": "GA1.1.996006989.1705664539", "_ga_RRV66RFBKP": "GS1.1.1705664538.1.1.1705664547.0.0.0", "_shibsession_64656661756c7468747470733a2f2f6f7263612d646576322e636172646966662e61632e756b": "_2246c5adca3fd0bb76b0dd606314177a", "secure_eprints_session:orca-dev2.cardiff.ac.uk": "e77e7957efa0d20f1dad5c99b7b429d6" } } I’ve put some extra logging into perl_lib/EPrints/Apache/Auth.pm and found that the piece of code it doesn’t get past is if( $repository->current_url ne $repository->current_url( path => "cgi", "users/login" ) ) { EPrints::Apache::AnApache::send_status_line( $r, 302, "Need to login first" ); EPrints::Apache::AnApache::header_out( $r, "Location", $login_url ); EPrints::Apache::AnApache::send_http_header( $r ); return DONE; } $login_url is set to
https://orca-dev2.cardiff.ac.uk/shibboleth/login?target=https%3A%2F%2Forca-dev2.cardiff.ac.uk%2Fcgi%2Fusers%2Fhome here It calls the auth_cookie routine continuously as
my $user = $repository->current_user;
is never defined at the beginning, on the CentOS 7 system this code is run once, and the next time the auth_cookie routine is run $repository->current_user is defined Our apache builds do change in time so it’s likely that a setting has been changed, I’ll check what’s configured to see if anything shows up Thanks again Lee |
- Follow-Ups:
- RE: [EP-tech] Redirect loop after shibboleth authentication
- From: John Salter <J.Salter@leeds.ac.uk>
- RE: [EP-tech] Redirect loop after shibboleth authentication
- References:
- [EP-tech] Redirect loop after shibboleth authentication
- From: Lee Paton <PatonL@cardiff.ac.uk>
- Re: [EP-tech] Redirect loop after shibboleth authentication
- From: David R Newman <drn@ecs.soton.ac.uk>
- Re: [EP-tech] Redirect loop after shibboleth authentication
- From: Lee Paton <PatonL@cardiff.ac.uk>
- Re: [EP-tech] Redirect loop after shibboleth authentication
- From: David R Newman <drn@ecs.soton.ac.uk>
- [EP-tech] Redirect loop after shibboleth authentication
- Prev by Date: RE: [EP-tech] Redirect loop after shibboleth authentication
- Next by Date: RE: [EP-tech] Redirect loop after shibboleth authentication
- Previous by thread: RE: [EP-tech] Redirect loop after shibboleth authentication
- Next by thread: RE: [EP-tech] Redirect loop after shibboleth authentication
- Index(es):