Toggle navigation
Toggle navigation
This project
Loading...
Sign in
UT
/
oauth_2-0_client_php
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Bastian Hofmann
2011-08-15 07:17:53 -0700
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
655309949ad6e34d6afaf786de2d88e2136bcec2
65530994
2 parents
df2c42cd
ab00a222
Merge pull request #6 from kiwnix/patch-1
Not compatible with Bearer token draft 03 and up
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
oauth2.php
oauth2.php
View file @
6553099
...
...
@@ -296,7 +296,7 @@ class OAuth2_Service
$endpoint
.=
(
strpos
(
$endpoint
,
'?'
)
!==
false
?
'&'
:
'?'
)
.
http_build_query
(
$uriParameters
);
}
$headers
=
array_merge
(
array
(
'Authorization:
OAuth
'
.
$token
->
getAccessToken
()),
$additionalHeaders
);
$headers
=
array_merge
(
array
(
'Authorization:
Bearer
'
.
$token
->
getAccessToken
()),
$additionalHeaders
);
$http
=
new
OAuth2_HttpClient
(
$endpoint
,
$method
,
$parameters
,
$headers
);
$http
->
execute
();
...
...
Please
register
or
login
to post a comment