code/libraries/joomlatools/library/dispatcher/authenticator/jwt.php
public function getAuthToken()
    {
        if(!isset($this->__token))
        {
            $token   = false;
            $request = $this->getObject('request');

            if($request->headers->has('Authorization'))
            {
                $header = $request->headers->get('Authorization');

                if(stripos($header, 'jwt') === 0) {
                    $token = substr($header , 4);
                }
            }

            if($request->isSafe())
            {
                if($request->query->has('auth_token')) {
                    $token = $request->query->get('auth_token', 'url');
                }
            }
            else
            {
                if($request->data->has('auth_token')) {
                    $token = $request->data->get('auth_token', 'url');
                }
            }

            if($token) {
                $token = $this->getObject('lib:http.token')->fromString($token);
            }

            $this->__token = $token;
        }

        return $this->__token;
    }
public function getAuthToken()
    {
        if(!isset($this->__token))
        {
            $token   = false;
            $request = $this->getObject('request');

            if($request->headers->has('Authorization'))
            {
                $header = $request->headers->get('Authorization');

                if(stripos($header, 'jwt') === 0) {
                    $token = substr($header , 4);
                }
            }

            if($request->isSafe())
            {
                if($request->query->has('auth_token')) {
                    $token = $request->query->get('auth_token', 'url');
                }
            }
            else
            {
                if($request->data->has('auth_token')) {
                    $token = $request->data->get('auth_token', 'url');
                }
            }

            if($token) {
                $token = $this->getObject('lib:http.token')->fromString($token);
            }

            $this->__token = $token;
        }

        return $this->__token;
    }
public function getAuthToken ( ) { if ( ! isset ( $ this -> __token ) ) { $ token = false ; $ request = $ this -> getObject ( 'request' ) ; if ( $ request -> headers -> has ( 'Authorization' ) ) { $ header = $ request -> headers -> get ( 'Authorization' ) ; if ( stripos ( $ header , 'jwt' ) === 0 ) { $ token = substr ( $ header , 4 ) ; } } if ( $ request -> isSafe ( ) ) { if ( $ request -> query -> has ( 'auth_token' ) ) { $ token = $ request -> query -> get ( 'auth_token' , 'url' ) ; } } else { if ( $ request -> data -> has ( 'auth_token' ) ) { $ token = $ request -> data -> get ( 'auth_token' , 'url' ) ; } } if ( $ token ) { $ token = $ this -> getObject ( 'lib:http.token' ) -> fromString ( $ token ) ; } $ this -> __token = $ token ; } return $ this -> __token ; }
Return the JWT authorisation token

@return KHttpToken  The authorisation token or NULL if no token could be found
Return the JWT authorisation token