I have successfully used bearer token authentication for asp.net web APIs as shown in the default single page app template. But now I want to use the same web API from another site (different url).
When I make a request to the AuthorizeEndpoint web API (default / api / Account / ExternalLogin ) from another site, I get error: invalid_request . I think the problem is the value of redirect_uri, since changing this value for a site running in the same domain as the web api solves the problem.
The ValidateClientRedirectUri method in the OAuthAuthorizationServerProvider application does not start. Therefore, based on my search in the Katana source, the origin of the error is in OAuthAuthorizationServerHandler.InvokeAuthorizeEndpointAsync .
Does anyone have other problems or am I doing something wrong?
uross
source share