We have a Single sign-on (SSO) web app used to authenticate users in different applications based on a username and password. It then generates a random token and saves it in the database.
To authenticate users in other apps, we have an http module running on every request, which verifies the token and sets the context user like this:
WindowsIdentity identity = new WindowsIdentity(currentUsername, "WindowsAuthentication");
WindowsPrincipal principal = new WindowsPrincipal(identity);
this.context.User = principal;
This method works in Sharepoint 2010 (configured with Windows Authentication). However this doesn't work with the new Sharepoint 2013 (configured with Windows Authentication as well).
- Do you have any idea why this method doesn't work anymore in Sharepoint 2013?
- Do you have any suggestions for what I can try to make this work?
- Do you have any suggestions for a different method of authentication for Sharepoint 2013?