Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Authentication

Reply
Thread Tools

Authentication

 
 
IntraRELY
Guest
Posts: n/a
 
      12-12-2003
I have a web services pages that is pulling is DataSet. The local VB.NET
uses this DataSet to print some reports and then sends the status back to
the web service indicating whether it failed or not. The local VB.NET
application is initiated from an ASPX page. The whole ASP.NET application
uses forms authentication. I see two issues that I may come across:

1.) I dont know of a way to by pass the forms authentication when calling
the web service. Even when I create it in the Windows form on the local
VB.NET application, I get a default login box for the application. I am
thinking that there must be a way to either exclude that particulat file or
create another application with just the web service in it(which brings me
to my other question).

2.) I dont believe ASP.NET forms authenticatoin can authenticate the local
VB.NET application through the web services file. Even thought I have access
to the asp application, I get an error in the local VB.NET application that
it cannot access the web service. It seems I must build the secutity into
the web service and exclude (somehow) the web service from the web project.
Is there a way to pass the crendials the are located in the Cookie that the
form authentication created and "carry over" to the client application to
pass to the web service.

Hope this makes sense,

STeve Wofford
www.IntraRELY.com


 
Reply With Quote
 
 
 
 
MSFT
Guest
Posts: n/a
 
      12-12-2003
Hi Steve,

We cannot use "form authentication" with Web service. Normally, we will use
Windows authentication with a web service. Another qork around is to add
two parameters in your web method: UserName and Password.

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

 
Reply With Quote
 
 
 
 
IntraRELY
Guest
Posts: n/a
 
      12-12-2003
Thanks Luke,

That makes sense. But to authenticate I would pass the username and password
that is hard coded in the calling applicaton or let them enter manually.
Then I would recieve the parameters in the web service. I could then use the
database I normally use to authenticate the forms authentication. If
sucessful the can use the other functions in the web service.

Let me know if that sounds like I am going down the right track.

Steve Wofford
www.IntraRELY.com

"MSFT" <> wrote in message
news...
> Hi Steve,
>
> We cannot use "form authentication" with Web service. Normally, we will

use
> Windows authentication with a web service. Another qork around is to add
> two parameters in your web method: UserName and Password.
>
> Luke
> Microsoft Online Support
>
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>



 
Reply With Quote
 
MSFT
Guest
Posts: n/a
 
      12-15-2003
Hi Steve,

After you authnticate a user, you may add him to a session variant, and
indicate this user has been authenticated. For more information about this,
you can refer to:

http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconstatemanagementinaspnetwebservices.asp

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed Authentication, Status "Unsupported Authentication Algorithm" Rafael Cisco 1 11-26-2004 03:57 PM
Basic Authentication v. Integrated Windows Authentication w/ Delegation Mark ASP .Net 0 01-20-2004 03:13 PM
ASP.Net Forms authentication with basic authentication popup Brett Porter ASP .Net 2 01-20-2004 02:17 PM
Moving from Baisc Authentication to Forms Authentication raj mandadi ASP .Net 0 12-22-2003 12:16 AM
Forms Authentication, external authentication server, & rerouting to orig. req. URL Andrew Connell ASP .Net 1 10-21-2003 05:41 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57