c# - How to skip ASP.Net form authentication of parent website on some ASP.Net MVC action of child website -



c# - How to skip ASP.Net form authentication of parent website on some ASP.Net MVC action of child website -

i have asp.net mvc website hosted in kid directory of other website protected form login below:

<domain>/parent --asp.net 2.0, login form (standard form auth) <domain>/parent/mysite --asp.net mvc 4.0 server: iis 6

to come in mysite website user should pass login form of parent website. ok until develop twilio application on mysite , need public access of twiml on <domain>/parent/mysite/twilio/twiml. /twilio area, /twiml controller.

i have tried next configuration on /mysite web.config doesn't work.

<location path="~/parent/mysite/twilio"> <system.web> <authorization> <allow users="*"/> </authorization> </system.web> </location>

edit

i don't have control/access alter code/configuration on parent website.

any thought how working?

the parent app has forms auth. hence creates encrypted cookie client browser, if decrypt cookie in kid app kid app check see if access should granted.

the above makes lots of assumptions doing standard microsoft forms auth, , if lucky using standard microsoft membership providers.

to enable decrypt cookie must set machinekey same in both apps, this blog explains it.

i think might have upgrade 2.0 app, don't know.

c# asp.net asp.net-mvc iis

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -