How to generate fault from SecurityTokenAuthenticator implementation?

In CreditCardTokenAuthenticator.ValidateTokenCore method in CustomToken Sample simply throws a SecurityTokenValidationException when invalid card information is present in the request. Instead of this, I would like to generate a fault. Also how would I secure the fault message before I send it to the client


Thanks.


Answer this question

How to generate fault from SecurityTokenAuthenticator implementation?

  • How to generate fault from SecurityTokenAuthenticator implementation?