Hello thank you - this saved my hours and errors
Couple questions...
1. Can I use this for multiple header api keys? For example, I have an x-api-key for my applications service...would like to also have an x-developer-key that checks my developers service.
- extending question 1...
Can I also use the 'static' set api-key method in addition to the lookup method? If so, can you make this an array lookup? For example, I have several server to server connections and I want to provide those an x-server-key header option.
IRL scenario if this helps:
- I am trying to put together platform backend services where developers can build applications using a REST API. These developers register, system creates and issues a key for each developer I want them to put in header as
x-developer-key
- The developer creates apps in my application service, system creates a key for each application I want to them to put in the header as
x-api-key
- I communicate between servers inside and outside firewall. I want to manually provide an
x-server-key header value and put it in an array of keys that is evaluated using the static method.
Again, thank you for your time here and sharing.
Hello thank you - this saved my hours and errors
Couple questions...
1. Can I use this for multiple header api keys? For example, I have anx-api-keyfor my applications service...would like to also have anx-developer-keythat checks my developers service.Can I also use the 'static' set api-key method in addition to the lookup method?If so, can you make this an array lookup? For example, I have several server to server connections and I want to provide those anx-server-keyheader option.IRL scenario if this helps:
x-developer-keyx-api-keyx-server-keyheader value and put it in an array of keys that is evaluated using the static method.Again, thank you for your time here and sharing.