> I don't believe I can use a policy. I am trying to make sure that the
> certificate is issued by us. Clients are only allowed to talk with
[quoted text clipped - 46 lines]
>>> Thanks,
>>> Oldman
That's awsome. I'll try that out but still if I were to do it with code and
not a policy file how are you supposed to reject the authentication?
Oldman
> Hello Oldman,
> I believe you can.. Lookup in the policy configuration reference IssuerToken.
[quoted text clipped - 69 lines]
> >>> Thanks,
> >>> Oldman
Dilip Krishnan - 28 Jan 2005 18:32 GMT
Hello Oldman,
IMO use a soap filter. Check the tokens from the context and throw a
soap fault if any of the tokens are not issued by you. X509Security token
has methods that allow you to do that
HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
> That's awsome. I'll try that out but still if I were to do it with
> code and not a policy file how are you supposed to reject the
[quoted text clipped - 92 lines]
>>>>> Thanks,
>>>>> Oldman
Ford152 - 17 Feb 2005 16:21 GMT
FYI, when using policy to enforce the issuer of a X509 signing token, you
can't use the IssuerToken element. That element is used in the context of
requesting a security token from a web service that issues them. To do this
via policy, I got this working by the following integrity policy (using
TokenIssuer to demand who the issuer is for a SecurityToken, outside of a
Claims element):
<wssp:Integrity wsp:Usage="wsp:Required">
<wssp:TokenInfo>
<!--The SecurityToken element within the TokenInfo element
describes which token type must be used for Signing.-->
<wssp:SecurityToken wse:IdentityToken="true">
<wssp:TokenType>http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X
509v3</wssp:TokenType>
<wssp:TokenIssuer>CN=My CA Name</wssp:TokenIssuer>
</wssp:SecurityToken>
</wssp:TokenInfo>
</wssp:Integrity>
> Hello Oldman,
> IMO use a soap filter. Check the tokens from the context and throw a
[quoted text clipped - 103 lines]
> >>>>> Thanks,
> >>>>> Oldman
Tomas Restrepo \(MVP\) - 29 Jan 2005 02:31 GMT
Hi Oldman,
> That's awsome. I'll try that out but still if I were to do it with code and
> not a policy file how are you supposed to reject the authentication?
Just throw an exception from your implementation of OnAuthenticate() (yes, I
believe it is a somewhat ugly design there, but that's how it goes). In case
you're not doing it already, you'll need to register your
SecurityTokenManager using the <BinarySecurityTokenManager> element in your
configuration.

Signature
Tomas Restrepo
tomasr@mvps.org