Saltar al contenido principal

Configuración de la Aplicación

After you deploy Casdoor on your server and set up your organization, you can now configure your applications!

Let's see how to configure your application's authentication using Casdoor.

nota

Por ejemplo, quiero configurar mi Foro usando Casnode.

I create my application and fill in the necessary configuration details.

Select the organization I created so that users in this organization can access this application.

Organización

Dado que esta organización se llama my_organization, la elijo del menú desplegable.

Seleccionar Organización

A continuación, quiero que mis usuarios puedan usar Casdoor para autenticarse cuando se registren. I fill in the redirect URL here as https://your-site-url.com/callback.

precaución

Please note that the callback URL in the provider application should be Casdoor's callback URL, while the Redirect URL in Casdoor should be your website's callback URL.

Comprensión Adicional

Para que el proceso de autenticación funcione, los pasos detallados son los siguientes:

  1. Los usuarios envían una solicitud a Casdoor.
  2. Casdoor utiliza el Client ID y Client Secret para autenticarse con GitHub, Google u otros proveedores.
  3. If the authentication is successful, GitHub calls back to Casdoor to notify it about the successful authentication. Therefore, the GitHub authorization callback URL should be your Casdoor callback URL, which is http://your-casdoor-url.com/callback.
  4. Casdoor luego informa a la aplicación sobre el éxito de la autenticación. Esto significa que la URL de callback de Casdoor debe ser la URL de callback de tu aplicación, que es http://your-site-url.com/callback.

Verification Code Settings

You can configure the Code resend timeout to control how long users must wait before requesting another verification code via email or SMS. Set the value in seconds (default is 60). This setting determines the countdown timer duration shown to users on the login page. A value of 0 will use the global default.

consejo

Si quieres hacer una configuración más personalizada de los métodos de inicio de sesión de la aplicación, como deshabilitar un método de inicio de sesión o apagar un método de inicio de sesión, puedes consultar el Métodos de Inicio de Sesión