关于oauth2.0-server-php 报错 handleTokenRequest 问题 [ 2.0 版本 ]
{
"name": "Exception",
"message": "Argument 1 passed to OAuth2\\Server::handleTokenRequest() must be an instance of OAuth2\\RequestInterface, instance of yii\\web\\Request given, called in /Users/moment/work/code/work-jy/shop-admin/vendor/filsh/yii2-oauth2-server/Server.php on line 42",
"code": 0,
"type": "TypeError",
"file": "/Users/moment/work/code/work-jy/shop-admin/vendor/bshaffer/oauth2-server-php/src/OAuth2/Server.php",
"line": 316,
"stack-trace": [
"#0 /Users/moment/work/code/work-jy/shop-admin/vendor/filsh/yii2-oauth2-server/Server.php(42): OAuth2\\Server->handleTokenRequest(Object(yii\\web\\Request), NULL)",
"#1 /Users/moment/work/code/work-jy/shop-admin/vendor/filsh/yii2-oauth2-server/controllers/RestController.php(26): filsh\\yii2\\oauth2server\\Server->handleTokenRequest()",
"#2 [internal function]: filsh\\yii2\\oauth2server\\controllers\\RestController->actionToken()",
"#3 /Users/moment/work/code/work-jy/shop-admin/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)",
"#4 /Users/moment/work/code/work-jy/shop-admin/vendor/yiisoft/yii2/base/Controller.php(157): yii\\base\\InlineAction->runWithParams(Array)",
"#5 /Users/moment/work/code/work-jy/shop-admin/vendor/yiisoft/yii2/base/Module.php(528): yii\\base\\Controller->runAction('token', Array)",
"#6 /Users/moment/work/code/work-jy/shop-admin/vendor/yiisoft/yii2/web/Application.php(103): yii\\base\\Module->runAction('oauth2/rest/tok...', Array)",
"#7 /Users/moment/work/code/work-jy/shop-admin/vendor/yiisoft/yii2/base/Application.php(386): yii\\web\\Application->handleRequest(Object(yii\\web\\Request))",
"#8 /Users/moment/work/code/work-jy/shop-admin/api/web/index.php(17): yii\\base\\Application->run()",
"#9 {main}"
]
}
共 0 个回答
没有找到数据。
sitefanie_
注册时间:2018-06-10
最后登录:2018-06-28
在线时长:3小时12分
最后登录:2018-06-28
在线时长:3小时12分
- 粉丝0
- 金钱10
- 威望0
- 积分40