Chaining Session hooks? (resurrected)
Cantor, Scott
cantor.2 at osu.edu
Tue Jun 6 10:33:27 EDT 2017
On 6/6/17, 9:34 AM, "users on behalf of Jan Vilhuber" <users-bounces at shibboleth.net on behalf of JVilhuber at absolute.com> wrote:
> I guess I still misunderstood how aggressively sessionhook does loop detection.
All it does is check for a parameter on the URL, and until you send control back to the SP's URL, it does nothing. It can't, it isn't involved.
> I had run a test that showed I COULD actually run hookA and have it redirect to hookB (except I didn't use a 302, but for testing
> had hookA display variables I could look at and then display a link to hookB to simulate the call to hookB, which worked when
> clicked on! apparently that wasn't a valid test, though). What I'm seeing now is: SP does a 302 redirect to hookA. hookA does a
> 302 redirect to hookB. The intention was to have hookB redirect to 'return'.
That will work fine.
> But what I see instead is a 301 redirect, which I'm pretty certain comes from the SP, which redirects back to hookB. This results
> in a 404 for hookB.
There is no 301 coming from the SP, all its redirects should be 302s. If I had to guess, maybe you have the SP configured to treat one or both of the hooks as protected resources, which for obvious reasons you can't allow.
-- Scott
More information about the users
mailing list