File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change 2424 header ('Location: ' .$ provider ->getAuthorizationURL ($ PARAMS ));
2525}
2626// step 3: receive the access token
27- elseif (isset ($ _GET ['oauth_token ' ]) && isset ( $ _GET ['oauth_verifier ' ])){
27+ elseif (isset ($ _GET ['oauth_token ' ], $ _GET ['oauth_verifier ' ])){
2828 $ token = $ provider ->getAccessToken ($ _GET ['oauth_token ' ], $ _GET ['oauth_verifier ' ]);
2929
3030 // save the token [...]
Original file line number Diff line number Diff line change @@ -98,15 +98,13 @@ public function testParseTokenResponseNoTokenException():void{
9898 * access token
9999 */
100100
101-
102101 public function testGetAccessToken ():void {
103102 $ this ->setMockResponse ($ this ->streamFactory ->createStream ($ this ::TEST_TOKEN ));
104103
105104 $ token = $ this ->provider ->getAccessToken ('code ' );
106105
107106 $ this ->assertSame ('sk ' , $ token ->accessToken );
108107 $ this ::assertSame ('lfm-user ' , $ token ->extraParams ['session ' ]['name ' ]);
109-
110108 }
111109
112110 public function testGetAccessTokenRequestBodyParams ():void {
You can’t perform that action at this time.
0 commit comments