.Net Identity 2 - Facebook身份验证404错误

时间:2014-07-31 04:57:51

标签: asp.net-identity asp.net-identity-2

当我在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;
    }

0 个答案:

没有答案