Plugin do Wordpress não redireciona automaticamente para o login do Discourse

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?

what happens when you go to < yoursite >/wp-login.php

It’s the same.
That is wp login page, it can not redirect to discourse login.

Is the plug-in “network activated” ?

I do not understand your question, but this is my settings in network:

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.

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.

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?

Please note the above.

Thank you.
So, could I disable this option to setup this for each site in my network?

Why do you not support for this?

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.

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.

@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.

Hi again, as I requested at

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.

Conforme mencionado várias vezes, o plugin WP Discourse não suporta, e nunca suportou, o uso do Discourse como provedor do DiscourseConnect em instâncias multisite.

Além disso, a forma como o DiscourseConnect (anteriormente SSO) funciona no WP Discourse não mudou há algum tempo. Não há nada para reverter.

Sinto muito, mas se você tiver problemas em seu site que criou ao tentar essa configuração (como, não sei, já que a aba não está disponível em instâncias multisite), você precisará resolvê-los sozinho ou contratar alguém para fazê-lo.

Nós não suportamos, e nunca suportamos, o uso de algum tipo de solução alternativa para usar o plugin dessa forma.

Bem, vou verificar meu site novamente.
Obrigado por ser paciente ao me responder.

1 curtida