Skip to content

[13.x] Mark HTTP testing credentials as sensitive#60880

Merged
taylorotwell merged 1 commit into
laravel:13.xfrom
Amirhf1:fix/testing-auth-sensitive-parameters
Jul 24, 2026
Merged

[13.x] Mark HTTP testing credentials as sensitive#60880
taylorotwell merged 1 commit into
laravel:13.xfrom
Amirhf1:fix/testing-auth-sensitive-parameters

Conversation

@Amirhf1

@Amirhf1 Amirhf1 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Laravel's HTTP client marks authentication tokens and passwords with PHP's #[SensitiveParameter] attribute, preventing these values from appearing in stack traces.

The equivalent MakesHttpRequests testing helpers did not provide the same protection.

This change marks:

  • The token passed to withToken()
  • The password passed to withBasicAuth()

@taylorotwell
taylorotwell merged commit 76b874e into laravel:13.x Jul 24, 2026
55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants