Building SP from source on Windows with VS2010 missing Versions.props and Includes.props

Martin Robinson martin.robinson at dai.co.uk
Tue Jun 9 12:00:35 EDT 2015


IIS has definitely been restarted loads of times. You can even see that the attributes are being found as part of the session status from the native.log file:

2015-06-09 16:44:24 DEBUG Shibboleth.ISAPI [3712] isapi_shib: mapped https://watford.dai.co.uk/BBC_DEV/loginnew.aspx to default
2015-06-09 16:44:24 DEBUG Shibboleth.SessionCache [3712] isapi_shib: searching local cache for session (_cb76a76bfb422183f189b9eda0f425a0)
2015-06-09 16:44:24 DEBUG Shibboleth.SessionCache [3712] isapi_shib: session not found locally, remoting the search
2015-06-09 16:44:24 DEBUG Shibboleth.Listener [3712] isapi_shib: sending message (find::StorageService::SessionCache)
2015-06-09 16:44:24 DEBUG Shibboleth.Listener [3712] isapi_shib: send completed, reading response message
2015-06-09 16:44:24 DEBUG Shibboleth.ServiceProvider [3712] isapi_shib: doAuthentication succeeded
2015-06-09 16:44:24 DEBUG Shibboleth.SessionCache [3712] isapi_shib: searching local cache for session (_cb76a76bfb422183f189b9eda0f425a0)
2015-06-09 16:44:24 DEBUG Shibboleth.SessionCache [3712] isapi_shib: session found locally, validating it for use
2015-06-09 16:44:24 DEBUG Shibboleth.SessionCache [3712] isapi_shib: unmarshalled attribute (ID: BBC-ChargeCode) with 1 value
2015-06-09 16:44:24 DEBUG Shibboleth.SessionCache [3712] isapi_shib: unmarshalled attribute (ID: BBC-Forename) with 1 value
2015-06-09 16:44:24 DEBUG Shibboleth.SessionCache [3712] isapi_shib: unmarshalled attribute (ID: BBC-Surname) with 1 value
2015-06-09 16:44:24 DEBUG Shibboleth.SessionCache [3712] isapi_shib: unmarshalled attribute (ID: BBC-Email) with 1 value
2015-06-09 16:44:24 DEBUG Shibboleth.SessionCache [3712] isapi_shib: unmarshalled attribute (ID: BBC-Division) with 1 value
2015-06-09 16:44:24 DEBUG Shibboleth.SessionCache [3712] isapi_shib: unmarshalled attribute (ID: BBC-StaffNo) with 1 value
2015-06-09 16:44:24 DEBUG Shibboleth.SessionCache [3712] isapi_shib: unmarshalled attribute (ID: BBC-NameID) with 1 value

However, as already noted, when I debug https://watford.dai.co.uk/BBC_DEV/loginnew.aspx and put a breakpoint on its page load method, there is no sign of the attributes being passed, but only the other Shibboleth request headers.

Weird thing is that if I set this up so that this same ASPX page requests SP-Initiated SSO to testshib.org,  then its attributes are indeed there in the request headers, and everything works. However, I'm trying to integrate to an IdP that sends unsolicited responses, so the situation is slightly different.

It feels almost as if it might be a timing issue, with ASPX starting to process the request before isapi_shib has finished with it, but I find that difficult to believe.

I'm baffled. I've now spent about 4 days working on this problem and have got nowhere. 

Martin






-----Original Message-----
From: dev [mailto:dev-bounces at shibboleth.net] On Behalf Of Cantor, Scott
Sent: 09 June 2015 16:46
To: Shib Dev
Subject: Re: Building SP from source on Windows with VS2010 missing Versions.props and Includes.props

On 6/9/15, 3:41 PM, "Martin Robinson" <martin.robinson at dai.co.uk> wrote:



>Are you suggesting that a .Net NameValueCollection object such as 
>Request.Headers can have items (keys) that are accessible using the
>collection("key") syntax, but that can't be iterated through using the 
>foreach Key in .AllKeys mechanism?

I'm suggesting that there are CGI APIs in which the answer to "what are all the headers?" excludes headers that are in fact available. I believe PHP is one, and IIRC ASP itself (not the new one) may also be one. I am not saying anything about .NET, because I don't know anything about .NET.

>The attributes don't appear in the ServerVariables collection either.

Ok. Then that leaves not restarting IIS across changes to the mappings. 
There is no other explanation I can think of.

-- Scott

--
To unsubscribe from this list send an email to dev-unsubscribe at shibboleth.net


More information about the dev mailing list