cmdntd
(cmdntd)
October 2, 2021, 12:08pm
1
Hi,
I use wordpress multisite and installed discourse plugin to use discourse sso like provider for wp. But it does not like wp single site. When I go to wp-admin to login, it just show wordpress login page, and not redirect to discourse login automatically.
Do you have any experience with sso for wordpress multisite?
IAmGav
(Gavin Perch)
October 2, 2021, 12:31pm
2
what happens when you go to < yoursite >/wp-login.php
cmdntd
(cmdntd)
October 2, 2021, 1:18pm
3
IAmGav:
/wp-login.php
It’s the same.
That is wp login page, it can not redirect to discourse login.
IAmGav
(Gavin Perch)
October 2, 2021, 1:19pm
4
Is the plug-in “network activated” ?
cmdntd
(cmdntd)
October 2, 2021, 1:35pm
5
I do not understand your question, but this is my settings in network:
Pigeon
October 4, 2021, 10:56am
6
I want to do the same thing.
I cannot confirm this is what you need to do, but I think you need to check these boxes after logging into your Discourse instance as admin and going to Settings->Login.
The first box looks like it would allow someone to sign on to your Discourse by authenticating through another site. This is not what you want.
The second two boxes are I think what we want.
Maybe someone who knows can verify or correct this advice.
angus
(Angus McLeod)
October 4, 2021, 12:27pm
7
Hey guys, using Wordpress as a DiscourseConnect Client of a Discourse Provider is not supported. Please see
Specifically Multisite Support
The WP Discourse plugin works with WordPress multisite setups for everything except using WordPress as an DiscourseConnect Client for your Discourse site.
cmdntd
(cmdntd)
November 4, 2021, 3:56am
8
When I tested again for this option, it has “too many redirect” error
https://phuonghuynh.org/wp-admin/index.php?redirect_to=https%3A%2F%2Fphuonghuynh.org%2Fwp-admin%2Findex.php%3Fredirect_to%3Dhttps%253A%252F%252Fphuonghuynh.org%252Fwp-admin%252Findex.php%253Fredirect_to%253Dhttps%25253A%25252F%25252Fphuonghuynh.org%25252Fwp-admin%25252Findex.php%25253Fredirect_to%25253Dhttps%2525253A%2525252F%2525252Fphuonghuynh.org%2525252Fwp-admin%2525252Findex.php%2525253Fredirect_to%2525253Dhttps%252525253A%252525252F%252525252Fphuonghuynh.org%252525252Fwp-admin%252525252Findex.php%252525253Fredirect_to%252525253Dhttps%25252525253A%25252525252F%25252525252Fphuonghuynh.org%25252525252Fwp-admin%25252525252Findex.php%25252525253Fredirect_to%25252525253Dhttps%2525252525253A%2525252525252F%2525252525252Fphuonghuynh.org%2525252525252Fwp-admin%2525252525252Findex.php%2525252525253Fredirect_to%2525252525253Dhttps%252525252525253A%252525252525252F%252525252525252Fphuonghuynh.org%252525252525252Fwp-admin%252525252525252Findex.php%252525252525253Fredirect_to%252525252525253Dhttps%25252525252525253A%25252525252525252F%25252525252525252Fphuonghuynh.org%25252525252525252Fwp-admin%25252525252525252Findex.php%25252525252525253Fredirect_to%25252525252525253Dhttps%2525252525252525253A%2525252525252525252F%2525252525252525252Fphuonghuynh.org%2525252525252525252Fwp-admin%2525252525252525252Findex.php%2525252525252525253Fredirect_to%2525252525252525253Dhttps%252525252525252525253A%252525252525252525252F%252525252525252525252Fphuonghuynh.org%252525252525252525252Fwp-admin%252525252525252525252Findex.php%252525252525252525253Fredirect_to%252525252525252525253Dhttps%25252525252525252525253A%25252525252525252525252F%25252525252525252525252Fphuonghuynh.org%25252525252525252525252Fwp-admin%25252525252525252525252Findex.php%25252525252525252525253Fredirect_to%25252525252525252525253Dhttps%2525252525252525252525253A%2525252525252525252525252F%2525252525252525252525252Fphuonghuynh.org%2525252525252525252525252Fwp-admin%2525252525252525252525252Findex.php%2525252525252525252525253Fredirect_to%2525252525252525252525253Dhttps%252525252525252525252525253A%252525252525252525252525252F%252525252525252525252525252Fphuonghuynh.org%252525252525252525252525252Fwp-admin%252525252525252525252525252Findex.php%252525252525252525252525253Fredirect_to%252525252525252525252525253Dhttps%25252525252525252525252525253A%25252525252525252525252525252F%25252525252525252525252525252Fphuonghuynh.org%25252525252525252525252525252Fwp-admin%25252525252525252525252525252Findex.php%25252525252525252525252525253Fredirect_to%25252525252525252525252525253Dhttps%2525252525252525252525252525253A%2525252525252525252525252525252F%2525252525252525252525252525252Fphuonghuynh.org%2525252525252525252525252525252Fwp-admin%2525252525252525252525252525252Findex.php%2525252525252525252525252525253Fredirect_to%2525252525252525252525252525253Dhttps%252525252525252525252525252525253A%252525252525252525252525252525252F%252525252525252525252525252525252Fphuonghuynh.org%252525252525252525252525252525252Fwp-admin%252525252525252525252525252525252Findex.php%252525252525252525252525252525253Fredirect_to%252525252525252525252525252525253Dhttps%25252525252525252525252525252525253A%25252525252525252525252525252525252F%25252525252525252525252525252525252Fphuonghuynh.org%25252525252525252525252525252525252Fwp-admin%25252525252525252525252525252525252Findex.php%25252525252525252525252525252525253Fredirect_to%25252525252525252525252525252525253Dhttps%2525252525252525252525252525252525253A%2525252525252525252525252525252525252F%2525252525252525252525252525252525252Fphuonghuynh.org%2525252525252525252525252525252525252Fwp-admin%2525252525252525252525252525252525252Findex.php%2525252525252525252525252525252525253Fredirect_to%2525252525252525252525252525252525253Dhttps%252525252525252525252525252525252525253A%252525252525252525252525252525252525252F%252525252525252525252525252525252525252Fphuonghuynh.org%252525252525252525252525252525252525252Fwp-admin%252525252525252525252525252525252525252Findex.php%252525252525252525252525252525252525253Fredirect_to%252525252525252525252525252525252525253Dhttps%25252525252525252525252525252525252525253A%25252525252525252525252525252525252525252F%25252525252525252525252525252525252525252Fphuonghuynh.org%25252525252525252525252525252525252525252Fwp-admin%25252525252525252525252525252525252525252Findex.php%25252525252525252525252525252525252525253Fredirect_to%25252525252525252525252525252525252525253Dhttps%2525252525252525252525252525252525252525253A%2525252525252525252525252525252525252525252F%2525252525252525252525252525252525252525252Fphuonghuynh.org%2525252525252525252525252525252525252525252Fwp-admin%2525252525252525252525252525252525252525252Findex.php%2525252525252525252525252525252525252525253Fredirect_to%2525252525252525252525252525252525252525253Dhttps%252525252525252525252525252525252525252525253A%252525252525252525252525252525252525252525252F%252525252525252525252525252525252525252525252Fphuonghuynh.org%252525252525252525252525252525252525252525252Fwp-admin%252525252525252525252525252525252525252525252Findex.php%252525252525252525252525252525252525252525253Fredirect_to%252525252525252525252525252525252525252525253Dhttps%25252525252525252525252525252525252525252525253A%25252525252525252525252525252525252525252525252F%25252525252525252525252525252525252525252525252Fphuonghuynh.org%25252525252525252525252525252525252525252525252Fwp-admin%25252525252525252525252525252525252525252525252Findex.php%25252525252525252525252525252525252525252525253Fredirect_to%25252525252525252525252525252525252525252525253Dhttps%2525252525252525252525252525252525252525252525253A%2525252525252525252525252525252525252525252525252F%2525252525252525252525252525252525252525252525252Fphuonghuynh.org%2525252525252525252525252525252525252525252525252Fwp-admin%2525252525252525252525252525252525252525252525252Findex.php%2525252525252525252525252525252525252525252525253Fredirect_to%2525252525252525252525252525252525252525252525253Dhttps%252525252525252525252525252525252525252525252525253A%252525252525252525252525252525252525252525252525252F%252525252525252525252525252525252525252525252525252Fphuonghuynh.org%252525252525252525252525252525252525252525252525252Fwp-admin%252525252525252525252525252525252525252525252525252Findex.php%252525252525252525252525252525252525252525252525253Fredirect_to%252525252525252525252525252525252525252525252525253Dhttps%25252525252525252525252525252525252525252525252525253A%25252525252525252525252525252525252525252525252525252F%25252525252525252525252525252525252525252525252525252Fphuonghuynh.org%25252525252525252525252525252525252525252525252525252Fwp-admin%25252525252525252525252525252525252525252525252525252Findex.php%25252525252525252525252525252525252525252525252525253Fredirect_to%25252525252525252525252525252525252525252525252525253Dhttps%2525252525252525252525252525252525252525252525252525253A%2525252525252525252525252525252525252525252525252525252F%2525252525252525252525252525252525252525252525252525252Fphuonghuynh.org%2525252525252525252525252525252525252525252525252525252Fwp-admin%2525252525252525252525252525252525252525252525252525252Findex.php%2525252525252525252525252525252525252525252525252525253Fredirect_to%2525252525252525252525252525252525252525252525252525253Dhttps%252525252525252525252525252525252525252525252525252525253A%252525252525252525252525252525252525252525252525252525252F%252525252525252525252525252525252525252525252525252525252Fphuonghuynh.org%252525252525252525252525252525252525252525252525252525252Fwp-admin%252525252525252525252525252525252525252525252525252525252Findex.php%252525252525252525252525252525252525252525252525252525253Fredirect_to%252525252525252525252525252525252525252525252525252525253Dhttps%25252525252525252525252525252525252525252525252525252525253A%25252525252525252525252525252525252525252525252525252525252F%25252525252525252525252525252525252525252525252525252525252Fphuonghuynh.org%25252525252525252525252525252525252525252525252525252525252Fwp-admin%25252525252525252525252525252525252525252525252525252525252F
Could you check for this?
cmdntd
(cmdntd)
November 4, 2021, 11:20am
10
Thank you.
So, could I disable this option to setup this for each site in my network?
Why do you not support for this?
angus
(Angus McLeod)
November 4, 2021, 11:56am
11
If your wordpress is a multisite then the DiscourseConnect Client tab will not be available at all.
Because Multisite setups change how routes are handled, opening up various potential issues with the route handling required for using Discourse as the identity provider. We may revisit this at some point, but it’s not currently a priority.
If you’re considering integrating Discourse users with multiple Wordpress sites I suggest you consider a dedicated identity solution such as auth0.com , which works with both Wordpress and Discourse out of the box.
cmdntd
(cmdntd)
November 4, 2021, 12:03pm
12
It’s a pity. At the former version, I just set this option for every site ok. It seems lost in current.
Multisite has many users in network, I think it makes forum have more users in the way that this plugin could be developed.
angus
(Angus McLeod)
November 4, 2021, 12:11pm
13
@simon may correct me, but I don’t believe the WP Discourse plugin has ever supported using Discourse as the identity provider to a Wordpress Multisite.
cmdntd
(cmdntd)
November 6, 2021, 4:52pm
14
Hi again, as I requested at
My response here also covers this enquiry
Could you back to last repo of this issue for plugin, please?
I need this very much to set manually for every site with tab “Discourseconnect client”. I tested it, and it is ok for set every site in network manually.
angus
(Angus McLeod)
November 8, 2021, 7:00am
15
As mentioned a number of times now, the WP Discourse plugin does not, and has never, supported using Discourse as the DiscourseConnect provider on multisite instances.
Moreover, the way DiscourseConnect (previously SSO) works in WP Discourse has not changed for some time. There is nothing to roll back to.
I’m sorry, but If you have issues on your site that you’ve created by somehow trying to attempt this configuration (how, I don’t know, as the tab is not available on multisite instances) you’ll need to either resolve it yourself or hire someone to do it.
We don’t, and have never, supported using some kind of workaround for using the plugin in this fashion.
cmdntd
(cmdntd)
November 8, 2021, 7:56am
16
Well, I will check my site again.
Thank you because of be pantient to answer me.
1 Like