Passer au contenu principal

Configuration de l'application

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.

note

Par exemple, je souhaite configurer mon Forum en utilisant 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.

Organisation

Puisque cette organisation est nommée my_organization, je la choisis dans le menu déroulant.

Sélectionner l'organisation

Ensuite, je veux que mes utilisateurs puissent utiliser Casdoor pour l'authentification lorsqu'ils s'inscrivent. I fill in the redirect URL here as https://your-site-url.com/callback.

prudence

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.

Compréhension approfondie

Pour que le processus d'authentification fonctionne, les étapes détaillées sont les suivantes :

  1. Les utilisateurs envoient une demande à Casdoor.
  2. Casdoor utilise le Client ID et le Client Secret pour s'authentifier auprès de GitHub, Google ou d'autres fournisseurs.
  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 informe ensuite l'application du succès de l'authentification. Cela signifie que l'URL de rappel Casdoor doit être l'URL de rappel de votre application, qui est 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.

conseil

Si vous souhaitez faire une configuration plus personnalisée des méthodes de connexion de l'application, comme désactiver une certaine méthode de connexion ou éteindre une certaine méthode de connexion, vous pouvez vous référer au Méthodes de connexion