Sending a user bac to the discovery service from my IDP login page

Jim Fox fox at washington.edu
Fri Mar 11 15:46:56 EST 2016


> Can anyone suggest anything more sane/reliable/secure than trying to use the referrer?

How about the user hits the Back button?

Jim



On Fri, 11 Mar 2016, Wessel, Keith wrote:

> Date: Fri, 11 Mar 2016 12:23:54
> From: "Wessel, Keith" <kwessel at illinois.edu>
> To: "users at shibboleth.net" <users at shibboleth.net>
> Reply-To: Shib Users <users at shibboleth.net>
> Subject: Sending a user bac to the discovery service from my IDP login page
> 
> Hi, all,
>
> I'm working on adding a link to our IDP login page that, if a user chooses the wrong campus from the discovery service, will return them to the discovery service with their previous selection clearned. This means being able to pass back the parameters to the discovery service (entityID and return). This might not be possible. The plan, if I can do it, is to reconstruct the discovery service URL and send it along to the DS page used to clear previous choices as the returnTo parameter. The remembered selection will be clared, then the user redirected on.
>
> Best I've come up with so far is to use the referrer. If they incorrectly selected their campus in the immediate past click, which I can probably verify with a little sanity checking on the vaule of the referrer, this will, in fact, return them to the discovery service to try again.
>
> If, on the other hand, they told the discovery service to remember their campus before the last click, the referrer will most likely be the page on the SP that' they're currently trying to log into. Still not a bad thing as I'll be clearing their remembered selection before sending them back to the SP where they can just click login or do whatever they did there before.
>
> I know referrer can be faked, but since they won't see the IDP's login page unless it's accompanied by a valid, signed sqml request. Or is it? I suppose IDP-initiated SSO might rain on my parade.
>
> Can anyone suggest anything more sane/reliable/secure than trying to use the referrer? I can get the entityID, obviously, but the return parameter, shy of the referrer, seems like an impossibility.
>
> Thanks for any thoughts,
> Keith
>
> -- 
> To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net
>


More information about the users mailing list