Skip to content

1.2.1 ApiKeyHandler

Anders Mikkelsen edited this page Dec 21, 2017 · 2 revisions

ApiKeyHandler

This simple class accepts an apikey as a parameter. When deployed as a handler it will verify if the Authorization HTTP Header contains a key starting with "APIKEY " and then check equality on the supplied key. If not equal it will fail the routingContext with a 401.

Clone this wiki locally