Note that there are some explanatory texts on larger screens.

plurals
  1. POMicrosoft Dynamics CRM SOAP "The credential is blocked." When authenticating using Windows Live ID
    primarykey
    data
    text
    <p>Hi I'm connecting to dynamics online using SOAP in C# to add custom entities. The login type being used is a windows live account.</p> <p>I'm running into an odd error when i try and connect to the server atm, it seems to have just start with little explanation.</p> <p>When i try and authenticate using windows live I get an xml responce [posted at end] containing an error saying "The credential is blocked."However when i try and connect with a fake username i know is invalid i get "The entered and stored passwords do not match."</p> <p>I've checked my xml responses and my device is registering fine. Its just the authenticating bit.</p> <p>Is there a chance the crm has blocked this log in somehow (it still works for logging into the crm itself, just not with this soap log in) ?</p> <p>Is there a way of white listing a username?</p> <p>Here is the xml i am sending to get the security tokens:</p> <pre><code>&lt;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"&gt; &lt;s:Header&gt; &lt;a:Action s:mustUnderstand="1"&gt; http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue&lt;/a:Action&gt; &lt;a:MessageID&gt; urn:uuid:88dea52e-97a3-4222-82cd-3c4cde5e3e2f&lt;/a:MessageID&gt; &lt;a:ReplyTo&gt; &lt;a:Address&gt; http://www.w3.org/2005/08/addressing/anonymous&lt;/a:Address&gt; &lt;/a:ReplyTo&gt; &lt;VsDebuggerCausalityData xmlns="http://schemas.microsoft.com/vstudio/diagnostics/servicemodelsink"&gt; uIDPozBEz+P/wJdOhoN2XNauvYcAAAAAK0Y6fOjvMEqbgs9ivCmFPaZlxcAnCJ1GiX+Rpi09nSYACQAA&lt;/VsDebuggerCausalityData&gt; &lt;a:To s:mustUnderstand="1"&gt; https://login.live.com/extSTS.srf&lt;/a:To&gt; &lt;o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"&gt; &lt;u:Timestamp u:Id="_0"&gt; &lt;u:Created&gt;2013-04-19T12:41:25.256Z&lt;/u:Created&gt; &lt;u:Expires&gt;2013-04-19T12:46:25.256Z&lt;/u:Expires&gt; &lt;/u:Timestamp&gt; &lt;o:UsernameToken u:Id="user"&gt; &lt;o:Username&gt;==USERNAME REMOVED FOR POST==&lt;/o:Username&gt; &lt;o:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"&gt; ==PASSWORD REMOVED FOR POST==&lt;/o:Password&gt; &lt;/o:UsernameToken&gt; &lt;wsse:BinarySecurityToken ValueType="urn:liveid:device" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"&gt; &lt;EncryptedData Id="BinaryDAToken0" Type="http://www.w3.org/2001/04/xmlenc#Element" xmlns="http://www.w3.org/2001/04/xmlenc#"&gt; &lt;EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"&gt; &lt;/EncryptionMethod&gt; &lt;ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt; &lt;ds:KeyName&gt;http://Passport.NET/STS&lt;/ds:KeyName&gt; &lt;/ds:KeyInfo&gt; &lt;CipherData&gt; &lt;CipherValue&gt; ==LONG CYPHER VALUE REMOVED FOR POST== &lt;/CipherValue&gt; &lt;/CipherData&gt; &lt;/EncryptedData&gt; &lt;/wsse:BinarySecurityToken&gt; &lt;/o:Security&gt; &lt;/s:Header&gt; &lt;s:Body&gt; &lt;t:RequestSecurityToken xmlns:t="http://schemas.xmlsoap.org/ws/2005/02/trust"&gt; &lt;wsp:AppliesTo xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"&gt; &lt;a:EndpointReference&gt; &lt;a:Address&gt;urn:crmemea:dynamics.com&lt;/a:Address&gt; &lt;/a:EndpointReference&gt; &lt;/wsp:AppliesTo&gt; &lt;wsp:PolicyReference URI="MBI_FED_SSL" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" /&gt; &lt;t:RequestType&gt; http://schemas.xmlsoap.org/ws/2005/02/trust/Issue&lt;/t:RequestType&gt; &lt;/t:RequestSecurityToken&gt; &lt;/s:Body&gt; &lt;/s:Envelope&gt; </code></pre> <p>This is the response i get:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;S:Envelope xmlns:S="http://www.w3.org/2003/05/soap-envelope" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wst="http://schemas.xmlsoap.org/ws/2005/02/trust" xmlns:psf="http://schemas.microsoft.com/Passport/SoapServices/SOAPFault"&gt; &lt;S:Body&gt; &lt;S:Fault&gt; &lt;S:Code&gt; &lt;S:Value&gt; S:Sender&lt;/S:Value&gt; &lt;S:Subcode&gt; &lt;S:Value&gt; wst:FailedAuthentication&lt;/S:Value&gt; &lt;/S:Subcode&gt; &lt;/S:Code&gt; &lt;S:Reason&gt; &lt;S:Text xml:lang="en-US"&gt; Authentication Failure&lt;/S:Text&gt; &lt;/S:Reason&gt; &lt;S:Detail&gt; &lt;psf:error&gt; &lt;psf:value&gt; 0x80048823&lt;/psf:value&gt; &lt;psf:internalerror&gt; &lt;psf:code&gt; 0x80041010&lt;/psf:code&gt; &lt;psf:text&gt; The credential is blocked.&amp;#x000D;&amp;#x000A;&lt;/psf:text&gt; &lt;/psf:internalerror&gt; &lt;/psf:error&gt; &lt;/S:Detail&gt; &lt;/S:Fault&gt; &lt;/S:Body&gt; &lt;/S:Envelope&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload