SparkleXrm icon indicating copy to clipboard operation
SparkleXrm copied to clipboard

Invalid Login Information Office365 connectionstring

Open namurdock opened this issue 5 years ago • 2 comments

Hi Scott,

I appear to be getting an error when specifying the connection string in my spkl bat file.

"%spkl_path%" unpack "" "AuthType=Office365;Url=https://****.crm4.dynamics.com/;Username=***;Password=***" /p:debug

Invalid Login Information : An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail. An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail. => Authentication FailureUnable to Login to Dynamics CRM Unable to Login to Dynamics CRM.

If i run the unpack command with no connection string then the same username and password works, has there been a change to the connectionstring syntax do you know? Maybe the Office365 authtype has been depreciated early?

Cheers.

namurdock avatar Aug 04 '20 08:08 namurdock

Hi, They started depreciating it on new environments, existing systems will updated at the cutoff date.

Cha0s2nd avatar Aug 25 '21 09:08 Cha0s2nd

Yes - this has been on the cards for a while now.

Use ClientSecret for all your non- interactive spkl connection strings https://docs.microsoft.com/en-us/powerapps/developer/data-platform/xrm-tooling/use-connection-strings-xrm-tooling-connect#clientid-or-client-secret-based-authentication

scottdurow avatar Aug 25 '21 14:08 scottdurow