Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
9faf5044
Commit
9faf5044
authored
Jan 05, 2015
by
Klimov Paul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed `\yii\authclient\OAuth2::refreshAccessToken()` does not save fetched token
parent
e0b206a3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
CHANGELOG.md
extensions/authclient/CHANGELOG.md
+1
-0
OAuth2.php
extensions/authclient/OAuth2.php
+4
-1
OAuthToken.php
extensions/authclient/OAuthToken.php
+3
-0
No files found.
extensions/authclient/CHANGELOG.md
View file @
9faf5044
...
...
@@ -4,6 +4,7 @@ Yii Framework 2 authclient extension Change Log
2.
0.2 under development
-----------------------
-
Bug #6502: Fixed
`\yii\authclient\OAuth2::refreshAccessToken()`
does not save fetched token (sebathi)
-
Bug #6510: Fixed infinite redirect loop using default
`\yii\authclient\AuthAction::cancelUrl`
(klimov-paul)
...
...
extensions/authclient/OAuth2.php
View file @
9faf5044
...
...
@@ -158,7 +158,10 @@ class OAuth2 extends BaseOAuth
$params
=
array_merge
(
$token
->
getParams
(),
$params
);
$response
=
$this
->
sendRequest
(
'POST'
,
$this
->
tokenUrl
,
$params
);
return
$response
;
$token
=
$this
->
createToken
([
'params'
=>
$response
]);
$this
->
setAccessToken
(
$token
);
return
$token
;
}
/**
...
...
extensions/authclient/OAuthToken.php
View file @
9faf5044
...
...
@@ -50,6 +50,9 @@ class OAuthToken extends Object
private
$_params
=
[];
/**
* @inheritdoc
*/
public
function
init
()
{
if
(
$this
->
createTimestamp
===
null
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment