当我在localhost上进行身份验证时,一切都很好,但是一旦我从生产URL进行身份验证,就无法解释返回路径。
https://domain.com/signin-facebook?code=AQBwYZ2g7eSnxo ...导致通用404错误。
我正在更改Facebook上的网站网址,并且不会在结束时收到任何错误。
身份上有些东西让我觉得我不明白。有任何想法吗?谢谢!
Startup.Auth.cs非常简单,看起来像:
public void ConfigureAuth(IAppBuilder app)
{
// Enable the application to use a cookie to store information for the signed in user
// and also store information about a user logging in with a third party login provider.
// This is required if your application allows users to login
app.UseCookieAuthentication(new CookieAuthenticationOptions
{
AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
LoginPath = new PathString("/login")
});
app.UseExternalSignInCookie(DefaultAuthenticationTypes.ExternalCookie);
app.UseFacebookAuthentication(
appId: xxxxxxxxxx,
appSecret: xxxxxxxxxxx;
}