CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.security Tags:
Item Type: NewsGroup Date Entered: 4/27/2007 7:06:40 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 19 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
teamholmes
Asp.Net User
Forms Authentication - Default User4/27/2007 7:06:40 PM

0/0

I have a project thta will consist of 1 server with 2 routes in.

1 via an intranet and the other via the web.

Users coming in through the intranet (local lan) will / should autmatically have direct access to all site content without loggin in.

The normal external web users will be required to login in using the usual Forms authentication.

I was thinking about the following scenaros

Scenario 1.
Get the IP address of the users browser and check if its the intranet ip addess - if so, automatically login through forms authentication and predefind selected user and a role. (the question is - is this possible?) and if so - could someone show me how to create the code that would allow the user to automatically create a 'logged in' ticket with a predefinable user.

Option 2
have 2 websites - one of them being windows authentication and it acts to pass an authentication  ticket throught  to the forms authenticated site. (Firstly does anyone have source code i could download and examine for this). Secondly Does the user have to exist within the profile/ roles memebership database? or is the checking handled by windows active directory etc.

 

I appreciate anyones help in this matter.

smiling4ever
Asp.Net User
Re: Forms Authentication - Default User4/29/2007 11:46:28 AM

0/0

Hello,

I would go for option 1 and here is the line of code that you have to use to create the ticket

  

FormsAuthentication.SetAuthCookie("IP", True) 
 

HTH
Regards

2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
C# Professional Projects Authors: Geetanjali Arora, Balasubramaniam Aiaswamy, Nitin Pandey, NIIT (Corporation), Pages: 919, Published: 2002
Professional ASP.NET 2.0 Security, Membership, and Role Management Authors: Stefan Schackow, Pages: 611, Published: 2006
Hacking Exposed: Web Applications Authors: Joel Scambray, David Wong, Mike Shema, Pages: 386, Published: 2002
Microsoft Sharepoint: Building Office 2007 Solutions in C# 2005 Authors: Scot Hillier, Pages: 513, Published: 2007
Beginning Visual Basic 2005 Authors: Thearon Willis, Bryan Newsome, Pages: 799, Published: 2006
Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional Authors: Matthew MacDonald, Pages: 954, Published: 2007
Beginning ASP.NET 2.0 in VB 2005: From Novice to Professional Authors: Matthew MacDonald, Pages: 1063, Published: 2006
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
ASP.NET 3.5 For Dummies Authors: Ken Cox, Pages: 404, Published: 2008
Pro ASP.NET 2.0 Website Programming Authors: Damon Armstrong, Pages: 641, Published: 2005

Web:
How to: Implement Simple Forms Authentication A convenient way to work with forms authentication is to use ASP. ... By default , ASP.NET Web pages validate that user input does not include script or HTML ...
How To: Use Forms Authentication with Active Directory in ASP.NET 2.0 If the user selects this checkbox, a persistent authentication cookie is created and the ... The default settings for forms authentication as defined in the ...
Forms Authentication timeout default in ASP.NET 2.0 - ScottGu's Blog re: Forms Authentication timeout default in ASP.NET 2.0. Friday, December 08, 2006 12:25 AM by ScottGu. Hi Doug,. If you want to force a user to re-login if ...
Forms Authentication - Redirecting users to a Page other than ... However, if there is no specified ReturnUrl, then FormsAuthentication by default takes the user to the default.aspx page upon successful authentication. ...
15 Seconds : Using Forms Authentication in ASP.NET - Part 1 Standard Forms Authentication Setup. Pages used: Default.aspx, Login.aspx, Web. config. In the standard method of Forms Authentication, all user information ...
Effective Forms Authentication, Part 1 | O'Reilly Media The user requests Default.aspx. ASP.NET notes that the application uses forms authentication and that the user has not yet been authenticated, ...
Using FormsAuthentication - how to override default referral Talk about Using FormsAuthentication - how to override default ... /public/login .aspx, where the user is authenticated and sent back to ...
CodeProject: Guide to create forms authentication on SharePoint (1 ... Jul 24, 2008 ... If all you want to do is have very basic forms authentication, ... Create a user called user1. Note: The default password rules mandate the ...
Forms authentication, user login status is not maintained - .NET ASP Forms authentication, user login status is not maintained. ... My login page is Default.aspx as you see from above. The code-behind ...
KBAlertz.com: (313116) - When you use forms authentication ... If a valid cookie is present, forms authentication considers the user .... Request Default.aspx in Application2. Notice that you are not redirected to the ...

Videos:
django: Web Development for Perfectionists with Deadlines Google TechTalks April 26, 2006 Jacob Kaplan-Moss ABSTRACT Django is one of the premier web frameworks for Python, and is often compared to Ruby-on...
www.moldytoaster.com ty, haughty court dames, and smiling city beauties, come like delicious phantoms, and fill my mind with images graceful as your own forms, and meltin...




Search This Site:










why objectqualifier and databaseowner?

gridviewadapter row.attributes and row.styles

quirks of login page

dnn 2.0 skinning

custom destinations for different users?

question about iupgradeable

webtrends log analyzer?

requiredfieldvalidator not validating...

strange network issues with dotnetnuke

password request...

webcontrols.menu compatible with opera?

vs 2005 debug on firefox, i want to change to run on ie

html/text module

persist login credentials and session state

multilevelsectionmenu (revisited)

authenticating and authorizing simple login functions using wcf instead of a database

enforce aps.net folder access authentication on iis. how to?

create user wizard crashes after adding a new step.

unable to use connectionstringname in a custom membership provider definition

question regarding forums to use?

problems to create new user

how to delete the links in the bottom of web?

error:object reference not set to an instance of an object

easy login question i hope

preview of the visual studio orcas web tools

old master page replaced with a new one!

excluding folders from solution explorer?

dnn 3.0.8 - child portal - generates viewstate error - unable to validate data

using injectmodule from within a module

session active user

 
All Times Are GMT