web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :

NAV2018/MSDyn365BC API authentication

Andrey Baludin Profile Picture Andrey Baludin 3,941

Hello Team!

I often see a question in the community - "I use basic authentication with fresh Web Service Access Key to connect NAV API - and I'm getting unauthorized request, why?"

Here we will talk about on-premise installations (both - NAV2018 and BC)

To check your situation - Open your Administration environment and check Credentials type:

1346.3.JPG

If it's "NavUserPassword" - everything should be ok. You need to take your Web Service Access Key (or generate if it doesn't exists) from user card:

0216.5.JPG

And now you can test it with Postman for example:

5086.4.JPG

But what if you see Windows credential type?

5415.1.JPG

The only way I found - is to use NTLM authentication. Set this mark on the General tab:

1205.2.JPG

And you also need to use it in Postman. And not with Web Access Key - you need your Password here:

2671.6.JPG

And one last situation - if you use self-signed certificate, your request could fail because of SSL verification. For development purposes you could disable validation here. For production you'll need signed certificate for your APIs:

3733.7.JPG

Hope my post was helpful for you!

Comments

*This post is locked for comments