That is really strange. Did you configure that token manager in the
web.config file ?. I mean, is WSE calling to your custom token manager ?.
Thanks
Pablo.
> Thanks Pablo for your Quick response.
>
[quoted text clipped - 99 lines]
>>> I could not imagine the problem. I am trying increase security level of
>>> service with sendnone option.
Of couse, look below configurations.
And please remember, Service is working as expected in two case:
For tokenless soap call, throwing exceptiong.
With usernameToken that password option is set to SendPlain or
SendHashed.
Till now everting is perfect. But when i call web method with usernametoken
and set password option to sendnone the server side does not checking
credentials.
I thing the problem is in my mind, about SendNone concept.
I assume, when I choose sendnone option, wse is creting a username token
hashed with password in client.
This token when comes to server, service is using shared secred (password in
this case) resolving hashed username token.
If nonce, timestamps etc... is true, server accepting this usernametoken is
true.
As a result, there is no security check in my service when calling username
token thats password option is set to SendNone :(
Here is server side setting:
[code]
<policies xmlns="http://schemas.microsoft.com/wse/2005/06/policy">
<extensions>
<extension name="usernameOverTransportSecurity"
type="Microsoft.Web.Services3.Design.UsernameOverTransportAssertion,
Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" />
<extension name="requireActionHeader"
type="Microsoft.Web.Services3.Design.RequireActionHeaderAssertion,
Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" />
</extensions>
<policy name="Server">
<usernameOverTransportSecurity />
<requireActionHeader />
</policy>
</policies>
[code]
Here is Web.Config setting
[code]
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="microsoft.web.services3"
type="Microsoft.Web.Services3.Configuration.WebServicesConfiguration,
Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" />
</configSections>
<system.web>
<webServices>
<protocols>
<clear />
<add name="HttpSoap12" />
<add name="HttpSoap" />
<add name="Documentation" />
</protocols>
<soapExtensionImporterTypes>
<add type="Microsoft.Web.Services3.Description.WseExtensionImporter,
Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" />
</soapExtensionImporterTypes>
<soapServerProtocolFactory
type="Microsoft.Web.Services3.WseProtocolFactory, Microsoft.Web.Services3,
Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</webServices>
<compilation>
<assemblies>
<add assembly="Microsoft.Web.Services3, Version=3.0.0.0,
Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</assemblies>
</compilation>
</system.web>
<microsoft.web.services3>
<security>
<securityTokenManager>
<add type="CustomUsernameTokenManager"
namespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
localName="UsernameToken" />
</securityTokenManager>
</security>
<policy fileName="wse3policyCache.config" />
<diagnostics>
<trace enabled="true" input="C:\Documents and Settings\Lopuhov\My
Documents\Visual Studio 2005\Projects\Lopuhov.WSE.Reference\input.webinfo"
output="C:\Documents and Settings\Lopuhov\My Documents\Visual Studio
2005\Projects\Lopuhov.WSE.Reference\output.webinfo" />
<detailedErrors enabled="true" />
</diagnostics>
</microsoft.web.services3>
</configuration>
[code]
And here is clinet side settings:
[code]
<policies xmlns="http://schemas.microsoft.com/wse/2005/06/policy">
<extensions>
<extension name="usernameOverTransportSecurity"
type="Microsoft.Web.Services3.Design.UsernameOverTransportAssertion,
Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" />
<extension name="requireActionHeader"
type="Microsoft.Web.Services3.Design.RequireActionHeaderAssertion,
Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" />
</extensions>
<policy name="Client">
<usernameOverTransportSecurity />
<requireActionHeader />
</policy>
</policies>
[code]
> That is really strange. Did you configure that token manager in the
> web.config file ?. I mean, is WSE calling to your custom token manager ?.
[quoted text clipped - 105 lines]
>>>> I could not imagine the problem. I am trying increase security level of
>>>> service with sendnone option.