Skip to content

API Key Array #6

@corepay

Description

@corepay

Made this request probably a year ago. Doing a new deployment with your lib and came back here to see if it was resolved one way or other and can't find the request so gonna lobby once again.

Possible to allow an array for static key option?

"api-key": {
      "headerField": "x-api-key", 
      "key": ["abcdef12345", "83736262893", "nd73g3923923823&%^62"]
    }

This will allow me to authenticate things like server-server keys and system admin keys without requiring a database table, lookup, maintenance etc. I have one use case where I am using a feathers server acting as proxy between an oauth server and feathers/sequelize server and a couple serverless endpoints - have rest api's, a php server on same overlay network and feathers/vuex static apps all hitting this proxy server - would like to provide initial api-key auth on this proxy server before sending to any upstream service and NOT have this server connected to DB. I could use the lib as is and issue a single static api key for all consumers but ideally would issue a key per consumer so no one consumer has the same key and I can revoke or change api-key per consumer if necessary. Doing this without a DB connnection to an API KEY table would require an array for static keys....si?

If this isn't part of your vision for the lib feel free to close.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions