问题描述(报错内容):
使用Oauth2单点登录,在oauth2提供方点击“授权“后回调到空白页“”加载页面时出错,请检查控制台”
已尝试的解决办法(演示网址或图片):
使用了以下两组插件进行尝试,均出现同样情况
- 使用
fof/oauth + blt950/oauth-generic时的报错
flarum.ERROR: TypeError: FoF\OAuth\Controller::getIdentifier(): Return value must be of type string, null returned in /path_to_my_site/vendor/fof/oauth/src/Controller.php:54
- 使用fof/pasaport时的报错
flarum.ERROR: TypeError: Flarum\Forum\Auth\ResponseFactory::make(): Argument #2 ($identifier) must be of type string, null given, called in /path_to_my_site/vendor/fof/passport/src/Controllers/PassportController.php on line 98 and defined in /path_to_my_site/vendor/flarum/core/src/Forum/Auth/ResponseFactory.php:36
邮件系统正常,oauth2提供方为xenforo 2.3自带。
fof/passport配置:
