I need two different authentication schemes in one application. Some users are logged in via Kerberos using Negotiate, and some are authenticated using CookieAuthentication. If I set AuthenticationOptions.DefaultScheme <- "Negotiate", CookieAuthentication stops working (explicitly calling challenge "Cookies") and vice versa.
In C# there is an attribute [Authorize(AuthenticationSchemes ="Cookies")] which supposedly does the trick. I'm guessing the Giraffe equivalent should be requireAuthentication (challenge "Cookies"), without having looked at the C# code.
I need two different authentication schemes in one application. Some users are logged in via Kerberos using Negotiate, and some are authenticated using CookieAuthentication. If I set
AuthenticationOptions.DefaultScheme <- "Negotiate", CookieAuthentication stops working (explicitly callingchallenge "Cookies") and vice versa.In C# there is an attribute
[Authorize(AuthenticationSchemes ="Cookies")]which supposedly does the trick. I'm guessing the Giraffe equivalent should berequireAuthentication (challenge "Cookies"), without having looked at the C# code.