File tree Expand file tree Collapse file tree 1 file changed +3
-20
lines changed
app/code/Magento/CustomerGraphQl/Controller/HttpRequestValidator Expand file tree Collapse file tree 1 file changed +3
-20
lines changed Original file line number Diff line number Diff line change 31
31
*/
32
32
class AuthorizationRequestValidator implements HttpRequestValidatorInterface
33
33
{
34
- /**
35
- * @var UserTokenReaderInterface
36
- *
37
- * phpcs:disable Magento2.Commenting.ClassPropertyPHPDocFormatting
38
- */
39
- private readonly UserTokenReaderInterface $ userTokenReader ;
40
-
41
- /**
42
- * @var UserTokenValidatorInterface
43
- *
44
- * phpcs:disable Magento2.Commenting.ClassPropertyPHPDocFormatting
45
- */
46
- private readonly UserTokenValidatorInterface $ userTokenValidator ;
47
-
48
34
/**
49
35
* @param UserTokenReaderInterface $tokenReader
50
36
* @param UserTokenValidatorInterface $tokenValidator
51
37
*/
52
38
public function __construct (
53
- UserTokenReaderInterface $ tokenReader ,
54
- UserTokenValidatorInterface $ tokenValidator
39
+ private readonly UserTokenReaderInterface $ tokenReader ,
40
+ private readonly UserTokenValidatorInterface $ tokenValidator
55
41
) {
56
- $ this ->userTokenReader = $ tokenReader ;
57
- $ this ->userTokenValidator = $ tokenValidator ;
58
42
}
59
43
60
44
/**
@@ -76,8 +60,7 @@ public function validate(HttpRequestInterface $request): void
76
60
return ;
77
61
}
78
62
79
- $ tokenType = strtolower (reset ($ headerPieces ));
80
- if ($ tokenType !== 'bearer ' ) {
63
+ if (strtolower (reset ($ headerPieces )) !== 'bearer ' ) {
81
64
return ;
82
65
}
83
66
You can’t perform that action at this time.
0 commit comments