Skip to content

Single Sign-On

liwan 1.7 adds single sign-on (SSO) through Google, Microsoft Entra ID, and generic OpenID Connect providers. This is the first release with SSO support. More advanced authentication and account-management features are planned for later releases.

liwan supports one external provider at a time. Password sign-in remains available after SSO is enabled.

Set base_url to the public URL of your liwan instance. liwan uses this value to generate the provider callback URL:

https://liwan.example.com/api/dashboard/auth/external/callback

Register the exact callback URL shown under Settings > Authentication with your provider.

  1. Create OAuth credentials for a web application by following Google’s OAuth 2.0 setup instructions.
  2. Add the callback URL shown by liwan as an authorized redirect URI.
  3. In liwan, open Settings > Authentication and select Google.
  4. Enter the client ID and client secret.
  5. Optional: set Google Workspace domain to allow only accounts managed by that domain.
  • Allow new users creates a liwan user after the first successful provider sign-in. New users receive the regular User role and have no project assignments.
  • Reuse provider session lets the provider use an existing browser session. Disable it to request the provider’s sign-in prompt each time.
  • Display name controls the label shown on the external sign-in button.

When automatic user creation is disabled, only external identities that were previously created can sign in. liwan does not automatically link an external identity to a password-based user with the same name.

Save the settings, enable external authentication, then test sign-in in a private browser window before signing out of the administrator account.