Skip to content

Allow Authentication header to not be checked systematically #90

@AtomBaf

Description

@AtomBaf

From this line:

candidates = append(candidates, getTokensFromHeader(r, []string{"Authorization"})...)

We can see that whatever the config is for the headers, the Authorization header will always be checked.
For some purpose, it might be necessary to have 2 different ways for authenticating, one with JWT in cookies, and another with Basic Auth. Playing with directive order does not help much, the only thing I would like is the ability to discard this line.

Thanks for helping. Love your plugin!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions