Handling username/password validation errors<p>Hi,</p> <p>I try to implement custom token provider as is shown in &quot;Token Provider&quot; sample from WCF samples collection. There, when user's credentials validation fails in my custom <strong>UserNamePasswordValidator </strong>is trown new <strong>SecurityTokenException</strong>. </p> <p>On the client side i receive <strong>MessageSecurityException </strong>from which i'm not able to get error message from the server, only general exception description: &quot;An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail&quot;. But FaultException also doesn't contain my error message.</p> <p>Also, i tried to change trowing of SecurityTokenException with FaultException but has same results.</p> <p>Can someone provide some guidance on how to handle this exception in client layer? Or may be is there other workaround to be able to receive on the client side error messages about unsuccessful validations in UserNamePasswordValidator? I just want to show to the user more descriptive error message than simple &quot;Authentication failed&quot;.</p> <p>PS: I have seen other topics with the same question as mine, but i don't find any answer, so, i will put same question again - i'm sorry for this.</p> <p>Regards</p>© 2009 Microsoft Corporation. All rights reserved.Thu, 09 Oct 2008 22:55:23 Zc8b2524c-d04d-4d06-bbb0-bfa5d54fde51http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/c8b2524c-d04d-4d06-bbb0-bfa5d54fde51#c8b2524c-d04d-4d06-bbb0-bfa5d54fde51http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/c8b2524c-d04d-4d06-bbb0-bfa5d54fde51#c8b2524c-d04d-4d06-bbb0-bfa5d54fde51varelyhttp://social.msdn.microsoft.com/Profile/en-US/?user=varelyHandling username/password validation errors<p>Hi,</p> <p>I try to implement custom token provider as is shown in &quot;Token Provider&quot; sample from WCF samples collection. There, when user's credentials validation fails in my custom <strong>UserNamePasswordValidator </strong>is trown new <strong>SecurityTokenException</strong>. </p> <p>On the client side i receive <strong>MessageSecurityException </strong>from which i'm not able to get error message from the server, only general exception description: &quot;An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail&quot;. But FaultException also doesn't contain my error message.</p> <p>Also, i tried to change trowing of SecurityTokenException with FaultException but has same results.</p> <p>Can someone provide some guidance on how to handle this exception in client layer? Or may be is there other workaround to be able to receive on the client side error messages about unsuccessful validations in UserNamePasswordValidator? I just want to show to the user more descriptive error message than simple &quot;Authentication failed&quot;.</p> <p>PS: I have seen other topics with the same question as mine, but i don't find any answer, so, i will put same question again - i'm sorry for this.</p> <p>Regards</p>Mon, 21 Aug 2006 14:24:48 Z2006-08-25T21:20:39Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/c8b2524c-d04d-4d06-bbb0-bfa5d54fde51#4161114f-e29f-4c32-b9dc-9b6bc25b1c45http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/c8b2524c-d04d-4d06-bbb0-bfa5d54fde51#4161114f-e29f-4c32-b9dc-9b6bc25b1c45varelyhttp://social.msdn.microsoft.com/Profile/en-US/?user=varelyHandling username/password validation errors<p>Nobody can help here?</p> <p>Is a way to get a custom fault back to the client instead of catching general MessageSecurityException? Same question was asked <a title="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=643959&amp;SiteID=1" href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=643959&amp;SiteID=1">here</a> but too without a responce.</p> <p>To reproduce this situation is enought to open &quot;<span id=nsrTitle>UserNamePassword Validator&quot; solution from samples collection in WCF documentation and change in client.cs username or password to don't match these expected by the server.</span></p> <p><span>Or can someone point to the other place where i can ask this question and get a responce?</span></p> <p><span></span> Regards</p>Thu, 24 Aug 2006 11:14:06 Z2006-08-24T11:14:06Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/c8b2524c-d04d-4d06-bbb0-bfa5d54fde51#ed332137-6888-4872-a24e-7595a4bf3d08http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/c8b2524c-d04d-4d06-bbb0-bfa5d54fde51#ed332137-6888-4872-a24e-7595a4bf3d08Clemens Vasters - MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Clemens%20Vasters%20-%20MSFTHandling username/password validation errorsI truly wonder what sort of detail information except &quot;I don't know you and you can't come in here&quot; (aka &quot;Authentication Failed&quot;) you want to give to someone who is trying to break into your system with an invalid username or password or other means of authentication? Do you want to make their lives easier by telling them more?<br><br>Thanks in advance for clarifying<br>Clemens<br><br><br>Fri, 25 Aug 2006 16:44:39 Z2006-08-25T21:20:39Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/c8b2524c-d04d-4d06-bbb0-bfa5d54fde51#b8343430-3e8b-4fff-97af-557c6b10f8e5http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/c8b2524c-d04d-4d06-bbb0-bfa5d54fde51#b8343430-3e8b-4fff-97af-557c6b10f8e5varelyhttp://social.msdn.microsoft.com/Profile/en-US/?user=varelyHandling username/password validation errors<p>Hi, Clemens</p> <p>I don't want to tell much, but enough for users of enterprise level applications. For example in one case to tell that it just mistyped the password and, in other case, that his account was disabled by administrator.</p> <p>Other point is that, if MessageSecurityException is the way to handle username/password validation errors, i want to know exactly that exception was thrown in Validate method of password validator and not in tens or hundreds of places in System.ServiceModel . How can help there MessageSecurityException received on the client with message &quot;An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.&quot; and inner FaultException with message &quot;An error occurred when processing the security tokens in the message.&quot; ?</p> <p>Or may be i do something in a wrong way?</p> <p>Thanks for your responce and i hope you'll help or point me to the right direction.</p> <p>Best regards</p>Sat, 26 Aug 2006 14:00:17 Z2006-08-26T14:00:17Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/c8b2524c-d04d-4d06-bbb0-bfa5d54fde51#44654050-d31b-4abf-b1a2-a9c04e2d7b19http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/c8b2524c-d04d-4d06-bbb0-bfa5d54fde51#44654050-d31b-4abf-b1a2-a9c04e2d7b19Sean McLellanhttp://social.msdn.microsoft.com/Profile/en-US/?user=Sean%20McLellanHandling username/password validation errors<p>Agreed -- in an enterprise application, returning these types of error indications is highly useful.</p> <p>Even Windows Live Messenger returns a differrent indication if the account is locked out.</p> <p> </p> <p>Why isn't it possible to return a simple fault contract that contains some information about why the authentication failed?</p> <p> </p>Mon, 11 Sep 2006 22:57:08 Z2006-09-11T22:57:08Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/c8b2524c-d04d-4d06-bbb0-bfa5d54fde51#d546df0a-57ab-48db-8a0b-ab4f7522ad0ahttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/c8b2524c-d04d-4d06-bbb0-bfa5d54fde51#d546df0a-57ab-48db-8a0b-ab4f7522ad0aSean McLellanhttp://social.msdn.microsoft.com/Profile/en-US/?user=Sean%20McLellanHandling username/password validation errors<P>I'm wondering if this change in RC1 helps the situation any:</P> <P>&nbsp;</P> <H3 style="MARGIN: 12pt 0in 3pt"><SPAN><A name=_Toc144620867><FONT face=Arial color=#000000>System.ServiceModel.Security</FONT></A></SPAN></H3> <P> <TABLE class=TableStyle1 style="WIDTH: 5.95in; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=571 border=0> <TBODY> <TR style="HEIGHT: 12.75pt"> <TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; PADDING-LEFT: 5.4pt; BORDER-LEFT-COLOR: #f0f0f0; BACKGROUND: #e0e0e0; PADDING-BOTTOM: 0in; WIDTH: 92.15pt; BORDER-TOP-COLOR: #f0f0f0; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; HEIGHT: 12.75pt" vAlign=top width=123> <P class=MsoNormal style="MARGIN: 6pt 0in"><SPAN><B><FONT size=2><FONT face=Arial>Change</FONT></FONT></B></SPAN></P></TD><SPAN><FONT face=Arial size=2></FONT></SPAN> <TD style="PADDING-RIGHT: 5.4pt; PADDING-LEFT: 5.4pt; BORDER-LEFT-COLOR: #f0f0f0; BACKGROUND: #e0e0e0; PADDING-BOTTOM: 0in; WIDTH: 336.2pt; BORDER-TOP-COLOR: #f0f0f0; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; HEIGHT: 12.75pt; BORDER-RIGHT-COLOR: #f0f0f0" vAlign=top noWrap width=448> <P class=MsoNormal style="MARGIN: 6pt 0in"><SPAN><FONT face=Arial size=2>Add New Exception type for AccessDenied semantics</FONT></SPAN></P></TD><SPAN><FONT face=Arial size=2></FONT></SPAN></TR> <TR style="HEIGHT: 12.75pt"> <TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; PADDING-LEFT: 5.4pt; BORDER-LEFT-COLOR: #f0f0f0; BACKGROUND: #e0e0e0; PADDING-BOTTOM: 0in; WIDTH: 92.15pt; BORDER-TOP-COLOR: #f0f0f0; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; HEIGHT: 12.75pt" vAlign=top noWrap width=123> <P class=MsoNormal style="MARGIN: 6pt 0in"><SPAN><B><FONT size=2><FONT face=Arial>Description</FONT></FONT></B></SPAN></P></TD><SPAN><FONT face=Arial size=2></FONT></SPAN> <TD style="PADDING-RIGHT: 5.4pt; PADDING-LEFT: 5.4pt; BORDER-LEFT-COLOR: #f0f0f0; PADDING-BOTTOM: 0in; WIDTH: 336.2pt; BORDER-TOP-COLOR: #f0f0f0; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent; BORDER-RIGHT-COLOR: #f0f0f0" vAlign=top noWrap width=448> <P class=MsoNormal style="MARGIN: 6pt 0in"><SPAN><FONT face=Arial size=2>A new exception type was added to signal authorization failures.</FONT></SPAN></P></TD><SPAN><FONT face=Arial size=2></FONT></SPAN></TR> <TR style="HEIGHT: 12.75pt"> <TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; PADDING-LEFT: 5.4pt; BORDER-LEFT-COLOR: #f0f0f0; BACKGROUND: #e0e0e0; PADDING-BOTTOM: 0in; WIDTH: 92.15pt; BORDER-TOP-COLOR: #f0f0f0; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; HEIGHT: 12.75pt" vAlign=top noWrap width=123> <P class=MsoNormal style="MARGIN: 6pt 0in"><SPAN><B><FONT size=2><FONT face=Arial>Type of Origin</FONT></FONT></B></SPAN></P></TD><SPAN><FONT face=Arial size=2></FONT></SPAN> <TD style="PADDING-RIGHT: 5.4pt; PADDING-LEFT: 5.4pt; BORDER-LEFT-COLOR: #f0f0f0; PADDING-BOTTOM: 0in; WIDTH: 336.2pt; BORDER-TOP-COLOR: #f0f0f0; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent; BORDER-RIGHT-COLOR: #f0f0f0" vAlign=top width=448> <P class=MsoNormal style="MARGIN: 6pt 0in"><SPAN><FONT face=Arial size=2>System.ServiceModel.Security.SecurityAccessDeniedException</FONT></SPAN></P></TD><SPAN><FONT face=Arial size=2></FONT></SPAN></TR> <TR style="HEIGHT: 12.75pt"> <TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; PADDING-LEFT: 5.4pt; BORDER-LEFT-COLOR: #f0f0f0; BACKGROUND: #e0e0e0; BORDER-BOTTOM-COLOR: #f0f0f0; PADDING-BOTTOM: 0in; WIDTH: 92.15pt; BORDER-TOP-COLOR: #f0f0f0; PADDING-TOP: 0in; HEIGHT: 12.75pt" vAlign=top noWrap width=123> <P class=MsoNormal style="MARGIN: 6pt 0in"><SPAN><B><FONT size=2><FONT face=Arial>This change effects</FONT></FONT></B></SPAN></P></TD><SPAN><FONT face=Arial size=2></FONT></SPAN> <TD style="PADDING-RIGHT: 5.4pt; PADDING-LEFT: 5.4pt; BORDER-LEFT-COLOR: #f0f0f0; BORDER-BOTTOM-COLOR: #f0f0f0; PADDING-BOTTOM: 0in; WIDTH: 336.2pt; BORDER-TOP-COLOR: #f0f0f0; PADDING-TOP: 0in; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent; BORDER-RIGHT-COLOR: #f0f0f0" vAlign=top noWrap width=448> <P class=MsoNormal style="MARGIN: 6pt 0in"><SPAN><FONT face=Arial size=2>OM</FONT></SPAN></P></TD></TR></TBODY></TABLE></P> <P>&nbsp;</P> <P>Will have to try it out...</P>Wed, 13 Sep 2006 16:52:20 Z2006-09-13T16:52:20Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/c8b2524c-d04d-4d06-bbb0-bfa5d54fde51#f4e6b05e-c62d-4613-b3b1-73210e91e536http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/c8b2524c-d04d-4d06-bbb0-bfa5d54fde51#f4e6b05e-c62d-4613-b3b1-73210e91e536TheJethttp://social.msdn.microsoft.com/Profile/en-US/?user=TheJetHandling username/password validation errors<p>There does not seem to be any way [that I can find] to specify an error that the client can consume.  I'm trying to do a similar process for my STS implementation, providing reasonable error messages back to the client application to indicate various error conditions, such as invalid login, account inactive, must change password, etc.  However, when the Username/Password validator throws an exception [of any type] from the STS, the error propogated back to the client is absolutely useless, and contains none of the information that was included in the exception thrown by the STS doing the authentication.</p> <p>To me, this is unacceptable.  Be as flippant as you want about &quot;how much information you want to give someone breaking into your system&quot;, there are a number of scenarios where perfectly valid users would like to know why exactly they can't log in, so that they can go about fixing the situation.  In addition, the client application would like to be able to handle very specific cases to allow the user to re-login, re-try, etc.  Has anyone figured out how we might provide this type of functionality?</p> <p>Thanks!</p> <p> </p>Thu, 14 Sep 2006 22:24:13 Z2006-09-14T22:24:13Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/c8b2524c-d04d-4d06-bbb0-bfa5d54fde51#7669c962-90ec-4d7a-9499-b78a9bd1194bhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/c8b2524c-d04d-4d06-bbb0-bfa5d54fde51#7669c962-90ec-4d7a-9499-b78a9bd1194bTom Freyhttp://social.msdn.microsoft.com/Profile/en-US/?user=Tom%20FreyHandling username/password validation errorsI'm wondering if anyone has found a solution for this?<br>Fri, 05 Jan 2007 09:17:17 Z2007-01-05T09:17:17Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/c8b2524c-d04d-4d06-bbb0-bfa5d54fde51#f5fff53a-b3e1-40b0-8edc-86806f75fd35http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/c8b2524c-d04d-4d06-bbb0-bfa5d54fde51#f5fff53a-b3e1-40b0-8edc-86806f75fd35manu111http://social.msdn.microsoft.com/Profile/en-US/?user=manu111Handling username/password validation errors<p>You can set the behavior to send back to the client falt information</p> <p> </p>Fri, 05 Jan 2007 14:40:06 Z2007-01-05T14:40:06Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/c8b2524c-d04d-4d06-bbb0-bfa5d54fde51#f18d8d87-47bb-42ef-94a0-cab96208165ehttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/c8b2524c-d04d-4d06-bbb0-bfa5d54fde51#f18d8d87-47bb-42ef-94a0-cab96208165eNick Piaseckihttp://social.msdn.microsoft.com/Profile/en-US/?user=Nick%20PiaseckiHandling username/password validation errorsAny idea how?<br><br>&lt;serviceDebug includeExceptionDetailInFaults=&quot;true&quot; /&gt;<br><br>Doesn't seem to work in this scenario. I just want to be able to distinguish between &quot;Your login failed&quot; and &quot;The administrator screwed up the configuration file&quot;.<br>Fri, 05 Jan 2007 16:52:39 Z2007-01-05T16:52:39Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/c8b2524c-d04d-4d06-bbb0-bfa5d54fde51#bbd51d7c-957e-4f7d-9aab-d3066597ae6ehttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/c8b2524c-d04d-4d06-bbb0-bfa5d54fde51#bbd51d7c-957e-4f7d-9aab-d3066597ae6eRob A in NZhttp://social.msdn.microsoft.com/Profile/en-US/?user=Rob%20A%20in%20NZHandling username/password validation errors<p>The solution is here <a title="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=840163&amp;SiteID=1" href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=840163&amp;SiteID=1">http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=840163&amp;SiteID=1</a> add username and password properties to your AuthorisationPolicy, set them in the constructor. In your ServiceAuthorisationManager CheckAccessCore method retrieve your AuthorisationPolicy perform your custom Authentication and raise an exception if the Authentication fails.</p> <p> </p>Sun, 07 Jan 2007 21:45:29 Z2007-01-07T21:45:29Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/c8b2524c-d04d-4d06-bbb0-bfa5d54fde51#6a7b4457-446a-478e-b1ed-923c339602fbhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/c8b2524c-d04d-4d06-bbb0-bfa5d54fde51#6a7b4457-446a-478e-b1ed-923c339602fbdtoomeyhttp://social.msdn.microsoft.com/Profile/en-US/?user=dtoomeyHandling username/password validation errors<p>It is not an unreasonable request to be able to customise the exception information returned, especially since the response returned here is not SOAP 1.1 compliant (particularly the faultCode):</p> <p align=left> </p> <p align=left><font face=Courier>   &lt;s:Body&gt;<br>      &lt;s:Fault&gt;<br><strong>         &lt;faultcode xmlns:a=&quot;</strong></font><a href="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd&quot;&gt;a:InvalidSecurity&lt;/faultcode"><strong><font face=Courier>http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd&quot;&gt;a:InvalidSecurity&lt;/faultcode</font></strong></a><font face=Courier><strong>&gt;<br></strong>         &lt;faultstring xml:lang=&quot;en-AU&quot;&gt;An error occurred when verifying security for the message.&lt;/faultstring&gt;<br>      &lt;/s:Fault&gt;<br>   &lt;/s:Body&gt;<br></font></p> <p></p> <p align=left> </p> <p align=left><font face=Courier><font face=Courier><font face=Arial>My external SOAP client (not using a Microsoft platform) expects something like this for an authentication failure:</font></p> <p align=left> </p> <p align=left>   &lt;soap:Body&gt;<br>      &lt;soap:Fault&gt;<br><strong>         &lt;faultcode&gt;soap:Client&lt;/faultcode&gt;<br></strong>         &lt;faultstring&gt;ACCESS DENIED: Invalid username token supplied.&lt;/faultstring&gt;</p> <p align=left>         &lt;faultactor&gt;http://localhost/QCS.IJIS.AC/IJISInboundWS/IJISInboundWS.asmx&lt;/faultactor&gt;<br>      &lt;/soap:Fault&gt;<br>   &lt;/soap:Body&gt;<br></p> <p align=left> </p> <p align=left><font face=Arial>So far I have been unable to generate a faultCode my client will understand. Can you please advise how to do this? Following the recommended method below for generating SOAP 1.1 via a MessageFault is useless because it is apparently overidden in the stack:</font></p> <p><font face=Arial></font> </p><font face=Arial> <p align=left><font color="#008080"> <div class=codeseg> <div class=codecontent> <div class=codesniptitle><span style="width:100%"><strong>Code Block</strong></span></div> <p><font color="#008080">SecurityTokenException</font> secEx = <font color="#0000ff">new</font> <font color="#008080">SecurityTokenException</font>(<font color="#800000">&quot;ACCESS DENIED: Invalid username token supplied&quot;</font>);</p> <p align=left> </p> <p align=left><font color="#008080">MessageFault</font> msgFault = <font color="#008080">MessageFault</font>.CreateFault(<font color="#0000ff">new</font> <font color="#008080">FaultCode</font>(<font color="#800000">&quot;Client&quot;</font>), <font color="#0000ff">new</font> <font color="#008080">FaultReason</font>(secEx.Message), secEx);</p> <p align=left><font color="#008080"></font> </p> <p align=left><font color="#008080">FaultException</font> faultEx = <font color="#008080">FaultException</font>.CreateFault(msgFault, <font color="#0000ff">typeof</font>(<font color="#008080">SecurityTokenException</font>));</p> <p align=left><font color="#0000ff"></font> </p> <p align=left><font color="#0000ff">throw</font> faultEx;</p> <p align=left> </p></div></div> <p align=left> </p></font> <p></p></font> <p align=left><font face=Arial>Please do not consider this question answered until you can shed some light on this.</font></p> <p align=left><strong><br></strong></p> <p align=left><font face=Arial></font> </p></font></font>Mon, 10 Dec 2007 04:00:25 Z2007-12-10T04:00:25Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/c8b2524c-d04d-4d06-bbb0-bfa5d54fde51#3e581b79-6985-4bfd-8594-2dbf0bdcb52chttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/c8b2524c-d04d-4d06-bbb0-bfa5d54fde51#3e581b79-6985-4bfd-8594-2dbf0bdcb52cPawelPabichhttp://social.msdn.microsoft.com/Profile/en-US/?user=PawelPabichHandling username/password validation errors<p align=left><font face=Arial size=2></font> </p>Is this still an issue in .NET 3.5 ? It's really frustrating that you can not override this &quot;security feature&quot; even if you want to do this. I have to explain nearly on daily basis what &quot;An unsecured or incorrectly secured fault was received from the other party&quot; means.Thu, 03 Jan 2008 17:09:39 Z2008-01-03T17:09:39Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/c8b2524c-d04d-4d06-bbb0-bfa5d54fde51#f6436a4c-0a63-49cc-b478-b3c5f8f1a357http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/c8b2524c-d04d-4d06-bbb0-bfa5d54fde51#f6436a4c-0a63-49cc-b478-b3c5f8f1a357Gopalakrishna Palemhttp://social.msdn.microsoft.com/Profile/en-US/?user=Gopalakrishna%20PalemHandling username/password validation errors<br>In .Net 3.5, the FaultException string will be passed as innerException string to the MessageSecurityException<br><br>P.Gopalakrishna <br><a title="http://www.geocities.com/krishnapg/" href="http://www.geocities.com/krishnapg/">http://www.geocities.com/krishnapg/</a><br>Mon, 18 Aug 2008 17:42:14 Z2008-08-18T17:42:14Z