Single sign-on (SSO)
Overview
With multiple applications in one organization, enable single sign-on (SSO) so users sign in once and are automatically signed in for other apps in the same org.
To enable SSO:
- Set the Home URL (application home or login page).
- Enable Auto Sign-In on the application.
- Implement Silent Sign-In on your app’s home page so it can complete login when opened with the SSO link.
Without auto sign-in, users see a picker to choose the current user or another account. With auto sign-in, the already-signed-in user is used and the picker is skipped.
Configuration
- Set Home to your application’s home page or login URL.
2. Enable Auto Sign-In.

Silent sign-in
SSO works by opening your app’s home URL with a query parameter. Your app must detect that and trigger login. The casdoor-react-sdk provides a SilentSignin component; see use-in-react.
Flow: The link to your home page includes silentSignin=1. On load, if silentSignin === 1, render the SilentSignin component so it starts the login; with auto sign-in enabled, the user is signed in without extra clicks. Silent sign-in only runs when the user’s organization matches the application, avoiding duplicate or wrong sign-ins.
Popup sign-in
Popup sign-in opens a small window for Casdoor login; after success it posts the auth result to the opener and closes. Use popupSignin() from casdoor-js-sdk; demo: casdoor-nodejs-react-example. The home URL is called with popup=1; Casdoor sends code and state to the opener, and the main window exchanges them for a token via the SDK.