Mixing Forms and Windows Securiey

J

Jerry C

This is a new post covering two previous posts:

"Unable to establish secure connection to Server" and "membership and
redirect of unauthenticated user"

Thank you for your replys.

I found a MSDN Library entry by the Title of:
"Mixing Forms and Windows Security in ASP.NET" by Paul wilson January 2004

I have tried this code and it seems to sort of work except for several
problems.
First it is in C# and I am having trouble transferring it into VB.
In the line: "this.Request.Cookies[Global.ReturnUrl] == Null" when I change
it to vb "request.cookies(Global.ReturnUrl) is nothing" the Global.ReturnURl
does not work. This may be that the code was written in a old version of
dotnet and I am trying to use it in VS2005. The converter removed the code
behind from the Global.aspx.

The other problem is when a non windows user access the winlogin page a
login popup shows but when I cancel it the correct WebLogin page shows. how
can I get rid of the popup up
 
L

Luke Zhang [MSFT]

Hello Jerry,

In VS.NET 2003, there is class defined in Global.asax, so that we can use
Global.ReturnUrl to access a static member of the class. In In VS.NET 2005,
there is no such class defined in Global.asax. To get around this, we can
simply use a static or hardcode string instead.

For question 2, can you check in the IIS security setting, did you use
windows integrated authentication or Basic authentication?

Regards,

Luke Zhang
Microsoft Online Community Lead

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
J

Jerry C

Luke,
Thanks for your reply. Did you find the code for this article?

I don’t think I need to fix the Global problem since I am using Membership
and forms auth. That will redirect the user to the defaultUrl.

I still am having the popup login box for the user with no credentials they
should be redirected to the weblogin form without the popup. I can get it to
work correctly by setting IE tools.internet options. Security. Local
intranet.custom level.settings to anonymous login. I would like this to work
for all settings. If the user needs to set up the browser I could just a
easly tell them to use differet pages one for users with accounts and one
without.

I wonder is there is a article that addresses this problem using VS2005,
forms auth and membership.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top