KeyListener
class KeyListener extends Plugin
Key Authentication provider
Methods
beforeDispatch(Event $event, Dispatcher $dispatcher)
Listens for the 'beforeDispatch' event and checks the key headers.
returnInvalid($msg = 'Invalid HMAC Token')
Output a 403 Forbidden response and proper JSON encoded error message
Details
at line line 28
beforeDispatch(Event $event, Dispatcher $dispatcher)
Listens for the 'beforeDispatch' event and checks the key headers.
Will return output and exit program execution on error
at line line 109
returnInvalid($msg = 'Invalid HMAC Token')
Output a 403 Forbidden response and proper JSON encoded error message