Ask a Question related to ASP.NET Security, Design and Development.
-
Alexio #1
Authentication forms and SSL on the login page
Hi all,
I'm tryiing to set up security for a ASP.NET web application in order to
force all the users to go to a login page with an SSL connection. After the
authentication the users would go to the original page they are looking for
without SSL encrpytion.
So the flow should be:
1. user go to [url]http://myserver/page1.aspx[/url]
2. user is redirect to [url]https://myserver/login.aspx[/url] by the form
authentication
3. user insert its credentials in the login.aspx and submit to the server
4. the web server authenticates the user and redirect him to
[url]http://myserver/page1.aspx[/url]
Obviously everything is working fine if I remove the SSL on the step 2.
I get the following error between the steps 1 and 2 (just after I click
'yes' in order to accept the certificate that it was created in a fake PKI):
Server Error in '/WebApplication1' Application.
----------------------------------------------------------------------------
----
Access is denied.
Description: An error occurred while accessing the resources required to
serve this request. The server may not be configured for access to the
requested URL.
Error message 401.2.: Access is denied because of the Web server's
configuration. Contact the Web server's administrator for help.
In the web.config I put these lines:
<authentication mode="Forms">
<forms name="ProgAspNetCookie" protection="All"
timeout="20"
path="/" loginUrl="https://localhost/WebApplication1/WebForm1.aspx"
/>
</authentication>
<authorization>
<deny users="?" />
</authorization>
If the loginUrl is changed to "WebForm1.aspx" everything works fine (as said
before).
Any suggestion?
TIA
Alexio
Alexio Guest
-
Strange problem with Forms authentication: After successfull login, login page is still displayed
Hi there I have a quite strange problem with my ASP.NET-Application. The application has being deployed one year ago and worked fine till last... -
forms authentication returns 401 instead of going to login page
Hi, I have an app in the 1.1 framework that uses forms authentication . In the normal case, if the user requests a page and is not logged in,... -
Forms Authentication won't redirect to login page
I'm trying to set basic form authentication on a webapp. I allaccess restricted to authenticated users. After changing theWeb.config file in the... -
Forms Authentication without Login Page
Is there any way to log someone in using Forms authentication *without* using RedirectFromLoginPage()? My reason for asking is that I'm trying to... -
Forms Authentication: login page in a separate web app
Hi, I would like to create a WebApp, say MySecurityProvider, that just contains a login page that knows how to authenticate a user. And I want...



Reply With Quote

