How to Access OData Authenticated URLs

I have an OData server that returns me json. When I access the URL through a browser, I need to enter a username / password. Doesn’t accept the entries I make in the popup. You need to undo it, and then it shows me a dialog, after which I can see the required json.

I can not understand what type of authentication is used.

Using basic authentication in the mail client does not work. Any suggestions on how I can use this URL in my inbox or in Anuglar JS or Node JS.

+5
source share
2 answers

Thanks for the input.

But I got access to an implementation of code that accesses the URI that I want.

So, in the universe there is a Sharepoint / C # application that performs forms-based authentication to get the required data.: /

Let's try redesigning it to work in my Node application.

Greetings. :)

+1
source

You can install an interceptor in a postman. Go to the cookie tab next to the body and set the interceptor, then turn it on. After installing the interceptor, you can log in with your user / pass and then send your request.

See this image. enter image description here

+3
source

Source: https://habr.com/ru/post/1238159/


All Articles