Skip to content

Jwt Lookups #1844

Closed
Closed
@TheYkk

Description

@TheYkk

Issue Description

I want to be able to send jwt token from multiple sources. Example of ; I might be want send jwt token via header on curl or I might be want set via cookie in browser.

Checklist

  • Dependencies installed
  • No typos
  • Searched existing issues and docs

Expected behaviour

I should be able to present TokenLookup this way

middleware.JWTConfig{
    TokenLookup:   "header:Authorization,query:token,cookie:jwt",
}

Actual behaviour

Currently TokenLookup system works by parsing one lookup source.

Steps to reproduce

Working code to debug

package main

func main() {
}

Version/commit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions