Link to home
Start Free TrialLog in
Avatar of Aaron Jabamani
Aaron JabamaniFlag for United Kingdom of Great Britain and Northern Ireland

asked on

asp.net Web api authentication from ajax cross domain call

Hi,
    We are exposing some api via asp.net web api to third parties. They get data from us using JQuery Call and display in their pages.  The response goes in JSONP. The calls involve cross domain. Web api is hosted in IIS. SSL is enabled

We don't have login page for them. Given this situation how can i authenticate calls for my web api. I need to allow only my known thrid parties and not every body.

Please suggest me a ways of implementing this.
ASKER CERTIFIED SOLUTION
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Aaron Jabamani

ASKER

Thanks for the reply. Is any Token based or OAuth is going to be any useful in this scenario? Please clarify.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for the details.  From the article links, the requests are raised from server side and not from client side call(Ajax).

What we are planning to do is expose features via asp.net web api. Our clients can call them directly from their html page and process the results which are in JSONP format.