Wouldn’t you like to show your users a custom error message instead of this generic one? Now you can with the latest .Net Framework 3.5 release (Beta 2 as of this blog). Your Identity Provider can simply return a SOAP fault and CardSpace will display the Fault Reason Text. This feature is great because it enables you to present the user with help and support information such as phone numbers or URLs. Your error message can now look like this: Your fault reason text can also be language specific. CardSpace will display the correct fault reason text based on the UI locale. Frequently Asked Questions What is the format of a SOAP message? < s:Envelope xmlns:a = " http://www.w3.org/2005/08/addressing " xmlns:s = " http://www.w3.org/2003/05/soap-envelope " > < s:Header > < a:Action s:mustUnderstand = " 1 " > http://www.w3.org/2005/08/addressing/soap/fault </ a:Action > </ s:Header > < s:Body > < s:Fault > < s:Code > < s:Value > s:Sender </ s:Value > </ s:Code > < s:Reason > < s:Text xml:lang = " en " > In English … </</ s:Text > < s:Text xml:lang = " es-ES " > In Spanish … </ s:Text > </ s:Reason > </ s:Fault > </ s:Body > </ s:Envelope > Note that this SOAP message must be secured just like a typical application message. That is, it must contain the necessary Security headers (with all the necessary signature and encryption requirements based on the binding). CardSpace
Read More...