Hi,
That is really strange, which security assertion are you using ?
MutualCertifiicate11Security ?.
In order to test the same thing, I developed the following class:
public class MyCustom509TokenManager : X509SecurityTokenManager
{
public MyCustom509TokenManager() : base()
{
}
public MyCustom509TokenManager(System.Xml.XmlNodeList configData)
: base(configData)
{
}
protected override void AuthenticateToken(X509SecurityToken token)
{
base.AuthenticateToken(token);
}
}
Then, I added the following section to the configuration file:
<microsoft.web.services3>
<policy fileName="wse3policyCache.config"/>
<security>
<x509 allowTestRoot="true"/>
<binarySecurityTokenManager>
<add
type="MyCustom509TokenManager"
valueType="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"> <keyAlgorithm name="RSAOAEP"/>
</add>
</binarySecurityTokenManager>
</security>
</microsoft.web.services3>
WSE is actually calling my token manager when either
MutualCertifiicate11Security or MutualCertifiicate10Security assertions are
used.
Regards,
Pablo Cibraro.
"GippySD@community.nospam"
[quoted text, click to view] <GippySDcommunitynospam@discussions.microsoft.com> wrote in message
news:6BCD4FE2-9F07-4047-A7A8-7B6C2FFD92DC@microsoft.com...
> Pablo,
>
> Thanks for pointing me in this direction. I went ahead and created a
> custom
> token manager, extending from X509SecurityTokenManager, and defined the
> following methods:
>
> LoadTokenFromXml
> AuthenticateToken
> VerifyToken
> LoadTokenFromKeyInfo
>
> Conceptually, this makes sense as this token manager would conceivably
> provide the appropriate X509SecurityToken as embedded in my code.
>
> I added an entry to the app.config under
> <microsoft.web.services><security>
> that looks like:
>
> <binarySecurityTokenManager>
> <add type="MyProject.CustomX509SecurityTokenManager,Protocol"
> valueType="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" > />
> </binarySecurityTokenManager>
>
> where "Protocol" is the name of the dll in which the
> "MyProject.CustomX509SecurityTokenManager" exists. However, it appears
> that
> this is not being read (or honored) by WSE as no methods of the the
> TokenManager are being called, including the constructor. Also, I am
> unsure
> about what the "valueType" attribute should be set to. Any thoughts?
>
> I know your time is valuable, and I appreciate pointers in whatever form
> you
> may be able to provide.