authentication - Why has my ASP.NET single sign-on stopped working? -
i have .net 2.0 web application acts authentication stub older .net 1.1 web app. user logs in via 2.2 app , gets redirected 1.1 app business. had used technique described scott guthrie, matching machine keys in local web.config files, auth ticket readable both applications. technique has worked me in 5 instances couple of years.
until now.
as of morning 4 of our paired applications, configured described above, have stopped working in production: bounced after (seemingly) successful authentication attempt. during login attempt bounced login page. i've checked event logs , iis logs , found nothing of consequence. can see auth cookie has been set in our browsers. we've tried multiple browsers (ie , chrome). on weekend know more dozen patches installed on web server, 1 of added framework 4.0, have no way of knowing whether of these patches caused problem. interestingly, noticed same behavior on dev box before christmas. since time none of 4 paired applications has been re-deployed, don't think deployment issue caused spread production.
there one pair of applications still working , we're comparing code , configuration see what's up, far haven't found (or else wouldn't writing post!)
update figured out lone pair of applications doing right: handling authorization through code. developed workaround ailing apps:
original:
<authorization> <allow deny="?" /> </authorization>
workaround:
<authorization> <allow users="*" /> </authorization>
then added code aspx base page check auth cookie:
if (request.cookies.get(formsauthentication.formscookiename) == null) response.redirect(system.configuration.configurationsettings.appsettings["membershiploginurl"],true);
my code seems fulfilling role used performed asp.net, namely checking whether or not user authorized. - have workaround, mystery remains.
does know if there patch microsoft, released in past 4 months (our server updated 4 month's worth of patches), disabled asp.net's ability authenticate/decrypt cookies between web applications on different versions of .net?
i received response scott guthrie... problem experiencing caused windows update.
i have deployed hotfix on local xp sp3 machine , staging , production windows 2003 machines , fixed problem.
Comments
Post a Comment