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 2004

Tip: Looking for answers? Try searching our database.

Is it possible to have mulitple Custom Username token authenticato

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Peter McEvoy - 02 Dec 2004 14:57 GMT
I have a webservice app with two endpoints in it:

Service.asmx
Secure/SecureService.asmx

I have setup my policy etc so that the SecureService.aspx endpoint requires
a username and password token and I have a Custom UsernameTokenManager that
authenticates the token (checks that the username exists and checks that the
passwords match).  All is well.

However, I now have a requirement that other Service.asmx endpoint should
require a username ONLY token (ie no password).  I have a policy file that
achieves this, however I wish to use a _different_ custom token manager that
will ONLY verify that the username exists.

I am finding it difficult (or is it even possible?) to get each service to
use it's own token manager.  I have a feeling that with some jiggery-pokery
with a web.config in the "Secure" subdirectory that I should be able to
achieve this, but I am finding that only one authenticator is ever called for
both endpoints.

Any help would be appreciated...

Pete
Dilip Krishnan - 03 Dec 2004 15:10 GMT
Hello Peter,
   There is a securitymanager configuration element that you could use to
specify different types of security token manager in the web.config. That
would mean that you will need to have seperate xml namespaces defined for
the different tokens you plan to send through
HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com

> I have a webservice app with two endpoints in it:
>
[quoted text clipped - 19 lines]
>
> Pete

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.