-
Notifications
You must be signed in to change notification settings - Fork 1
Add OAuth2 resource indicator helpers #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
loks0n
merged 13 commits into
utopia-php:main
from
ChiragAgg5k:codex/oauth2-resource-indicators
Jun 19, 2026
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
7f7d507
Add OAuth2 resource indicator helpers
ChiragAgg5k ee7563a
Fix single resource audience shape
ChiragAgg5k 53948b2
Refine resource indicators API
ChiragAgg5k 0de3667
Refine access token audience handling
ChiragAgg5k 751b4f2
Use spread operator for audience list
ChiragAgg5k dd8f8ba
Honor requested resource audiences
ChiragAgg5k 5f39878
Remove duplicate resource validation
ChiragAgg5k fe454ed
Surface invalid resource error code
ChiragAgg5k 85b0330
Document resource downscope check
ChiragAgg5k 886d8b2
Clarify resource URI validation message
ChiragAgg5k ac8709d
Simplify resource indicators README example
ChiragAgg5k 9a15057
Fix resource indicator PHPStan type
ChiragAgg5k 9ee4a93
Consolidate CI workflow
ChiragAgg5k 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| name: "CI" | ||
|
|
||
| on: [pull_request] | ||
|
|
||
| jobs: | ||
| codeql: | ||
| name: CodeQL | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 | ||
| with: | ||
| fetch-depth: 2 | ||
|
|
||
| - run: git checkout HEAD^2 | ||
|
|
||
| - name: Run CodeQL | ||
| run: | | ||
| docker run --rm -v $PWD:/app composer:2.6 sh -c \ | ||
| "composer install --profile --ignore-platform-reqs && composer check" | ||
|
|
||
| linter: | ||
| name: Linter | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 | ||
| with: | ||
| fetch-depth: 2 | ||
|
|
||
| - run: git checkout HEAD^2 | ||
|
|
||
| - name: Run Linter | ||
| run: | | ||
| docker run --rm -v $PWD:/app composer sh -c \ | ||
| "composer install --profile --ignore-platform-reqs && composer lint" | ||
|
|
||
| tests: | ||
| name: Tests | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 | ||
| with: | ||
| fetch-depth: 2 | ||
|
|
||
| - run: git checkout HEAD^2 | ||
|
|
||
| - name: Build | ||
| run: | | ||
| docker compose build | ||
| docker compose up -d | ||
| sleep 10 | ||
|
|
||
| - name: Run Tests | ||
| run: docker compose exec tests vendor/bin/phpunit --configuration phpunit.xml tests | ||
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
git checkout HEAD^2resets every job to the PR branch tip rather than the merge commit that GitHub Actions checks out by default. This means integration breakage — e.g., a conflict resolution in the merge commit, or a breaking change onmainthat landed between branch creation and merge — goes untested. CI can report green while the actual merged code fails to build or passes tests with different behaviour. The same step is present in all three jobs (codeql,linter,tests). Removing these threegit checkout HEAD^2steps restores the standard behaviour of validating the merged result.