delobelf@gmail.com
2/14/2017 - 12:44 PM

Token Auth

Token Auth


Example in a controller :

    /**
     * ....
     *
     * @ApiDoc(
     *   section="NotificationMessage",
     *   authentication=true,
     *   authenticationRoles={"IDENTIFIERSTRING"}
     * )
     *
     * @param $token
     *
     *  .....
     */
     
    public function postNotificationAction($token, $node)
    {
        $this->authenticateToken($token, 'IDENTIFIERSTRING');
        
        ...
    }


IDENTIFIERSTRING is used in TU only
_