'SignInScheme' muss die option zur Verfügung gestellt werden

Ich bin momentan dabei, ein ASP.NET 5 MVC-6-app, die Sie benutzen Facebook/Google-Authentifizierung nur. Ich bin auch versucht, die cookie-middleware, ohne die ganze ASP.NET Identität nach diesem Artikel:
https://docs.asp.net/en/latest/security/authentication/cookie.html

So begann ich mit einer leeren app ohne Authentifizierung dann die von Microsoft.AspNet.Die Authentifizierung.Cookies und Microsoft.AspNet.Die Authentifizierung.Facebook NuGet-Pakete in Ordnung zu haben eine sehr minimalistischen Ansatz, wo ich nicht gehören alles, was ich nicht brauche.

Habe ich den folgenden code in Configure starten.cs aber ich bin immer "SignInScheme option muss angegeben werden" Fehler. Keine Ahnung, was mir fehlt?

app.UseCookieAuthentication(options =>
            {
                options.AuthenticationScheme = "MyCookieMiddlewareInstance";
                options.LoginPath = new PathString("/Accounts/Login/");
                options.AccessDeniedPath = new PathString("/Error/Unauthorized/");
                options.AutomaticAuthenticate = true;
                options.AutomaticChallenge = true;
            });

            app.UseFacebookAuthentication(options =>
            {
                options.AppId = "myFacebookAppIdGoesHere";
                options.AppSecret = "myFacebookAppSecretGoesHere";
            });
InformationsquelleAutor Sam | 2016-01-07
Schreibe einen Kommentar