microsoft / AL

Home of the Dynamics 365 Business Central AL Language extension for Visual Studio Code. Used to track issues regarding the latest version of the AL compiler and developer tools available in the Visual Studio Code Marketplace or as part of the AL Developer Preview builds for Dynamics 365 Business Central.
MIT License
728 stars 241 forks source link

altpgen.exe can not be used for on premise dynamics 365 for sales (CRM) #6635

Open pooyaco opened 3 years ago

pooyaco commented 3 years ago

altpgen.exe can not be used for on premise dynamics 365 for sales (CRM) it seems the authentication method is only for Azure AD

atoader commented 3 years ago

Could you provide instructions on how to reproduce this?

pooyaco commented 3 years ago

you can simply passing url of an on prem CRM to it as parameter

in addition reviewing the code using Reflector shows that the only authentication method used is Azure AD see the bellow protected internal override int RunCore(CompilerTextWriter consoleOutput, ErrorLogger errorLogger, CancellationToken cancellationToken = new CancellationToken()) { List<Diagnostic> diagnostics = new List<Diagnostic>(); object[] args = new object[] { this.Arguments.ServiceUri }; consoleOutput.WriteLine(ToolResources.Authenticating, args); AzureADAuthenticationHelper helper = new AzureADAuthenticationHelper(clientId, authority, redirectUri, consoleOutput);