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-03-25 13:47:05 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f726e52357753adea06717444e4a31edc101c656
f726e523
1 parent
61fc27a7
fixed
https://github.com/vznet/oauth_2.0_client_php/issues/5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
oauth2.php
oauth2.php
View file @
f726e52
...
...
@@ -256,7 +256,9 @@ class OAuth2_Service
if
(
$token
->
getLifeTime
()
&&
$token
->
getLifeTime
()
<
time
())
{
$token
=
$this
->
refreshAccessToken
(
$token
);
}
$parameters
=
null
;
if
(
!
$this
->
_configuration
->
getUseOnlyAuthorizationHeader
()){
/*
http://tools.ietf.org/html/draft-ietf-oauth-v2-10#section-5.1
...
...
@@ -281,8 +283,6 @@ class OAuth2_Service
$endpoint
.=
(
strpos
(
$endpoint
,
'?'
)
!==
false
?
'&'
:
'?'
)
.
http_build_query
(
$uriParameters
);
}
$parameters
=
null
;
$header
=
array
(
'Authorization: OAuth '
.
$token
->
getAccessToken
());
$http
=
new
OAuth2_HttpClient
(
$endpoint
,
$method
,
$parameters
,
$header
);
...
...
Please
register
or
login
to post a comment