-
Notifications
You must be signed in to change notification settings - Fork 0
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 #28 from pdsinterop/feature/jti
Add JTI validation
- Loading branch information
Showing
14 changed files
with
1,097 additions
and
171 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace Pdsinterop\Solid\Auth\Config; | ||
|
||
use Defuse\Crypto\Key as CryptoKey; | ||
use Lcobucci\JWT\Signer\Key\InMemory as Key; | ||
use League\OAuth2\Server\CryptKey; | ||
|
||
interface KeysInterface | ||
{ | ||
public function getEncryptionKey(): CryptoKey|string; | ||
|
||
public function getPrivateKey(): CryptKey; | ||
|
||
public function getPublicKey(): Key; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
namespace Pdsinterop\Solid\Auth\Config; | ||
|
||
use Pdsinterop\Solid\Auth\Exception\LogicException; | ||
|
||
interface ServerInterface extends \JsonSerializable | ||
{ | ||
public function get($key); | ||
|
||
public function getRequired(): array; | ||
|
||
public function __toString(): string; | ||
|
||
/** | ||
* @return array | ||
* | ||
* @throws LogicException for missing required properties | ||
*/ | ||
public function jsonSerialize(): array; | ||
|
||
public function validate(): bool; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
namespace Pdsinterop\Solid\Auth; | ||
|
||
interface ReplayDetectorInterface | ||
{ | ||
public function detect(string $jti, string $targetUri): bool; | ||
} |
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
Oops, something went wrong.