Habilitar parcialmente la opción de inicio de sesión

Actualmente estamos integrando nuestra comunidad de Discourse con un servidor de Discord. Estamos utilizando el plugin Discourse Bot. Sin embargo, requiere habilitar el inicio de sesión con Discord para funcionar.

Queremos seguir utilizando nuestra solución personalizada de OAuth2, pero al mismo tiempo permitir la vinculación de cuentas de Discord.

¿Existe alguna forma de habilitar la URL /auth/discord sin activar realmente la opción de inicio de sesión?

1 me gusta

The easy thing here is just hidding the Discord button on the login modal with CSS.

3 Me gusta

Yeah, but this is not what we actually want to achieve. We already did that. :sweat_smile:

By hiding the button with CSS, you still force the modal to appear. Previosuly, by clicking the “Log In” button, it redirected to our OAuth2 server, and user was logged in with a single flow. Now, they see a modal and have to click in “with OAuth2”.
Is it possible to forward users to the OAuth2 when clicking “Log In”, having 2 auth options available?


With two options enabled, and hidding with CSS, users see this:

Ideally, they should be redirected to the OAuth2 flow as soon as they click the “Log In” button.

1 me gusta

Me and @Roman worked in a solution to this exact problem years ago. It wasn’t open source because it is quite a niche use case, but here it is:

4 Me gusta

Thank you! That is exactly what we were looking for. :+1:

1 me gusta

This topic was automatically closed 0 minutes after the last reply. New replies are no longer allowed.