@@ -134,7 +134,7 @@ public function test_users_may_be_retrieved_from_cookies_with_csrf_token_header(
134
134
'aud ' => 1 ,
135
135
'csrf ' => 'token ' ,
136
136
'expiry ' => Carbon::now ()->addMinutes (10 )->getTimestamp (),
137
- ], str_repeat ('a ' , 16 )), false )
137
+ ], str_repeat ('a ' , 16 ), ' HS256 ' ), false )
138
138
);
139
139
140
140
$ userProvider ->shouldReceive ('retrieveById ' )->with (1 )->andReturn ($ expectedUser = new TokenGuardTestUser );
@@ -167,7 +167,7 @@ public function test_users_may_be_retrieved_from_cookies_with_xsrf_token_header(
167
167
'aud ' => 1 ,
168
168
'csrf ' => 'token ' ,
169
169
'expiry ' => Carbon::now ()->addMinutes (10 )->getTimestamp (),
170
- ], str_repeat ('a ' , 16 )), false )
170
+ ], str_repeat ('a ' , 16 ), ' HS256 ' ), false )
171
171
);
172
172
173
173
$ userProvider ->shouldReceive ('retrieveById ' )->with (1 )->andReturn ($ expectedUser = new TokenGuardTestUser );
@@ -196,7 +196,7 @@ public function test_cookie_xsrf_is_verified_against_csrf_token_header()
196
196
'aud ' => 1 ,
197
197
'csrf ' => 'token ' ,
198
198
'expiry ' => Carbon::now ()->addMinutes (10 )->getTimestamp (),
199
- ], str_repeat ('a ' , 16 )))
199
+ ], str_repeat ('a ' , 16 ), ' HS256 ' ))
200
200
);
201
201
202
202
$ userProvider ->shouldReceive ('retrieveById ' )->never ();
@@ -222,7 +222,7 @@ public function test_cookie_xsrf_is_verified_against_xsrf_token_header()
222
222
'aud ' => 1 ,
223
223
'csrf ' => 'token ' ,
224
224
'expiry ' => Carbon::now ()->addMinutes (10 )->getTimestamp (),
225
- ], str_repeat ('a ' , 16 )))
225
+ ], str_repeat ('a ' , 16 ), ' HS256 ' ))
226
226
);
227
227
228
228
$ userProvider ->shouldReceive ('retrieveById ' )->never ();
@@ -256,7 +256,7 @@ public function test_users_may_be_retrieved_from_cookies_with_xsrf_token_header_
256
256
'aud ' => 1 ,
257
257
'csrf ' => 'token ' ,
258
258
'expiry ' => Carbon::now ()->addMinutes (10 )->getTimestamp (),
259
- ], Passport::tokenEncryptionKey ($ encrypter )), false )
259
+ ], Passport::tokenEncryptionKey ($ encrypter ), ' HS256 ' ), false )
260
260
);
261
261
262
262
$ userProvider ->shouldReceive ('retrieveById ' )->with (1 )->andReturn ($ expectedUser = new TokenGuardTestUser );
@@ -288,7 +288,7 @@ public function test_xsrf_token_cookie_without_a_token_header_is_not_accepted()
288
288
'aud ' => 1 ,
289
289
'csrf ' => 'token ' ,
290
290
'expiry ' => Carbon::now ()->addMinutes (10 )->getTimestamp (),
291
- ], str_repeat ('a ' , 16 )))
291
+ ], str_repeat ('a ' , 16 ), ' HS256 ' ))
292
292
);
293
293
294
294
$ userProvider ->shouldReceive ('retrieveById ' )->never ();
@@ -314,7 +314,7 @@ public function test_expired_cookies_may_not_be_used()
314
314
'aud ' => 1 ,
315
315
'csrf ' => 'token ' ,
316
316
'expiry ' => Carbon::now ()->subMinutes (10 )->getTimestamp (),
317
- ], str_repeat ('a ' , 16 )))
317
+ ], str_repeat ('a ' , 16 ), ' HS256 ' ))
318
318
);
319
319
320
320
$ userProvider ->shouldReceive ('retrieveById ' )->never ();
@@ -344,7 +344,7 @@ public function test_csrf_check_can_be_disabled()
344
344
'sub ' => 1 ,
345
345
'aud ' => 1 ,
346
346
'expiry ' => Carbon::now ()->addMinutes (10 )->getTimestamp (),
347
- ], str_repeat ('a ' , 16 )), false )
347
+ ], str_repeat ('a ' , 16 ), ' HS256 ' ), false )
348
348
);
349
349
350
350
$ userProvider ->shouldReceive ('retrieveById ' )->with (1 )->andReturn ($ expectedUser = new TokenGuardTestUser );
@@ -443,7 +443,7 @@ public function test_clients_may_be_retrieved_from_cookies()
443
443
'aud ' => 1 ,
444
444
'csrf ' => 'token ' ,
445
445
'expiry ' => Carbon::now ()->addMinutes (10 )->getTimestamp (),
446
- ], str_repeat ('a ' , 16 )), false )
446
+ ], str_repeat ('a ' , 16 ), ' HS256 ' ), false )
447
447
);
448
448
449
449
$ clients ->shouldReceive ('findActive ' )->with (1 )->andReturn ($ expectedClient = new TokenGuardTestClient );
0 commit comments