Skip to content

Commit

Permalink
Revert "Add SensitiveParameter attribute"
Browse files Browse the repository at this point in the history
This reverts commit 7bd4a65.
  • Loading branch information
jenky committed Jul 12, 2023
1 parent 7bd4a65 commit c8aa542
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Middleware/Auth/BasicAuthentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ final class BasicAuthentication
{
use AuthenticationMiddlewareTrait;

public function __construct(#[\SensitiveParameter] string $username, #[\SensitiveParameter] string $password)
public function __construct(string $username, string $password)
{
$credential = $username.':'.$password;

Expand Down
2 changes: 1 addition & 1 deletion src/Middleware/Auth/BearerAuthentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ final class BearerAuthentication
{
use AuthenticationMiddlewareTrait;

public function __construct(#[\SensitiveParameter] string $token, string $tokenPrefix = 'Bearer')
public function __construct(string $token, string $tokenPrefix = 'Bearer')
{
$this->token = $tokenPrefix.' '.trim($token);
}
Expand Down

0 comments on commit c8aa542

Please sign in to comment.