Authenticating a user manually

  • Thread starter Thread starter Nick
  • Start date Start date
N

Nick

Hi there,

I have a website setup which uses the ASP.net login controls to manage
user sessions. I would like to be able to login a user through a webservice
situated on the same server.

Although I can find the user by their username I am not entirely sure on
how to authenticate the user, how can I do this via the username and
password being supplied to the web service method?

Many thanks for your time.

Nick.
 
Nick,

A webservice on the same server is in fact nothing else an aspnet program
that returns instead of HTML pages XML soap enveloppes.

It is a little bit strange to make an in fact outside connection with
something you need to do on the same server.

Cor
 
Hi Nick,

Yes, for the membership service, you can directly call the Membership.XXXX
apis in your application as long as you 've correctly configured the
membership provider.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
 
Hi Cor,

It's part of an API which will be available to customers and is written
as a separate web service so that we can control security more strictly. It
basically just accesses the back end code but obviously requires
authentication to prevent everyone from using it, as well as linking up to a
sepcific user account.

It's working pretty good now :)

Nick.
 
Back
Top