Wrox Programmer Forums
|
ASP Pro Code Clinic As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Pro Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 6th, 2003, 11:59 AM
Registered User
 
Join Date: Nov 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sasidar
Default how to customize authentication

hi everybody

thanks for those who try to solve this !

i am having an asp.net application, which will be used by both intranet and internet users.

now for authentication purpose ie for logging into the system , both intranet and internet users , at present i am using the "forms authentication " method. the problem is that for every new user i have to add them into the database even for the intranet users

since my intranet users are already being authenticated while switiching on the machine ie window password and username. so if i want to use this already exsisting authentication, then i can go for windows authentication am i correct.

since i am having only one web.config file is it possible for the following
1) windows authentication for intranet users
2) forms authentication for internet users


why i am planning to do this is
in case of intranet users, it is not necessary for them to sign in since they are already authenticated users. only for the internet users i have to do this.

is it possible for doing this

I am awaiting for the possible solution



 
Old November 6th, 2003, 12:13 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

You might want to put this post up on the ASPX Professional forum as more of the right people will see if (if don't happen to subscribe to this one).

My understanding is that you can only have one mode of authentication. How are the Intranet users accessing this site? Are they using the same URL?

About the only thing I can think of is that you could create 2 web applications on your server, and make a modification to the web.config for the one used for internal access. Otherwise, the applications would be running exactly the same.

Peter
------------------------------------------------------
Work smarter, not harder.
 
Old November 7th, 2003, 01:47 AM
Registered User
 
Join Date: Nov 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sasidar
Default

hi peter
thanks for replying to me. i am using the same url for the intranet users also.
but creating two applications doesnot seems to be a good idea for me. any way let me think about for that. if u come across any other solution please let me know



 
Old November 7th, 2003, 10:26 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

When I say "application" I don't mean a whole different .Net project, I just mean two IIS virtual directory applications. You would copy everything from your project into both the directories, but make a modification to the web.config in the one that's accessed locally to change authentication from "Forms" to "Windows".

Peter
------------------------------------------------------
Work smarter, not harder.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Customize Datagrid Mohamed_sherief ASP.NET 2.0 Professional 5 August 23rd, 2007 09:31 PM
customize button angelboy C# 2005 0 June 24th, 2007 10:01 AM
customize Paula222 ASP.NET 2.0 Professional 0 November 9th, 2006 12:19 AM
customize menu Paula222 ASP.NET 2.0 Basics 0 November 9th, 2006 12:19 AM
Customize Search Results bmains ASP.NET 1.0 and 1.1 Professional 4 January 15th, 2004 08:51 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.