AL icon indicating copy to clipboard operation
AL copied to clipboard

Changing authentification

Open Twija opened this issue 8 years ago • 7 comments

Now I have been creating an app in UK version. however I got an error message like this today. [2018-01-13 23:34:57.44] The request for path /v1.0/sandbox/dev/packages?publisher=Microsoft&appName=Application&versionText=11.0.0.0 failed with code InternalServerError. Reason: The tenant 'msuk1-----------------' is not accessible.

how can I solve this? or how can I change the authentication to another tenant??

Twija avatar Jan 13 '18 14:01 Twija

Can you try clearing your credential from VS Code (Ctrl + Shift + P and then select "AL: Clear credentials cache") and then try again?

qutreson avatar Jan 17 '18 14:01 qutreson

got the following launch.json: "name": "Your own server", "type": "al", "request": "launch", "server": "http://nav.XXXX.de", "serverInstance": "DynamicsNAV110", "authentication": "AAD", "startupObjectId": 22

where XXX is my Azure-Server hosting NAV 2018 with ACS-Authentication. When i press F5 to download Symbols - it tries to connect to https://api.financials.dynamics.com/v1.0/sandbox/dev/packages?publisher=Microsoft&appName=Application&versionText=11.0.0.0 [2018-01-18 13:49:27.93]

why does it not try to connect to my srv?

when i change the authentication in json to "Windows", it uses my srv but can't connect to it (firewall is open in networksecuritygroup (azure) and on win-server

sweikelt avatar Jan 18 '18 12:01 sweikelt

@sweikelt We don't yet support AAD authentication against custom servers. AAD is currently working for connecting to online sandbox tenants only.

defr0std avatar Feb 05 '18 11:02 defr0std

@sweikelt If you need AAD authenticaton for development, could you please open another issue so that we could track is separately?

defr0std avatar Feb 05 '18 11:02 defr0std

@dennisfrostlander - the problem is, that my database and nst is hosted in my azure-environment - which is configured for SSO through my company's o365. now i want to dev on my local computer against the hosted db -> which is so no possible - maybe when i create a second nst with win-auth -> i'll try that und report it

sweikelt avatar Feb 05 '18 12:02 sweikelt

For Windows authentication to work I assume your dev machine needs to be in the same virtual network with the Azure machines running the NST. If this is not the case, you could also try UsernamePassword authentication.

defr0std avatar Feb 05 '18 12:02 defr0std

@dennisfrostlander -> sorry - that was the plan (not win-auth -> usernamepassword) 👍

sweikelt avatar Feb 05 '18 12:02 sweikelt