Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

altpgen dataverse authentication failure in al 14.0.1161190 #7869

Closed
BeytullahCengiz88 opened this issue Oct 11, 2024 · 6 comments
Closed

altpgen dataverse authentication failure in al 14.0.1161190 #7869

BeytullahCengiz88 opened this issue Oct 11, 2024 · 6 comments

Comments

@BeytullahCengiz88
Copy link

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

@manisharma31
Copy link

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

@BeytullahCengiz88
Copy link
Author

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
Copy link

I have the same error.

Does anyone have a solution?

@manisharma31
Copy link

manisharma31 commented Oct 23, 2024 via email

@carcallynx
Copy link

Thank you. That worked great for me.

@BeytullahCengiz88
Copy link
Author

Thanks that works indeed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants