open/docs/zh_CN/guide/config-casdoor.md
QunSheng Lin e220b36391
Some checks failed
Build / build_app (push) Has been cancelled
Build / build (386, linux) (push) Has been cancelled
Build / build (amd64, darwin) (push) Has been cancelled
Build / build (amd64, linux) (push) Has been cancelled
Build / build (arm, 5, linux) (push) Has been cancelled
Build / build (arm, 6, linux) (push) Has been cancelled
Build / build (arm, 7, linux) (push) Has been cancelled
Build / build (arm64, darwin) (push) Has been cancelled
Build / build (arm64, linux) (push) Has been cancelled
Build / build (loong64, linux) (push) Has been cancelled
Build / build (mips, linux) (push) Has been cancelled
Build / build (mips64, linux) (push) Has been cancelled
Build / build (mips64le, linux) (push) Has been cancelled
Build / build (mipsle, linux) (push) Has been cancelled
Build / build (riscv64, linux) (push) Has been cancelled
Build / docker-build (push) Has been cancelled
Build Documents / build (push) Has been cancelled
nginx_ui_cn
2025-02-28 19:15:32 +08:00

46 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Casdoor
本节介绍如何配置 Casdoor 作为 Nginx UI 的身份验证提供程序,该功能由 @Jraaay 贡献。
Casdoor 是一个强大的、全面的身份认证解决方案,支持 OAuth 2.0、SAML 2.0、LDAP、AD 和多种社交登录方式。通过集成 CasdoorNginx UI 可以利用这些功能来提升安全性和用户体验。
## Endpoint
- 类型:`string`
这是 Casdoor 服务器的 URL。您需要确保 Nginx UI 可以访问此 URL。
## ExternalUrl
- 类型:`string`
- 版本: `>= v2.0.0-beta.42`
这是 Casdoor 服务器的外部 URL。它用于生成重定向 URI在不配置次选项的情况下将使用 Endpoint 作为重定向 URI 的基本 URL。
## ClientId
- 类型:`string`
这是 Casdoor 为您的应用生成的客户端 ID。它用于在身份验证过程中标识您的应用。
## ClientSecret
- 类型:`string`
这是 Casdoor 为您的应用生成的客户端密钥。它是保持您的应用安全所必需的。
## CertificatePath
- 类型:`string`
这是用于身份验证过程中的证书的路径。确保它是有效和可信的。
## Organization
- 类型:`string`
这是您在 Casdoor 中设置的组织名称。Casdoor 将使用此信息来处理身份验证请求。
## Application
- 类型:`string`
这是您在 Casdoor 中创建的应用名称。
## RedirectUri
- 类型:`string`
这是用户在成功登录或授权后重定向到的 URI。它应与 Casdoor 应用配置中的重定向 URI 一致。