Blog Stats
  • Posts - 36
  • Articles - 2
  • Comments - 17
  • Trackbacks - 14

 

HttpHandlers and directory authentication/HttpModules

I decided to implement  Admin Rss Feeds after a particularly draining Friday. For the most part it went pretty smoothly, and learned something about working with a different team too ;). I Implemented an HttpModule that looked for FormsAuthentication redirects for rss feeds and changed it over to use basic authentication so rss readers could authenticate.

And for a while all was good. In fact other then unit tests I had thought I was done.

Then just to be thorough I set up several subfolder blogs off of localhost, and everything stopped working. Apparently something in the way that the rss HttpHandlers in Subtext are called skips all of the HttpModules set up in the web.config. I have a fix for this, I loop through all of the modules in the application and initialize them. I dont think this is the right solution since it also stops the <authorization> section in the /Admin folder is not being looked at either.

 

Technorati Tags: , ,


Feedback

# re: HttpHandlers and directory authentication/HttpModules

Gravatar That's odd. HttpModules should fire first so the handlers shouldn't affect the modules. Weird. 9/16/2007 7:13 AM | Haacked

# re: HttpHandlers and directory authentication/HttpModules

Gravatar I just tested it out now, and it appears that I was wrong about it initializing the modules. I had thought it was that because the break point I put in the Init method wasnt stopping. But after throwing Exceptions it appears that it is.<br />
<br />
So it appears I just have to figure out why the FormsAuthentication isnt causing the authentication for the Rss feed&nbsp;when the blog has a subfolder. 9/16/2007 6:01 PM | slynch

Post a comment





 

Please add 5 and 5 and type the answer here:

 

 

Copyright © Sean Lynch