I am trying to open authentication for the first time in mvc-web-api4. I posted my services in services.domain.com, and the interface (interface) is in test.domain.com.
In the interface, I will call the service to log in from facebook. after successful login, I will receive an access token in services.domain.com. but my code is in test.domain.com.
after redirecting from facebook. I get an access token in service.bubblesbuy.com, but I need this access token in test.domain.com.
here are the steps that I followed
$.ajax({ url: "services.domain.com/api/Account/ExternalLogins?returnUrl=%2F&generateState=true", success: function (data) {
after successful completion, I get providers, here is the conclusion
[ { "Name": "Facebook", "Url": "/api/Account/ExternalLogin?provider=Facebook&response_type=token&client_id=self&redirect_uri=services.domain.com&state=bzDUygFiUw-jOYHCYaDPT8iawAjq1ejd0hmkVPZTwjk1", "State": "bzDUygFiUw-jOYHCYaDPT8iawAjq1ejd0hmkVPZTwjk1" } ]
i will pass url to my service
services.domain.com//api/Account/ExternalLogin?provider=Facebook&response_type=token&client_id=self&redirect_uri=services.domain.com&state=bzDUygFiUw-jOYHCYaDPT8iawAjq1ejd0hmkVPZTwjk1", "State": "bzDUygFiUw-jOYHCYaDPT8iawAjq1ejd0hmkVPZTwjk1
I get an access token in
services.domain.com/
but I need to access this token in test.domain.com (front end, where is my entire html page)
please help me how to get this access token in test.domain.com (in the interface)
Srinivas R 02 Dec '15 at 7:18 2015-12-02 07:18
source share