-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add validate_resource_server_ip feature flag to config and check to validate #98
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| <?php | ||
|
|
||
| return [ | ||
|
|
||
| /* | ||
| |-------------------------------------------------------------------------- | ||
| | Validate Resource Server IP Address | ||
| |-------------------------------------------------------------------------- | ||
| | | ||
| | When enabled, validates that the resource server IP address matches | ||
| | the request IP and the access token audience. | ||
| | | ||
| */ | ||
| 'validate_resource_server_ip' => env('OAUTH2_VALIDATE_RESOURCE_SERVER_IP', false), | ||
| ]; | ||
|
Comment on lines
+1
to
+15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider defaulting to This feature flag defaults to A safer migration path would be to default to 🤖 Prompt for AI Agents |
||
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.
Inconsistency between example value and config default.
The example sets
OAUTH2_VALIDATE_RESOURCE_SERVER_IP=true, butconfig/oauth2.phpdefaults tofalsewhen the env var is not set. Developers copying this example will get validation enabled, but fresh deployments without explicit configuration will have it disabled.Consider aligning these: either default to
truein the config (preserving existing security behavior) or set the example tofalseto match the actual default.🤖 Prompt for AI Agents