Refresh idp session in Ajax based SP

Petr Medek (DHL IT Services) Petr.Medek at dhl.com
Fri Apr 29 07:01:29 EDT 2016


Hello all

We use shibboleth idp3 as sso solution for multiple applications (SPs). We have custom saml filter + consumption servlet managing forwards and communication with idp.
Now one of the applications uses Ajax heavily so it's common that users stays at one page for a long time and despite user's activity there's no redirect to idp (our filter passes Ajax calls as they cannot manage redirect + saml response page/form).
So what happens is that idp session expires (after configured timeout) and later when user clicks to different page the login page appears - after redirect to idp.

Is there a way how idp session can be refreshed via Ajax/js call? I guess idp code seeks the session via standard servlet session or (which is) using cookie. And it probably cannot be read without visiting idp page.

Was also thinking about adding iframe to the page with saml request directly to SSO idp flow - if cookie is used the iframe would get even login form or saml response form with js autosubmit.

Could back channel query be used to refresh the session? Didn't find much documentation on this but my understanding is this is SOAP web service to query response attributes. Not sure what input parameters are and if such call matches & refresh the session.

Thanks for any hints
Petr


This message is from DHL Information Services (Europe) s.r.o. and may contain confidential business information. It is intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient please contact the sender and delete this message and any attachment from your system. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its attachments is strictly prohibited.


More information about the dev mailing list