Skip to content

How to use multiple authentication schemes? #405

Description

@juselius

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    PR approvedA PR for this issue will get accepted (as long as inline with the comms)feature requestRequest to add new functionalityhelp wantedCommunity contribution or any kind of help much appreciatedquestionGeneral question

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions