src/main/php/auth/token/TokenAuthenticator.php
private function readToken(Request $request)
    {
        if (!$request->hasRedirectHeader('HTTP_AUTHORIZATION')) {
            return null;
        }

        return $request->readRedirectHeader('HTTP_AUTHORIZATION')
                ->withFilter(TokenFilter::instance());
    }
private function readToken(Request $request)
    {
        if (!$request->hasRedirectHeader('HTTP_AUTHORIZATION')) {
            return null;
        }

        return $request->readRedirectHeader('HTTP_AUTHORIZATION')
                ->withFilter(TokenFilter::instance());
    }
private function readToken ( Request $ request ) { if ( ! $ request -> hasRedirectHeader ( 'HTTP_AUTHORIZATION' ) ) { return null ; } return $ request -> readRedirectHeader ( 'HTTP_AUTHORIZATION' ) -> withFilter ( TokenFilter :: instance ( ) ) ; }
reads token from authorization header

@param   \stubbles\webapp\Request  $request  current request
@return  \stubbles\webapp\auth\Token|null
reads token from authorization header