Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

SharePoint 2013 custom authentication using GenericPrincipal

$
0
0

Hi Everyone,

I am trying to migrate a form based authentication SP 2007 site to form based authentication SP 2013. For login to my existing site, user get redirected my an authenticated site-minder portal. Upon redirection, a custom HTTP module on my SP 2007 retrieve authenticated user ID from HTTP header and pass it on to the generic principal class which initiates and complete authentication on SharePoint.

NameValueCollection col1 = HttpContext.Current.Request.Headers;
USER = col1["USER"];

GenericIdentity webIdentity = new GenericIdentity(USER, "Form");
GenericPrincipal principal = new GenericPrincipal(webIdentity, roles);  

Now, when I am trying to  follow the same process with SharePoint 2013, but I am getting the below error:

SPApplicationAuthenticationModule: There is no Authorization header, can't try to perform application authentication

I will appreciate, if anyone can help me with the above issue. 


KC



Viewing all articles
Browse latest Browse all 7589

Trending Articles