Skip to content

In the KeyAuth Plugin I would like to add key_prefix header Bearer in APIKey Header ["Authoirization"] authentication #2345

@vivekrsintc

Description

@vivekrsintc

| http[].authentication.keyAuth.header | string | Header to get the key from. |

Hello APISIX Team.

Currently I Have enabled the API Key based authentication using keyAuth in apisix for my apisixroute. In this

    authentication:
        enable: true
        type: keyAuth        
        keyAuth:
          header: "Authorization"      
curl  -H "Authorization: <api-key>" http://0.0.0.0/api
      In the above the authentication  happens from "Authorization" header with APIKEY as value. But I wanted add "Bearer "
      
      
      Could you please help how to add it so that my authentication will look like as below
curl  -H "Authorization: Bearer <api-key>" http://0.0.0.0/api

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions