Homec4science

WebStyle: authenticated user HTTPS support

Authored by Samuele Kaplun <samuele.kaplun@cern.ch> on Sep 12 2011, 10:33.

Description

WebStyle: authenticated user HTTPS support

  • When using SSO authentication based on Shibboleth, no longer expect Shibboleth to be triggered for every HTTPS requests but only for /youraccount/login and /youraccount/keepssoalive, the latter being referenced by a hidden IFRAME and pinged regularly to, indeed, keep the SSO session alive.

    This change is necessary in order to allow Invenio to be executed fully over HTTPS, without Shibboleth authentication to be triggered upon every request.
  • Additionally if CFG_SITE_URL uses HTTPS, then any HTTP request will be re-routed to HTTPS and the cookie session will be sent only via HTTPS.
  • If serving an HTTPS request and MathJax is enabled and is configured to use the CDN, that the HTTPS-based URL for the MathJax CDN will be used.
  • Any external URL being referenced by an src attribute of an HTML page served by Invenio over HTTPS is now rewritten to point to CFG_SITE_SECURE_URL/sslredirect/URL so that the URL looks like HTTPS and browsers do not complain.
  • Any local URL being referenced by a src or href attribute of an HTML page served by Invenio over HTTPS is now rewritten to point to CFG_SITE_SECURE_URL. (closes #565)
  • Note: beware you should update your Apache configuration (e.g. by running "inveniocfg --create-apache-conf" in order to add to the SSL part a global redirection directive of the form "RedirectMatch /sslredirect/(.*) http://$1".

Details

Committed
Tibor Simko <tibor.simko@cern.ch>Oct 31 2011, 15:04
Parents
R3600:7fc56627bd16: BibSched: fix multiple task execution bug
Branches
Unknown
Tags
Unknown

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:c1e3691cc782: WebStyle: authenticated user HTTPS support (authored by Samuele Kaplun <samuele.kaplun@cern.ch>).Oct 31 2011, 15:04