473,657 Members | 2,513 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

FormsAuthentica tion.Authentica te

FormsAuthentica tion.Authentica te(txtUser.Text , txtPassword.Tex t)

I understand that you pass the parameters into this method and they are
checked against the credentials in the config file. However, how would you
check these against details held in an xml file? Is there a way of telling
the <authentication element to validate against records in a file, or is it
a case of me doing that in code?
Aug 11 '06 #1
2 1437
Forgot to add, I am using Visual Studio 2003.

"cashdeskma c" wrote:
FormsAuthentica tion.Authentica te(txtUser.Text , txtPassword.Tex t)

I understand that you pass the parameters into this method and they are
checked against the credentials in the config file. However, how would you
check these against details held in an xml file? Is there a way of telling
the <authentication element to validate against records in a file, or is it
a case of me doing that in code?
Aug 11 '06 #2
You need toi add custom code for checking it agains the xml.
FormsAuthentica tion.Authentica te checks against the userlist found in
<credentialstag .

Regards,
Rohit

"cashdeskma c" <ca*********@di scussions.micro soft.comwrote in message
news:DD******** *************** ***********@mic rosoft.com...
Forgot to add, I am using Visual Studio 2003.

"cashdeskma c" wrote:
FormsAuthentica tion.Authentica te(txtUser.Text , txtPassword.Tex t)

I understand that you pass the parameters into this method and they are
checked against the credentials in the config file. However, how would
you
check these against details held in an xml file? Is there a way of
telling
the <authentication element to validate against records in a file, or
is it
a case of me doing that in code?

Aug 11 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4757
by: George Durzi | last post by:
When you call FormsAuthentication.SignOut(), is the FormsAuthentication cookie supposed to be destroyed automatically? I'm creating my FormsAuthentication cookie by doing: HttpCookie oCookie = new HttpCookie(FormsAuthentication.FormsCookieName, sTicket); where sTicket is an encrypted FormsAuthenticationTicket. When I create the FormsAuthenticationTicket, I set its isPersistent property to false.
1
1132
by: dotCore | last post by:
Hi, I have VS2003.NET, XP Pro and SQL 2000. The .NET framework is 1.1 The problem I am having with the source code is that I cannot authenticate any user. The sproc returns the user name from database which also means that the user should be authenticated. It runs the SetAuthCookie method with success. The resulting page is no different than the initial page. The login component is still there. When I try to access an admin page directly...
1
2232
by: Danny | last post by:
Hi there, I was wondering if anyone would be able to shed some light on the following behaviour for me. I have an application that is using Forms Authentication with non-persistent cookies, a forms timeout of 10 minutes, and a FormsAuthenticationTicket Expiration of 10 minutes. Almost everything is working as expected... when users try to enter restricted parts of the site they are redirected to the login.aspx page that I have...
3
2559
by: T. Regan | last post by:
I have a test app where I have Forms Authentication set up. When I build and run the app as http://localhost/testapp/login.aspx, it runs correctly. I get the login prompt and the proper redirection to the secured page. When I run the app as http://<RealMachineName>/testapp/login.aspx, I get the login page, but after logging in, I stay on the login page. The URL address shows...
4
1938
by: Jeff B | last post by:
I am having a very perplexing problem with setting the user's roles. I have tried to figure this out for 2 days now. When the user logs in to the site, I retrieve the roles from the database and create a semicolon delimited string listing the roles returned and store them in the forms authentication cookie. Then in the global.asax Application_AuthenticateRequest, I retrieve the FormsAuthenticationTicket from the forms authentication...
2
2301
by: Chad Beckner | last post by:
Hi everyone, I am developing a site in which the root will be set with Anonymous & Basic permissions. Past that I will have an application (directory) in which I will be developing applications. In the past, I have been able to use a ISAPI Filter to add the response headers dynamically, and add the authentication to the request, therefore, allowing users into the secure directory, and all of this is form based, there is no browser...
3
4910
by: David | last post by:
Hi all, I am having a slight issue with FormsAuthentication. I need to authenticate a user and while the page is still being processed, need to work with that authenticated user. I have set up a test page as follows... private void Page_Load(object sender, System.EventArgs e) {
5
4841
by: Åženol Akbulak | last post by:
Hello; I use in my web application FormsAuthentication. Also I use Session state (InProc). When a user logged in, I can read Session parameters. (For example Session). Problem is that, when user close the browser window then open a new browser, FormsAuthentication reads from cookie and user logs in. Althought user logged in, session parameter is null.
0
841
by: Rof | last post by:
I am using FormsAuthentication.RedirectFromLoginPage(...) to give my users a cookie, but I want to include other bits in the cookie, like their name, what they are asking for, and so on. I have this in Login.aspx: System.Web.Security.FormsAuthentication.RedirectFromLoginPage("Peter", True) Response.Cookies("Peter").Expires = Now.AddSeconds(60) Response.Cookies("Peter")("whoami") = "Anon"
0
8413
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8842
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8617
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7352
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6176
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2742
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1970
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.