Sharepoint 2010 Forum

 
Home » Forum » Sharepoint 2010       Ask a questionRSS Feeds

401 unauthorized for anonymous authentication

  Asked By: Raj Reddy         Date: Sep 26, 2010      Category: Sharepoint 2010      Views: 3698
 

We have implemented our own authentication module for IIS7 which would create an impersonation token using
lsalogonuser for authenticated user. We are using our own custom login pages to get the login credentials.These pages are placed under a virtual directory and the authentication is set to anonymous for that directory.
When a web application is accessed, login page is shown first. After entering the user credentials, user is authenticated and impersonation token
would be created and given access to the web application. Now if we try to logout using our custom logout page, we are getting 401 unauthorized for the logout page.

When we debug we see that 401 is returned by SPRequestModule. And we noticed that WSS_KeepSessionAuthenticated cookie is set by sharepoint for the
web application. If we remove this cookie, everything works fine.

How can we avoid this error and display these pages without any issues?


Do you know someone who can help? Share a link to this thread on twitter, or facebook.


 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on 401 unauthorized for anonymous authentication Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].