Skip to main content

CAPTCHA Providers Compared for Login Pages: reCAPTCHA, hCaptcha, Turnstile, GeeTest and Alibaba Cloud in Casdoor

· 8 min read
Yang Luo
Casdoor Maintainer

For most sign-in and sign-up pages on the global internet, Cloudflare Turnstile is the easiest pick: the free plan has no cap on challenges, and its default mode shows a checkbox only to risky visitors. If many of your users are in mainland China, use Alibaba Cloud Captcha or GeeTest instead, because Cloudflare says Turnstile is not supported there. If you need the captcha to work without any outside service, use the built-in image captcha of Casdoor. Casdoor supports all of these, plus Google reCAPTCHA (v2 and v3) and hCaptcha, as captcha providers, and you pick when the captcha appears per application.

Customize the Login Page in Casdoor: Custom Styling of the Authentication UI Without Forking

· 10 min read
Yang Luo
Casdoor Maintainer

Yes, Casdoor supports custom styling of its authentication UI, and you don't need to fork the frontend to get it. Every application has a UI Customization tab where you set the logo, favicon, background image, custom CSS for desktop and mobile, the position of the form, a side panel, footer HTML and a theme. Two tables, Signin items and Signup items, decide which fields the login and sign-up pages show, in which order, with which labels and placeholders. All of it is stored per application in the database, so one Casdoor instance can serve many differently branded login pages, and organization admins can edit their own pages within safe limits.

Jenkins OIDC, Gitea OIDC and Grafana SSO with Casdoor: One Login for a Self-Hosted DevOps Stack

· 10 min read
Yang Luo
Casdoor Maintainer

Every tool in a typical self-hosted DevOps stack can act as an OpenID Connect client: Gitea and Argo CD speak OIDC natively, Jenkins does through the oic-auth plugin, Grafana and Portainer through generic OAuth 2.0, and MinIO, Harbor and GitLab through their OIDC settings. Point all of them at one Casdoor instance, give each tool its own Casdoor application, and put your people in Casdoor groups. Each tool then reads the groups claim and decides who is an administrator. This post lists the callback URL, the config keys and the group mapping for each tool, then covers the parts they share.

DingTalk, WeCom, Lark, Infoflow and WeChat OAuth Login with Casdoor

· 10 min read
Yang Luo
Casdoor Maintainer

Casdoor has built-in OAuth providers for DingTalk, WeCom (WeChat Work), Lark (Feishu), Baidu Infoflow and WeChat. You create an app in each vendor's developer console, paste its credentials into a Casdoor provider, and add the provider to your application. Casdoor runs the vendor flow (QR scan on a desktop, or sign-in inside the vendor's own client), fetches the corporate access token where the vendor needs one, and maps the vendor's user ID to a Casdoor user. Your application only talks OIDC to Casdoor and never sees a DingTalk header, a WeCom user_ticket or a WeChat unionid. For DingTalk, WeCom and Lark, a syncer can also import the whole org directory ahead of the first sign-in.

Email Provider for Casdoor Verification Codes: Brevo SMTP, Resend, SendGrid, ACS Email and SES

· 10 min read
Yang Luo
Casdoor Maintainer

Casdoor sends sign-up verification codes, password reset links and magic links through an Email provider. It has native API types for Resend, SendGrid and Azure Communication Services (ACS) Email, a Default SMTP type that works with any SMTP relay (your own server, Google Workspace, Microsoft 365, Brevo, Amazon SES), and a Custom HTTP Email type for any other HTTP API. If you want a free tier and a short setup, start with Resend or Brevo. If you already run on AWS or Azure, SES or ACS keeps billing in one place. Whichever you pick, the deliverability work is the same: a sender domain with SPF and DKIM that align with the From address.

How to Host Static Files on a CDN with Casdoor: S3, MinIO, Azure Blob and Other Storage Providers

· 10 min read
Yang Luo
Casdoor Maintainer

To host static files on a CDN, put them in object storage (Amazon S3, MinIO, Azure Blob Storage, Google Cloud Storage, Alibaba Cloud OSS or Tencent Cloud COS), make the CDN pull from that bucket as its origin, and hand out URLs on the CDN's domain. In Casdoor this is one setting: create a storage provider for the bucket and put the CDN address in its Domain field. Casdoor uploads avatars and other files through the provider's API and saves URLs that start with that domain. Casdoor's own frontend can come from a CDN as well, through frontendCdnUrl and staticBaseUrl in app.conf.

MailHog vs Mailpit: Testing Verification and Password Reset Emails with Casdoor

· 9 min read
Yang Luo
Casdoor Maintainer

MailHog and Mailpit are both fake SMTP servers for development: they accept every message, keep it, and show it in a web UI instead of delivering it. Both use the same default ports, SMTP on 1025 and the web UI and API on 8025, so the SMTP address is smtp://127.0.0.1:1025 and the inbox is at http://127.0.0.1:8025 for either one. The difference is maintenance: MailHog's last release, v1.0.1, came out in August 2020, while Mailpit released v1.33.0 on October 31, 2026. For a new project, use Mailpit. Casdoor sends to both through a plain SMTP provider, so you can test sign-up codes, password reset emails and magic links without a real mail account.

MCP OAuth Redirect URIs for Cursor, Claude and ChatGPT: Registering MCP Clients in Casdoor

· 8 min read
Yang Luo
Casdoor Maintainer

Every MCP client sends its own redirect URI when it signs in to an OAuth-protected MCP server. Cursor desktop uses http://localhost:8787/callback (releases before mid-2026 used cursor://anysphere.cursor-mcp/oauth/callback), Cursor on the web and Cursor Cloud Agents use https://www.cursor.com/agents/mcp/oauth/callback, claude.ai, Claude Desktop connectors, Claude mobile and Cowork use https://claude.ai/api/mcp/auth_callback, and ChatGPT uses https://chatgpt.com/connector_platform_oauth_redirect or a per-connection https://chatgpt.com/connector/oauth/<callback-id>. If you turn on dynamic client registration in Casdoor, you don't enter any of these: the clients register themselves or hand Casdoor a client ID metadata document. You add them to Redirect URLs only when you create a Casdoor application for a client by hand.

Nginx CAS Authentication and SSO: Protecting Any App Behind Nginx with Casdoor

· 11 min read
Yang Luo
Casdoor Maintainer

Open-source nginx has no CAS module, so "nginx CAS authentication" in practice means one of two setups. Either nginx asks an authentication service about every request through its auth_request module, and Casdoor answers (directly at /api/forward-auth, or through casdoor-forward-auth or OAuth2 Proxy), or the app behind nginx is itself a CAS client and talks to Casdoor's CAS server endpoints. If you can rebuild nginx, the Casdoor nginx module runs the login inside nginx, and if you'd rather not run nginx at all, Casdoor's site proxy can sit in front of the app. In every case the login page is Casdoor's, so one SSO session, one set of permissions and one MFA policy cover all the apps.

RP-Initiated Logout and SSO Logout in OpenID Connect: How Casdoor Signs Users Out

· 11 min read
Yang Luo
Casdoor Maintainer

Logging a user out of an OpenID Connect app takes more than deleting your own session cookie. The user is still signed in at the identity provider, so the next "Sign in" click goes straight through without a password, and the other apps that share that identity provider session stay signed in too. A proper logout has three parts: clear your app's local session, send the browser to the provider's end_session_endpoint (RP-initiated logout) so the provider session ends, and let the provider tell the other apps through back-channel logout. With Casdoor, the end-session endpoint is /api/logout, back-channel logout is configured per application, and refresh tokens can be revoked at /api/login/oauth/revoke.