kala-tamin Using Basic Authentication and Forms authentication on same site


Using Basic Authentication and Forms authentication on same site



Can anyone tell me, if it is possible to use both basic and forms authentication on my site without the 2 interfering with each other?

I have a new site that I want only certain people to see for approval purposes.

The site has a members area that uses Forms authentication and now when anyone enters the site after passing basic authentication they are being directed to the forms authentication page, even though they should be viewing a page that isn't protected by forms authentication.

I need a situation whereby anyone who clears basic authentication can then view the whole site excluding the members area of the site where they will need to log in via forms authentication.


How do you globalise the ASP.Net forms authentication longinUrl for multiple languages?

1:

Can i put ASP.NET in Js file?
It sounds like you just haven't configured forms authentication for just the particular members area, although have it configured for everything.. how can i embed a powerpoint slide into a webpage Look at the authorization element and the location element (if you want to control the settings in the main Web.config, instead of creating a Web.config for the member's area).. Posting text with html tags without changing the requestValidationMode? See also ASP.NET Forms Authentication and a "No Authentication" subfolder (except you want the reverse).. LINQ to SQL find average of field?
Developing mvc applicationUsing OpenID (via DotNetOpenAuth) along with user roles and other Membership Provider features

2:

How do I show an authorization error message in an ASP.NET MVC 2 application?
One option is to write your own basic authentication filter attrialthough e and protect the action this just require basic authentication with the custom attrialthough e . The controller action which requires forms authentication should be protected with the normal [Authorize] attrialthough e. Please refer the following case :-. http://www.ryadel.com/en/http-basic-authentication-asp-net-mvc-using-custom-actionfilter/. I had a similar issue in the past although was more along the lines of providing basic authentication for REST calls and form authentication when any one access the mvc site. We ended up creating our own authentication filter.


95 out of 100 based on 55 user ratings 905 reviews