Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / December 2005

Tip: Looking for answers? Try searching our database.

WSE 3.0 table-based database authentication

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
xtcsonik@gmail.com - 05 Dec 2005 16:20 GMT
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.
Pablo Cibraro - 06 Dec 2005 13:58 GMT
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

>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
[quoted text clipped - 25 lines]
> UsernameToken is expected but not present in the security header of the
> incoming message.
John - 13 Dec 2005 18:26 GMT
The Patterns and practices only shows how to authenticate using the aspnetdb
database, however when i try to use another database i get an error saying
the security token header is not correct.

John Muirhead

> Hi,
> I recommend you to take a look in this GDN workspace
[quoted text clipped - 39 lines]
> > UsernameToken is expected but not present in the security header of the
> > incoming message.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.