|
 |
aspx thread: Authentication is not working
Message #1 by "Premchand P.L" <premchandpl@p...> on Thu, 20 Feb 2003 09:48:26 +0530
|
|
Hi List,
I am having a problem in authenticating the User
In the web.confing file, I am having the code like this
<authentication mode="Forms">
<forms name="frmLogin" path="/"
loginUrl="secure/Login.aspx"></forms>
</authentication>
When i browse the default "homepage.aspx", it has to redirect me to
"secure/Login.aspx". But it is not redirecting me
to the Login Page. It is showing the contents of "homepage.aspx".
What might be the Problem.
Regards
Premchand
Message #2 by "Ashish M.bhonkiya" <Ashishm@p...> on Thu, 20 Feb 2003 10:03:14 +0530
|
|
prem you also need to specify the authorization tags in the web.config file.
where you need to specify the which users you want to allow and whom to
deny.
hope that helps
regards
ashish bhonkiya
-----Original Message-----
From: Premchand P.L [mailto:premchandpl@p...]
Sent: Thursday, February 20, 2003 9:48 AM
To: ASP.NET
Subject: [aspx] Authentication is not working
Hi List,
I am having a problem in authenticating the User
In the web.confing file, I am having the code like this
<authentication mode="Forms">
<forms name="frmLogin" path="/"
loginUrl="secure/Login.aspx"></forms>
</authentication>
When i browse the default "homepage.aspx", it has to redirect me to
"secure/Login.aspx". But it is not redirecting me
to the Login Page. It is showing the contents of "homepage.aspx".
What might be the Problem.
Regards
Premchand
Message #3 by Ali Ahmad H <ali@a...> on Thu, 20 Feb 2003 11:37:28 +0700
|
|
put your restricted path/file configuration after <system.web>....</system.web>
for example (this is will deny an anonymous user to see your homepage.aspx)
<system.web>
...
...
</system.web>
<location path="homepage.aspx">
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>
regards,
-ali-
At 09:48 AM 2/20/2003 +0530, you wrote:
>Hi List,
>
> I am having a problem in authenticating the User
>
> In the web.confing file, I am having the code like this
>
> <authentication mode="Forms">
> <forms name="frmLogin" path="/"
>loginUrl="secure/Login.aspx"></forms>
> </authentication>
>
> When i browse the default "homepage.aspx", it has to redirect me to
>"secure/Login.aspx". But it is not redirecting me
> to the Login Page. It is showing the contents of "homepage.aspx".
>
> What might be the Problem.
>
>Regards
>Premchand
Message #4 by "Rohit Arora" <rohit_arora@i...> on Thu, 20 Feb 2003 10:18:22 +0530
|
|
I think wht u said is for authorization
for authentication u hv to add credential tag...with attribute password type
like clear,mda5,sha1 or something like that.
and then username, password pairs as its child
Regards
Rohit Arora
Intersolutions (P) Ltd
B - 21, Sector 58,
Noida - 201301
Tel : 91-2585703/04/05 Extn: 229
-----Original Message-----
From: Ali Ahmad H [mailto:ali@a...]
Sent: Thursday, February 20, 2003 10:07 AM
To: ASP.NET
Subject: [aspx] Re: Authentication is not working
put your restricted path/file configuration after
<system.web>....</system.web>
for example (this is will deny an anonymous user to see your homepage.aspx)
<system.web>
...
...
</system.web>
<location path="homepage.aspx">
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>
regards,
-ali-
At 09:48 AM 2/20/2003 +0530, you wrote:
>Hi List,
>
> I am having a problem in authenticating the User
>
> In the web.confing file, I am having the code like this
>
> <authentication mode="Forms">
> <forms name="frmLogin" path="/"
>loginUrl="secure/Login.aspx"></forms>
> </authentication>
>
> When i browse the default "homepage.aspx", it has to redirect me
to
>"secure/Login.aspx". But it is not redirecting me
> to the Login Page. It is showing the contents of "homepage.aspx".
>
> What might be the Problem.
>
>Regards
>Premchand
Message #5 by "Pratap Ladhani" <pratapl@b...> on Thu, 20 Feb 2003 10:35:34 +0530
|
|
Hi Premchand,
Have you set the Authorization tag in web.config
<authorization>
<deny users="?" />
</authorization>
Here you explicitly say that deny all users who have not yet authenticated
to the secure/Login.aspx form for authentication.
By default the setting is <allow users="*" />
Hope this helps.
Pratap Ladhani
-----Original Message-----
From: Premchand P.L [mailto:premchandpl@p...]
Sent: Thursday, February 20, 2003 9:48 AM
To: ASP.NET
Subject: [aspx] Authentication is not working
Hi List,
I am having a problem in authenticating the User
In the web.confing file, I am having the code like this
<authentication mode="Forms">
<forms name="frmLogin" path="/"
loginUrl="secure/Login.aspx"></forms>
</authentication>
When i browse the default "homepage.aspx", it has to redirect me to
"secure/Login.aspx". But it is not redirecting me
to the Login Page. It is showing the contents of "homepage.aspx".
What might be the Problem.
Regards
Premchand
|
|
 |