-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from jolicode/feature/jane-7.3-upgrade
Upgrade to Jane 7.3
- Loading branch information
Showing
400 changed files
with
17,530 additions
and
17,879 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,34 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of JoliCode's Harvest PHP API project. | ||
* | ||
* (c) JoliCode <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace JoliCode\Harvest\Api\Authentication; | ||
|
||
class AccountAuthAuthentication implements \Jane\Component\OpenApiRuntime\Client\AuthenticationPlugin | ||
{ | ||
private $apiKey; | ||
|
||
public function __construct(string $apiKey) | ||
{ | ||
$this->{'apiKey'} = $apiKey; | ||
} | ||
public function authentication(\Psr\Http\Message\RequestInterface $request) : \Psr\Http\Message\RequestInterface | ||
|
||
public function authentication(\Psr\Http\Message\RequestInterface $request): \Psr\Http\Message\RequestInterface | ||
{ | ||
$request = $request->withHeader('Harvest-Account-Id', $this->{'apiKey'}); | ||
|
||
return $request; | ||
} | ||
public function getScope() : string | ||
|
||
public function getScope(): string | ||
{ | ||
return 'AccountAuth'; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,34 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of JoliCode's Harvest PHP API project. | ||
* | ||
* (c) JoliCode <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace JoliCode\Harvest\Api\Authentication; | ||
|
||
class BearerAuthAuthentication implements \Jane\Component\OpenApiRuntime\Client\AuthenticationPlugin | ||
{ | ||
private $apiKey; | ||
|
||
public function __construct(string $apiKey) | ||
{ | ||
$this->{'apiKey'} = $apiKey; | ||
} | ||
public function authentication(\Psr\Http\Message\RequestInterface $request) : \Psr\Http\Message\RequestInterface | ||
|
||
public function authentication(\Psr\Http\Message\RequestInterface $request): \Psr\Http\Message\RequestInterface | ||
{ | ||
$request = $request->withHeader('Authorization', $this->{'apiKey'}); | ||
|
||
return $request; | ||
} | ||
public function getScope() : string | ||
|
||
public function getScope(): string | ||
{ | ||
return 'BearerAuth'; | ||
} | ||
} | ||
} |
Oops, something went wrong.