This repository was archived by the owner on Mar 9, 2026. It is now read-only.
forked from thephpleague/oauth2-server
-
Notifications
You must be signed in to change notification settings - Fork 4
1122 9.3.0 #20
Merged
Merged
1122 9.3.0 #20
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
687f558
Basic implementation of private claims
skroczek 1ceece8
Adds private claims to the grant types
skroczek c154242
Fixes styles
skroczek 5f99b85
Makes ClaimRepository optional in AuthorizationServer constructor.
skroczek 91544c2
Fixes styles II
skroczek 3f75c45
Adds testing for claims
skroczek c51fcf4
Fixes style of claim entity stub
skroczek 6a23b5d
Fixes phpstan errors
skroczek a857813
Removes unused JsonSerializable interface
skroczek 98b8c0a
Adds ClaimEntityTrait
skroczek 2d4e048
Removes useless claim parameter
skroczek 96176d8
Removes confusing ClaimEntity argument
skroczek 13bb765
Asserts that the claim has been set
skroczek c1db633
Fixes cs
skroczek c750c3c
Fixes phpstan error
skroczek 0fff30d
Adds and uses TokenInterface::addClaim() method and removes $claims p…
skroczek 20d8d98
Add blank line above block
Sephster 7043485
Fix formatting and make if check more explicit
Sephster 12bcdf5
Fix formatting and make if check more explicit
Sephster 7a8bc57
Fix formatting and make if check more explicit
Sephster 31a4bd0
Fix formatting and make if check more explicit
Sephster 49534e8
Fix formatting and make if check more explicit
Sephster f1fda93
Fix formatting and make if check more explicit
Sephster a350bb4
Changes copyright
skroczek 245aa4f
StyleCI fix
Sephster 3eb7ec1
Remove getClaims and addClaim from TokenInterface
Sephster ecc63c6
Add method exists for addClaim on token
Sephster 7947a61
StyleCI fixes
Sephster c7e4b60
Various fixups post rebase
reedy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,3 @@ | ||
| parameters: | ||
| ignoreErrors: | ||
| - '#\[BC\] ADDED: Method setClaimRepository\(\) was added to interface #' |
This file contains hidden or 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 hidden or 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,26 @@ | ||
| <?php | ||
|
|
||
| /** | ||
| * @author Sebastian Kroczek <me@xbug.de> | ||
| * @copyright Copyright (c) Alex Bilbie | ||
| * @license http://mit-license.org/ | ||
| * | ||
| * @link https://github.com/thephpleague/oauth2-server | ||
| */ | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| namespace League\OAuth2\Server\Entities; | ||
|
|
||
| interface ClaimEntityInterface | ||
| { | ||
| /** | ||
| * Get the claim's name. | ||
| */ | ||
| public function getName(): string; | ||
|
|
||
| /** | ||
| * Get the claim's value | ||
| */ | ||
| public function getValue(): mixed; | ||
| } |
This file contains hidden or 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 hidden or 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,36 @@ | ||
| <?php | ||
|
|
||
| /** | ||
| * @author Sebastian Kroczek <me@xbug.de> | ||
| * @copyright Copyright (c) Alex Bilbie | ||
| * @license http://mit-license.org/ | ||
| * | ||
| * @link https://github.com/thephpleague/oauth2-server | ||
| */ | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| namespace League\OAuth2\Server\Entities\Traits; | ||
|
|
||
| trait ClaimEntityTrait | ||
| { | ||
| protected string $name; | ||
|
|
||
| protected mixed $value; | ||
|
|
||
| /** | ||
| * Returns the name of the claim | ||
| */ | ||
| public function getName(): string | ||
| { | ||
| return $this->name; | ||
| } | ||
|
|
||
| /** | ||
| * Returns the claims value | ||
| */ | ||
| public function getValue(): mixed | ||
| { | ||
| return $this->value; | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.