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
744 stars 245 forks source link

altpgen dataverse authentication failure in al 14.0.1161190 #7869

Open BeytullahCengiz88 opened 2 weeks ago

BeytullahCengiz88 commented 2 weeks ago

1. Describe the bug altpgen gives authentication failure during authenticating Dataverse. Reason: One or more errors occurred. (Only loopback redirect uri is supported,) in ms-dynamics-smb. al 14.0.1161190

2. To Reproduce When you run the following powershell script in altpgen.dll directory in ms-dynamics-smb. al 14.0.1161190 then you get this error. This is not throwing an error in earlyer versions.

_.\altpgen -project:"C:\Users\Documents\" -packagecachepath:"C:\Users\Customizations.alpackages" -serviceuri:"https://xxxx-test.crm4.dynamics.com" -entities:msdynworkorder -tabletype:CDS -baseid:50055 -clientid:"" -redirecturi:"xxxxxxxxxxxxxxxx://auth"

3. Expected behavior When you run this script, you get an 2FA login pop-up window for credentials.

4. Actual behavior It throws inmediately an error instead of authentication.

5. Versions:

Image

Image

manisharma31 commented 1 week ago

Check this URL and add http://localhost, https://github.com/MicrosoftDocs/azure-docs/issues/61446

BeytullahCengiz88 commented 4 days ago

Check this URL and add http://localhost, MicrosoftDocs/azure-docs#61446

The adding of localhost was already made but it delivers no solution Image

carcallynx commented 2 days ago

I have the same error.

Does anyone have a solution?

manisharma31 commented 2 days ago

The redirect url of localhost should be in you script also. packagecachepath:"C:\Users\Customizations.alpackages" -serviceuri:"https://xxxx-test.crm4.dynamics.comhttps://xxxx-test.crm4.dynamics.com/" -entities:msdyn_workorder -tabletype:CDS -baseid:50055 -clientid:"" -redirecturi:"http://localhost"

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Michael Scott @.> Sent: Wednesday, October 23, 2024 9:44:31 PM To: microsoft/AL @.> Cc: manisharma31 @.>; Comment @.> Subject: Re: [microsoft/AL] altpgen dataverse authentication failure in al 14.0.1161190 (Issue #7869)

I have the same error.

Does anyone have a solution?

— Reply to this email directly, view it on GitHubhttps://github.com/microsoft/AL/issues/7869#issuecomment-2432758662, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJXAKRT3MHSPVT67THFURRTZ47DOPAVCNFSM6AAAAABPZCJPNSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZSG42TQNRWGI. You are receiving this because you commented.Message ID: @.***>

carcallynx commented 2 days ago

Thank you. That worked great for me.