Skip to content

Conversation

naaa760
Copy link
Contributor

@naaa760 naaa760 commented Aug 13, 2025

Pull Request Type

  • ✨ feat

Relevant Issues

resolves #4277

What is in this change?

  • Add new env SIMPLE_SSO_NO_LOGIN_REDIRECT_URL.
  • Expose setting via System.keys() and include in env dump.
  • Redirect unauthenticated users to this URL when SIMPLE_SSO_NO_LOGIN is enabled; fallback to /sso/simple.
  • Support absolute external URLs via window.location.replace.

Updated files:

  • server/models/systemSettings.js
  • server/utils/helpers/updateENV.js
  • frontend/src/hooks/useSimpleSSO.js
  • frontend/src/pages/Login/index.jsx

Additional Information

  • Backwards compatible; no behavior change unless the new env is set.
  • Example:
SIMPLE_SSO_ENABLED=1
SIMPLE_SSO_NO_LOGIN=1
SIMPLE_SSO_NO_LOGIN_REDIRECT_URL=https://middleware.example.com/start

@timothycarambat timothycarambat added the PR:needs review Needs review by core team label Sep 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR:needs review Needs review by core team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT]: Ability to set a redirect URL when SIMPLE_SSO_NO_LOGIN is enabled
2 participants