Skip to content

bug: Jwt authentication plugin not comoatible that token without Bearer #1026

Description

@lilien1010

Issue description

Jwt authentication plugin not comoatible that token without Bearer

Environment

  • apisix version (cmd: apisix version): master
  • OS: Linux

What's the actual result? (including assertion message & call stack if applicable)

while JWT is in the Header,it usually have a Bearer prefix

What's the expected result?

Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6...
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6...
both JWT scenarios above can be handled properly

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