Re: Custom UsernameTokenManager for different webservices
- From: "Pablo Cibraro" <pcibraro@xxxxxxxxxxx>
- Date: Tue, 11 Apr 2006 10:56:41 -0300
Hi Damian,
You have two workarounds to that problem,
1. You can host the set of web services in a different virtual directory
with a different configuration
2. You can use the addressing headers to determine the URL for the target
service, and use a different authentication mechanism according to that.
For example
protected override string AuthenticateToken( UsernameToken token )
{
if(SoapContext.Current.Addressing.To.Value == http://service1.asmx)
//Authenticate the user against a database
else if(SoapContext.Current.Addressing.To.Value ==
http://service2.asmx)
//Authenticate the user against windows
}
Other solution is to use the brokered authentication pattern:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/WSS_Ch1_BrokAuthSTS.asp
Regards,
Pablo Cibraro
http://weblogs.asp.net/cibrax
"Damian" <damian.gonsalves@xxxxxxxxx> wrote in message
news:1144756906.358073.4120@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi There
Is it possible to specifiy which custom usernametokenmanager to use for
individual webservices?
I currently have some webservices that are consumed by a smartclient,
for which i use a custom usernameTokenManager to autheticated against
our uses db. This works wonderfully at the moment!
But now i have another system which needs to consume a different set of
webservices in my application but i need to authenticate against
another source.
Any ideas?
Thanks very much
Damian
.
- References:
- Prev by Date: Re: Certificate Store and Authority
- Next by Date: Re: Certificate Store and Authority
- Previous by thread: Custom UsernameTokenManager for different webservices
- Next by thread: Anybody know how is build the UsernameToken.Key Property in WSE3 ?
- Index(es):
Relevant Pages
|