public function authenticate($request) {
		if(!$this->configured)
			return;
		
		$this->checkValidity();
		
		if($this->via == self::HTTP_HEADER)
			$request->addHeader($this->description->http_header, $this->token);
	}
public function authenticate($request) {
		if(!$this->configured)
			return;
		
		$this->checkValidity();
		
		if($this->via == self::HTTP_HEADER)
			$request->addHeader($this->description->http_header, $this->token);
	}
public function authenticate ( $ request ) { if ( ! $ this -> configured ) return ; $ this -> checkValidity ( ) ; if ( $ this -> via == self :: HTTP_HEADER ) $ request -> addHeader ( $ this -> description -> http_header , $ this -> token ) ; }
Add token header if configured. Checks token validity.
Add token header if configured . Checks token validity .