-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more details to error message. (#3935)
* Add more details to error message. * Update src/client/Microsoft.Identity.Client/MsalErrorMessage.cs Co-authored-by: Gladwin Johnson <[email protected]> * Update src/client/Microsoft.Identity.Client/MsalErrorMessage.cs Co-authored-by: Gladwin Johnson <[email protected]> * Update src/client/Microsoft.Identity.Client/MsalErrorMessage.cs Co-authored-by: Bogdan Gavril <[email protected]> * Add more logging and check for null response after parsing. * Add unit test * Address comments --------- Co-authored-by: Gladwin Johnson <[email protected]> Co-authored-by: Bogdan Gavril <[email protected]>
- Loading branch information
1 parent
4f98cf1
commit 16b744a
Showing
6 changed files
with
89 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
tests/Microsoft.Identity.Test.Unit/Resources/WsTrustResponseNoToken.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> | ||
<s:Header> | ||
<a:Action s:mustUnderstand="1">http://www.w3.org/2005/08/addressing/soap/fault</a:Action> | ||
<a:RelatesTo>urn:uuid:a4444a44-aaaa-4444-4444-aaaaaaaaaa</a:RelatesTo> | ||
<o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> | ||
<u:Timestamp u:Id="_0"> | ||
<u:Created>2022-10-18T13:54:59.751Z</u:Created> | ||
<u:Expires>2022-10-18T13:59:59.751Z</u:Expires> | ||
</u:Timestamp> | ||
</o:Security> | ||
</s:Header> | ||
<s:Body> | ||
<s:Fault> | ||
<s:Code> | ||
<s:Value>s:Sender</s:Value> | ||
<s:Subcode> | ||
<s:Value xmlns:a="http://schemas.xmlsoap.org/ws/2005/02/trust">a:FailedAuthentication</s:Value> | ||
</s:Subcode> | ||
</s:Code> | ||
<s:Reason> | ||
<s:Text xml:lang="en-US">MSIS7068: Access denied.</s:Text> | ||
</s:Reason> | ||
<s:Detail> | ||
|
||
</s:Detail> | ||
</s:Fault> | ||
</s:Body> | ||
</s:Envelope> |