I have a OData Server which returns me a json. When I accessing the URL through a browser i need to input the username/password. Doesn't accept the entries which I do in the pop-up. Need to cancel it and then it shows me a dialog box after which i can see the required json.
I am not able to figure out the kind of authentication in use.
Using basic authentication in Postman client is not working. Any suggestions as to how do I go about using this URL both in postman and inside an Anuglar JS or Node JS program.
The OData API is protected by means of Basic Auth and OAuth.
Connect to the OData Sample ServiceGo to the main menu in Dundas BI and create a new data connector. Click the Name box and enter a name for this connector (e.g., OData Sample Service). Set the Data Provider dropdown to OData. Select the Authentication method.
The Open Data Protocol (OData) enables the creation of REST-based data services, which allow resources, identified using Uniform Resource Identifiers (URLs) and defined in a data model, to be published and edited by Web clients using simple HTTP messages.
You can install interceptor in postman. Go to cookies tab next to body and install the interceptor then turn it on.After installing interceptor you can login with your user/pass and then send your request.
See this picture.enter image description here
Thanks for the input.
But I got access to the code implementation which is accessing the URI which I want.
So There is a Sharepoint/C# application in the universe which is doing a Forms based authentication to get the data required. :/
Will try to reverse engineer that get it working in my Node App.
Cheers. :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With