Skip to content

Commit 01e3738

Browse files
committed
yii2.0.13 以后 oauth2 bug,增加request配置
1 parent 78a544c commit 01e3738

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,15 @@ composer require windhoney/yii2-rest-rbac
3636
'authorization_code' => [
3737
'class' => 'OAuth2\GrantType\AuthorizationCode'
3838
],
39-
]
39+
],
40+
'components' => [
41+
'request' => function () {
42+
return \filsh\yii2\oauth2server\Request::createFromGlobals();
43+
},
44+
'response' => [
45+
'class' => \filsh\yii2\oauth2server\Response::class,
46+
],
47+
],
4048
]
4149
],
4250
'components' => [

0 commit comments

Comments
 (0)