mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
Fixed PHP error with missing bracket
Signed-off-by: Alex Bilbie <alex@alexbilbie.com>
This commit is contained in:
@@ -50,10 +50,10 @@ class IDP {
|
|||||||
'redirect_uri' => $this->redirectUri,
|
'redirect_uri' => $this->redirectUri,
|
||||||
'state' => $state,
|
'state' => $state,
|
||||||
'scope' => is_array($this->scope) ? implode($this->scopeSeperator, $this->scope) : $this->scope,
|
'scope' => is_array($this->scope) ? implode($this->scopeSeperator, $this->scope) : $this->scope,
|
||||||
'response_type' => isset($options['response_type'] ? $options['response_type'] : 'code',
|
'response_type' => isset($options['response_type']) ? $options['response_type'] : 'code',
|
||||||
'approval_prompt' => 'force' // - google force-recheck
|
'approval_prompt' => 'force' // - google force-recheck
|
||||||
);
|
);
|
||||||
|
|
||||||
header('Location: ' . $this->urlAuthorize().'?'.http_build_query($params));
|
header('Location: ' . $this->urlAuthorize().'?'.http_build_query($params));
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
@@ -76,13 +76,13 @@ class IDP {
|
|||||||
case 'refresh_token':
|
case 'refresh_token':
|
||||||
$params['refresh_token'] = $code;
|
$params['refresh_token'] = $code;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ($this->method) {
|
switch ($this->method) {
|
||||||
|
|
||||||
case 'get':
|
case 'get':
|
||||||
$client = new Client($this->urlAccessToken() .= '?'.http_build_query($params));
|
$client = new Client($this->urlAccessToken() .= '?'.http_build_query($params));
|
||||||
$response = $client->get();
|
$response = $client->get();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user