File tree Expand file tree Collapse file tree 4 files changed +20
-2
lines changed Expand file tree Collapse file tree 4 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 1
1
vendor
2
- composer.lock
2
+ composer.lock
3
+ .phpunit.result.cache
Original file line number Diff line number Diff line change 12
12
],
13
13
"require" : {
14
14
"php" : " >=7.1" ,
15
- "laravel/passport" : " ^6.0|^7.0"
15
+ "laravel/passport" : " ^6.0|^7.0|^8.0 "
16
16
},
17
17
"require-dev" : {
18
18
"mockery/mockery" : " ^1.1" ,
Original file line number Diff line number Diff line change 2
2
3
3
namespace Coderello \SocialGrant \Tests ;
4
4
5
+ use League \OAuth2 \Server \CryptKey ;
5
6
use Zend \Diactoros \ServerRequest ;
6
7
use Coderello \SocialGrant \Tests \Stubs \User ;
7
8
use League \OAuth2 \Server \Exception \OAuthServerException ;
@@ -62,6 +63,7 @@ public function test_respond_to_request()
62
63
$ grant ->setAccessTokenRepository ($ accessTokenRepositoryMock );
63
64
$ grant ->setScopeRepository ($ scopeRepositoryMock );
64
65
$ grant ->setDefaultScope (self ::DEFAULT_SCOPE );
66
+ $ grant ->setPrivateKey (new CryptKey ('file:// ' .__DIR__ .'/Stubs/private.key ' , null , false ));
65
67
66
68
$ serverRequest = new ServerRequest ();
67
69
$ serverRequest = $ serverRequest ->withParsedBody (
Original file line number Diff line number Diff line change
1
+ -----BEGIN RSA PRIVATE KEY-----
2
+ MIICXgIBAAKBgQDOBcFjGUlo3BJ9zjwQLgAHn6Oy5Si0uB7MublTiPob8rWTiCE4
3
+ weAFqzPoAB07vB0t0f8c1R8rmwHMD5ljWPBgJ8FewtwAUzprOBcau6DWukd/TKxX
4
+ WeVLAl/NZxijI+jR5QDBYLNBtj1G4LBVHMmINd3ryCycbf9ac3rcC8zhrQIDAQAB
5
+ AoGADfOJ0wIlXHp6rhZHLvlOezWuSjEGfqZxP3/cMvH1rerTrPfs+AD5AKlFTJKl
6
+ aCQm/bFYy0ULZVKL3pu30Wh2bo1nh/wLuLSI9Nz3O8jqAP3z0i07SoRoQmb8fRnn
7
+ dwoDFqnk3uGqcOenheSqheIgl9vdW/3avhD6nkMKZGxPYwECQQDoSj/xHogEzMqB
8
+ 1Z2E5H/exeE9GQ7+dGITRR2MSgo9WvcKdRhGaQ44dsnTmqiZWAfqAPJjTQIIA/Cn
9
+ YRRTeBbNAkEA4w0iEvCIygGQOAnWuvVzlh+pxIB+BTeGkbiBG7nkYYc9b6B/Tw1B
10
+ GWGRddBr/FIfPvy1X2ip/TBpH+9bHnE2YQJBAIbZw/EYhmIy+UUSW9WwSUNsoOu1
11
+ Rm0V53HEZ/jvaq5fxpa9j5AgoO7KlzROzp3m6wE/93cKV6mLkAO7ae9jAekCQQCf
12
+ B6DZIS6+RrAMACAt3SOzf8P6BYG/B7Ayusd7cw2ang4S9JiW9xKkw2kN2wj3t1F5
13
+ XalwBTAjTdgj7ROmU+ehAkEAkOyXKONGBoVfaixRHgBP6jIBSSPbB2Aosi0QAURX
14
+ 6GOY7wOS1pCSntTOBQxV7wVjqFwYAR10MSxFSNfpJ7RkzA==
15
+ -----END RSA PRIVATE KEY-----
You can’t perform that action at this time.
0 commit comments