cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
artrune Frequent Visitor
Frequent Visitor

RestAPI returns 401

I can log to the web UI with http://..../Reports authenticating with my AD creds.

 

However If I try to run this on postman (Using basic auth with my ad creds) it returns 401. Is there something I need to enable or set in order to use the api?

http://..../Reports/api/v2.0

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: RestAPI returns 401

What do you see in the www-authenticate header of the 401 reply in postman? If you see NTLM I think this means that you have WindowsAuth configured for your server and it's basically telling you that the basic auth was rejected and it wants you to use NTLM.

 

Postman has beta support for NTLM auth, I was able to use this to put in my username/password and get a valid response.

View solution in original post

2 REPLIES 2
Super User
Super User

Re: RestAPI returns 401

What do you see in the www-authenticate header of the 401 reply in postman? If you see NTLM I think this means that you have WindowsAuth configured for your server and it's basically telling you that the basic auth was rejected and it wants you to use NTLM.

 

Postman has beta support for NTLM auth, I was able to use this to put in my username/password and get a valid response.

View solution in original post

artrune Frequent Visitor
Frequent Visitor

Re: RestAPI returns 401

You were completely right. Appreciate it!

Helpful resources

Announcements
New Kudos Given Badges Coming

New Kudos Given Badges Coming

We're rolling out new Kudos Given badges. Find out how many Kudos you've given.

Microsoft Implementation for Communities Wins Award

Microsoft Implementation for Communities Wins Award

Learn about the award-winning innovation that was implemented across Microsoft’s Business Applications Communities.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (2,312)