for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the adlogix/guzzle-atlassian-connect-middleware package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Adlogix\GuzzleAtlassianConnect\Security;
use Adlogix\GuzzleAtlassianConnect\Entity\JwtToken;
* Class AbstractAuthentication
* @package Adlogix\GuzzleAtlassianConnect\Security
* @author Cedric Michaux <[email protected]>
abstract class AbstractAuthentication implements AuthenticationInterface
{
* @var JwtToken
protected $token;
* AbstractAuthentication constructor.
* @param string $key
* @param string $sharedSecret
public function __construct($key, $sharedSecret)
$this->token = new JwtToken($key, $sharedSecret);
}
* {@inheritdoc}
public function getHeaders()
return [];
public function getQueryParameters()
public function getTokenInstance()
return $this->token;
public function setQueryString($method, $url)
$this->token->setQueryString($method, $url);
return $this;