Re: WSE 3.0 table-based database authentication
- From: "Pablo Cibraro" <pcibraro@xxxxxxxxxxx>
- Date: Tue, 6 Dec 2005 11:03:41 -0300
Hi,
I recommend you to take a look in this GDN workspace
http://www.gotdotnet.com/codegallery/codegallery.aspx?id=67f659f6-9457-4860-80ff-0535dffed5e6
(Web Service Security: Scenarios, Patterns, and Implementation Guidance)
This a project created by the Patterns & Practices team in Microsoft and it
shows different patterns using WSE.
One of that patterns shows how to authenticate users using a database.
Regards,
Pablo Cibraro
http://weblogs.asp.net/cibrax
http://www.lagash.com
<xtcsonik@xxxxxxxxx> wrote in message
news:1133799653.149986.212900@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>I am new to WSE and have been struggling with what I thought would be a
> simple concept. I have a web service called "Hello World". All I want
> to do is authenticate a user based on a username and password which I
> will look-up in a database. Can someone place outline the steps to do
> this? I've already created a CustomUsernameToken manager:
>
> Imports Microsoft.VisualBasic
> Imports Microsoft.Web.Services3.Security
> Imports Microsoft.Web.Services3.Security.Tokens
>
> Namespace MikeTest.WebService
>
>
> Public Class CustomUsernameTokenManager
> Inherits UsernameTokenManager
>
> Protected Overrides Function AuthenticateToken(ByVal token As
> Microsoft.Web.Services3.Security.Tokens.UsernameToken) As String
>
> Return "thepassword"
>
> End Function
> End Class
>
> End Namespace
>
> What other classes/methods do I need to create/override to get this to
> work? The last error I'm getting is:
> UsernameToken is expected but not present in the security header of the
> incoming message.
>
.
- References:
- WSE 3.0 table-based database authentication
- From: xtcsonik@xxxxxxxxx
- WSE 3.0 table-based database authentication
- Prev by Date: Re: Upgrading WSE 1.0 to WSE 3.0
- Next by Date: Re: WSE 3.0 and ASP.NET 2.0 Membership
- Previous by thread: WSE 3.0 table-based database authentication
- Next by thread: Re: "Updated Web Reference" but can't find the '****Wse' class!
- Index(es):