473,387 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

XML Webservice authentication

GMG
Is it possible to use FormAuthentication or do I have to manage my own
cookies and if so a sample/URL would be greatly appreciated.
Mar 1 '06 #1
2 1256
Hi,

I would say that it depends what you are planning to do a and who is goinf
to acess your web service and from where.

In other words do you planned to published your web service or does your web
service is part of your asp application.

The most secure would be to use security feature of IIS and use Windows
Authentication. Cookies are not secure and are mainly used to retain user
information except sensitive data.

If you want to provide FromAuthentication then you could keep in cookies a
unique GUI corresponding to the user and then refer to that GUI from a
database where you will extract information.

hope it helps
regards
serge

"GMG" wrote:
Is it possible to use FormAuthentication or do I have to manage my own
cookies and if so a sample/URL would be greatly appreciated.

Mar 1 '06 #2
One of the key features FormsAuthentication offers is automatic
redirect for non-logged in users to a login page. As I'm sure you'll
appreciate this makes no sense in the context of a web service.

Most web services don't use cookies in this way, they simply request
the username/password with each request. You can even use WSE
(http://msdn.microsoft.com/webservices/building/wse/) to help you do
this in an industry standard way (WS-Security standard).

If you have any questions about any of this - just shout!

Josh
http://www.thejoyofcode.com/

Mar 2 '06 #3

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

Similar topics

2
by: PocketDeveloper | last post by:
I am an experienced developer...but a novice at creating web services, so please have mercy on me! Here is my question: I developed a fairly simple Webservice that returns a table from SQL...
2
by: Russell Mangel | last post by:
Hi, How can I set permissions, so my webservice will run, without entering my name and password in the Web.Config file? I have created a WebService, and then added a Web reference to a Windows...
0
by: Det | last post by:
Hi there I am somewhat stuck with calling a WebService from out of a VB App. My Goal: - Get a WebService invoked under MS - Access 2002, not using the MS-SOAP-Toolkit but the .net - Framework ...
13
by: ALI-R | last post by:
I know how to authenticate to a webservice using either of these ways(Assuming that rService represents the webservice): 1) rService.Credentials = new...
1
by: Eric | last post by:
I need to call a function in a WebService from a VC++ 7.1 project. The WebService requires NTLM authentication and should be the user of the calling program. How should this be done? I have...
3
by: ad | last post by:
I add a WebService (*.asmx) in a WebApplication. My web application use Form authentication. But when I open the .asmx in IE, it result in an error: No htmlform ! can't set ...
4
by: Boni | last post by:
I want consuming a webserivce trough a proxy. I use this code. myService s = new myService (); System.Net.WebProxy proxyObject = new System.Net.WebProxy("http://proxyhost:8080"); s.Proxy =...
2
by: =?Utf-8?B?TGFycnlLdXBlcm1hbg==?= | last post by:
Our WebDev team seems to have found a problem that exposes a bug in .NET 2.0. This problem can be shown when trying to access a WebService using SSL and through a proxy server after using the...
10
by: Anton | last post by:
Hi, when accessing a secured 3rd party webservice i'm getting a 401 HTTP Statuscode (unauthorized). When entering the url in a browser and entering the username and password manually, the wsdl is...
2
by: Mike Endys | last post by:
Hi all, have problem to use login to the web service. Im thinking about the web service that provides datas and files to the WinForm Client. I want the client log-in to the application... here...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.