分页: 1 / 1

有没有办法让wordpress作为server提供sso

发表于 : 2019年9月28日 21:52
fdtl01
我有一个主站是wordpress, 现在想把论坛discourse切换到phpbb, 有没有办法提供SSO功能。即实现如下功能:
1 用户登录主站,访问子域名的phpbb论坛自动登录;
2 用户在phpbb论坛注册或者登录都会重定向到wordpress主站,由主站授权。
3 用户首次登录phpbb时会自动将用户信息同步到phpbb。

Re: 有没有办法让wordpress作为server提供sso

发表于 : 2019年9月30日 05:05
davidyin
phpBB 支持 oauth 认证,wordpress 应该也支持。
可以考虑从这里着手。

Re: 有没有办法让wordpress作为server提供sso

发表于 : 2019年9月30日 08:04
fdtl01
配置好oauth后,得到下面两种错误
1、You have attempted to login with an external service that is not yet connected to an account on this board. You must now either link this account to an existing account or create a new account.

2、Column 'oauth_provider_id' cannot be null

Re: 有没有办法让wordpress作为server提供sso

发表于 : 2019年9月30日 16:14
davidyin
看提示二,是没有提供 oauth 服务商。

Re: 有没有办法让wordpress作为server提供sso

发表于 : 2019年9月30日 17:05
fdtl01
phpbb源代码怎么阅读啊,有没有什么指南之类,说明phpbb框架,比如登录模块部分