跳到主内容

应用程序配置

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.

备注

例如,我想要使用 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.

选择组织

这个组织命名为 my_organization, 我从下拉菜单中选择到它。

从下拉菜单中选择组织

接下来,我希望我的用户在注册时能够使用 Casdoor 作为认证。 I fill in the redirect URL here as https://your-site-url.com/callback.

:::警告

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.

进一步了解

为了使认证过程发挥作用,详细步骤如下:

  1. 用户将请求发送到Casdoor。
  2. Casdoor 使用 Client ID(客户端ID) 和 Client Secret (客户端密钥)获取GitHub 、谷歌或其他供应商的身份验证。
  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 将认证成功通知应用程序。 这意味着 Casdoor 回调 URL 应该是您的应用程序的回调 URL ,即 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.

:::提示

如果您想对应用程序的登录方式进行更个性化的配置,例如禁用某种登录方式或关闭某种登录方式,您可以参考登录方式

:::