AL icon indicating copy to clipboard operation
AL copied to clipboard

altpgen dataverse authentication failure in al 14.0.1161190

Open BeytullahCengiz88 opened this issue 1 year ago • 4 comments

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:msdyn_workorder -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:

  • AL Language: 14.0.1161190
  • Visual Studio Code: 1.94.2
  • Business Central: 24.5
  • List of Visual Studio Code extensions that you have installed: None
  • Operating System:
    • [X ] Windows

Image

Image

BeytullahCengiz88 avatar Oct 11 '24 14:10 BeytullahCengiz88

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

manisharma31 avatar Oct 15 '24 06:10 manisharma31

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

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

BeytullahCengiz88 avatar Oct 21 '24 08:10 BeytullahCengiz88

I have the same error.

Does anyone have a solution?

michaelscott-1963 avatar Oct 23 '24 16:10 michaelscott-1963

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: @.***>

manisharma31 avatar Oct 23 '24 16:10 manisharma31

Thank you. That worked great for me.

michaelscott-1963 avatar Oct 23 '24 17:10 michaelscott-1963

Thanks that works indeed!

BeytullahCengiz88 avatar Nov 06 '24 08:11 BeytullahCengiz88