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

Unable to Login to Dynamics CRM using Authtype=Office365 #247

Closed Gawandevaishnavii closed 2 years ago

Gawandevaishnavii commented 3 years ago

AuthType=Office365;Url=https://orgname.crm7.dynamics.com;Username=userid;Password=password

While using AuthType=OAuth;Url=https://orgname.crm7.dynamics.com;Username=userid;Password=Password;AppId=726a46fb-55c6-4ad1-add8-xxxxxxxxxx;RedirectUri=https://org.com;client_secret=b3ecb3bf-305b-4a19-xxxx-xxxxxxxxxx;LoginPrompt=Never; also I am unable to login Dynamics CRM.

RobNightingale-LSL commented 3 years ago

Hi @Gawandevaishnavii This connection method is deprecated and wont work in brand new environments. This will be phased out to exsiting environments as well.

This AuthType is deprecated and we recommend to use OAuth as the preferred authentication type. More information: Authenticate using Office365

https://docs.microsoft.com/en-us/powerapps/developer/data-platform/xrm-tooling/use-connection-strings-xrm-tooling-connect

You should switch to AuthType=OAuth and make note of the "note" box here: https://docs.microsoft.com/en-us/powerapps/developer/data-platform/xrm-tooling/use-connection-strings-xrm-tooling-connect#connection-string-parameters

herr-mueller commented 3 years ago

Hi @Gawandevaishnavii,

additional to @RobNightingale-LSL remarks, try to change the version of the build task to a newer one, if its on an old version.

image

Gawandevaishnavii commented 3 years ago

@RobNightingale-LSL

Thank you for your assistance.

Its working fine now..

WaelHamze commented 2 years ago

@RobNightingale-LSL thank you