Click here to Skip to main content
15,921,452 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I've build some farm solutions for Sharepoint 2013 application with Form based authentication. I would like to know, can i configure form based authentication and windows based authentication on single site collection?

How it will work?
Posted
Comments
Richard Deeming 26-Aug-15 9:51am    
Since IIS7, you can't use both Forms Authentication and Windows Authentication in the same application.

Mike Volodarsky posted a workaround for ASP.NET to allow different pages to use different authentication schemes:
IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication[^]

However, that's unlikely to work with SharePoint, and it doesn't sound like that's what you want to do anyway.
F-ES Sitecore 26-Aug-15 9:52am    
Not easily as windows auth operates at a lower level than forms auth and will prevent access to your code before forms auth does its work. There are hacky workarounds if you google "asp.net mix windows authentication and forms authentication" and they seem to work, but you're pretty much breaking the architectural rules of .net so it's not straightforward.
Richard Deeming 26-Aug-15 9:55am    
Just found a blog post for SharePoint 2010 which claims you can do it:
SharePoint 2010 mixed Authentication[^]

And this one suggests it's still possible in 2013:
SharePoint 2013 Custom Claims (FBA) based Mixed Mode Authentication - Part 1[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900