\Ceo\Api\ListenersKeyListener

Key Authentication provider

Summary

Methods
Properties
Constants
beforeDispatch()
returnInvalid()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

beforeDispatch()

beforeDispatch(\Phalcon\Events\Event  $event, \Phalcon\Mvc\Dispatcher  $dispatcher) 

Listens for the 'beforeDispatch' event and checks the key headers.

Will return output and exit program execution on error

Parameters

\Phalcon\Events\Event $event
\Phalcon\Mvc\Dispatcher $dispatcher

returnInvalid()

returnInvalid(  $msg = 'Invalid HMAC Token') 

Output a 403 Forbidden response and proper JSON encoded error message

Parameters

$msg