@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * The MIT License (MIT) |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * The MIT License (MIT) |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * The MIT License (MIT) |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * The MIT License (MIT) |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * The MIT License (MIT) |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * The MIT License (MIT) |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | $request = $request->withParsedBody([ |
54 | 54 | 'grant_type' => 'urn:ietf:params:oauth:grant-type:jwt-bearer', |
55 | 55 | ]); |
56 | - $request = $request->withHeader('Authorization', 'Basic ' . base64_encode('client1:secret')); |
|
56 | + $request = $request->withHeader('Authorization', 'Basic '.base64_encode('client1:secret')); |
|
57 | 57 | $request = $request->withHeader('Content-Type', 'application/x-www-form-urlencoded'); |
58 | 58 | |
59 | 59 | $this->responseContext->setResponse($this->applicationContext->getApplication()->getTokenEndpointPipe()->dispatch($request)); |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | 'assertion' => $this->generateValidAssertionFromTrustedIssuer(), |
88 | 88 | ]); |
89 | 89 | $request = $request->withHeader('Content-Type', 'application/x-www-form-urlencoded'); |
90 | - $request = $request->withHeader('Authorization', 'Basic ' . base64_encode('client1:secret')); |
|
90 | + $request = $request->withHeader('Authorization', 'Basic '.base64_encode('client1:secret')); |
|
91 | 91 | |
92 | 92 | $this->responseContext->setResponse($this->applicationContext->getApplication()->getTokenEndpointPipe()->dispatch($request)); |
93 | 93 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * The MIT License (MIT) |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * The MIT License (MIT) |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | $request = $request->withParsedBody([ |
52 | 52 | 'grant_type' => 'password', |
53 | 53 | ]); |
54 | - $request = $request->withHeader('Authorization', 'Basic ' . base64_encode('client1:secret')); |
|
54 | + $request = $request->withHeader('Authorization', 'Basic '.base64_encode('client1:secret')); |
|
55 | 55 | $request = $request->withHeader('Content-Type', 'application/x-www-form-urlencoded'); |
56 | 56 | |
57 | 57 | $this->responseContext->setResponse($this->applicationContext->getApplication()->getTokenEndpointPipe()->dispatch($request)); |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | 'grant_type' => 'password', |
69 | 69 | 'username' => 'john.1', |
70 | 70 | ]); |
71 | - $request = $request->withHeader('Authorization', 'Basic ' . base64_encode('client1:secret')); |
|
71 | + $request = $request->withHeader('Authorization', 'Basic '.base64_encode('client1:secret')); |
|
72 | 72 | $request = $request->withHeader('Content-Type', 'application/x-www-form-urlencoded'); |
73 | 73 | |
74 | 74 | $this->responseContext->setResponse($this->applicationContext->getApplication()->getTokenEndpointPipe()->dispatch($request)); |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | 'username' => 'john.1', |
87 | 87 | 'password' => 'BAD PASSWORD', |
88 | 88 | ]); |
89 | - $request = $request->withHeader('Authorization', 'Basic ' . base64_encode('client1:secret')); |
|
89 | + $request = $request->withHeader('Authorization', 'Basic '.base64_encode('client1:secret')); |
|
90 | 90 | $request = $request->withHeader('Content-Type', 'application/x-www-form-urlencoded'); |
91 | 91 | |
92 | 92 | $this->responseContext->setResponse($this->applicationContext->getApplication()->getTokenEndpointPipe()->dispatch($request)); |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | 'password' => 'doe', |
106 | 106 | 'scope' => 'email phone address', |
107 | 107 | ]); |
108 | - $request = $request->withHeader('Authorization', 'Basic ' . base64_encode('client1:secret')); |
|
108 | + $request = $request->withHeader('Authorization', 'Basic '.base64_encode('client1:secret')); |
|
109 | 109 | $request = $request->withHeader('Content-Type', 'application/x-www-form-urlencoded'); |
110 | 110 | |
111 | 111 | $this->responseContext->setResponse($this->applicationContext->getApplication()->getTokenEndpointPipe()->dispatch($request)); |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * The MIT License (MIT) |