Skip to content

Jwt Lookups #1844

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 of 3 tasks
TheYkk opened this issue Apr 10, 2021 · 3 comments · Fixed by #1845
Closed
1 of 3 tasks

Jwt Lookups #1844

TheYkk opened this issue Apr 10, 2021 · 3 comments · Fixed by #1845

Comments

@TheYkk
Copy link
Contributor

TheYkk commented Apr 10, 2021

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

@ayoubfaouzi
Copy link

Have exactly the same issue ! and definitely useful having this.

@TheYkk
Copy link
Contributor Author

TheYkk commented Apr 20, 2021

Pull request: #1845

@ayoubfaouzi
Copy link

Yep, waiting for it to be merged :)

@lammel lammel linked a pull request Apr 21, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants