WaelHamze / dyn365-ce-vsts-tasks

VSTS Extension for Dynamics 365 Customer Engagement
https://marketplace.visualstudio.com/items?itemName=WaelHamze.xrm-ci-framework-build-tasks
GNU General Public License v3.0
115 stars 54 forks source link

Facing Issue while connecting to CRM by using OAuth based Connection string in Import Solution Using Config task #207

Closed SnehaSoma closed 4 years ago

SnehaSoma commented 4 years ago

I'm getting below error while using Import Solution using config:

Error: 2020-09-07T13:39:52.7049443Z ##[warning]ERROR REQUESTING Token FROM THE Authentication context - General ADAL Error Federated service at https://msft.sts.microsoft.com/adfs/services/trust/2005/usernamemixed returned error: ID3242: The security token could not be authenticated or authorized. => Response status code does not indicate success: 500 (InternalServerError). => http://www.w3.org/2005/08/addressing/soap/fault</a:Action>urn:uuid:6435e75c-1fea-489d-89bf-389eeebeb18e</a:RelatesTo>2020-09-07T13:39:52.482Z</u:Created>2020-09-07T13:44:52.482Z</u:Expires></u:Timestamp></o:Security></s:Header>s:Sender</s:Value>a:FailedAuthentication</s:Value></s:Subcode></s:Code>ID3242: The security token could not be authenticated or authorized.</s:Text></s:Reason></s:Fault></s:Body></s:Envelope>: Unknown errorUnable to connect to CRM: Response status code does not indicate success: 500 (InternalServerError). Federated service at https://msft.sts.microsoft.com/adfs/services/trust/2005/usernamemixed returned error: ID3242: The security token could not be authenticated or authorized. => Response status code does not indicate success: 500 (InternalServerError). => http://www.w3.org/2005/08/addressing/soap/fault</a:Action>urn:uuid:6435e75c-1fea-489d-89bf-389eeebeb18e</a:RelatesTo>2020-09-07T13:39:52.482Z</u:Created>2020-09-07T13:44:52.482Z</u:Expires></u:Timestamp></o:Security></s:Header>s:Sender</s:Value>a:FailedAuthentication</s:Value></s:Subcode></s:Code>ID3242: The security token could not be authenticated or authorized.</s:Text></s:Reason></s:Fault></s:Body></s:Envelope>: Unknown errorUnable to Login to Dynamics CRM Unable to Login to Dynamics CRM

Connection String Format: Url=https://orgname.crm.dynamics.com;AuthType=OAuth;Username=;Password=;AppId=;RedirectUri=;LoginPrompt=Never

Build Task Version: 12. (preview) 9. (preview)

Task Name: Import Solutions Using Config (Preview)

SnehaSoma commented 4 years ago

This issue is now resolved. We realized that the issue is not with build task but with the password.

WaelHamze commented 4 years ago

@SnehaSoma thanks for the update. Glad it is working.