I have an ASP.NET web application \"K\" that has its own authentication and authorization built on SimpleMembershipProvider.
Now I want to set up a web site that has ap
Here is how I solved it.
>
<authentication mode="Forms">
<forms loginUrl="/dnn/Login.aspx" defaultUrl="~/" name=".DOTNETNUKE" protection="All" timeout="60" cookieless="UseCookies" />
</authentication>
Now, the user will log in onto DNN, and click a link to access "K". When this happens, "K" can behave as if the user actually logged in using "K" application, like reading roles from Web.Security, etc. That comes for free since you made its forms authentication cookie name and MachineKey synced between two applications.
It sounds like you need to modify the authentication method of your "K" application. Then, you could build a module that takes care of the behaviors based on whether the user is logged in and is in a certain role.
Once you log into DNN and check the roles, your user needs to be authenticated to the "K" website.
We do something similar, but it required that our "internal" site would accept a token as proof of who the user was and they were authenticated.
Here is an example of what we do: