Skip to content
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

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

Open
vivekrsintc opened this issue Jan 8, 2025 · 0 comments

Comments

@vivekrsintc
Copy link

| 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
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

No branches or pull requests

1 participant