mirror of
https://git.yylx.win/https://github.com/fhirter-vkb/freescout-oauth.git
synced 2025-10-03 17:40:58 +08:00
add curl options
This commit is contained in:
parent
03c47b1e06
commit
1398e2aee2
1 changed files with 2 additions and 0 deletions
|
@ -47,6 +47,8 @@ class OAuthController extends Controller
|
|||
|
||||
$userCh = curl_init($settings['oauth.user_url']);
|
||||
curl_setopt_array($userCh, [
|
||||
CURLOPT_RETURNTRANSFER => 1,
|
||||
CURLINFO_HEADER_OUT => true,
|
||||
CURLOPT_HTTPHEADER => [
|
||||
'Authorization: Bearer ' . $accessToken,
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue