[PR #4394] [MERGED] Add support for SIMPLE_SSO_NO_LOGIN_REDIRECT config setting #4606

Closed
opened 2026-02-22 18:36:10 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/4394
Author: @timothycarambat
Created: 9/17/2025
Status: Merged
Merged: 9/17/2025
Merged by: @timothycarambat

Base: masterHead: 4277-sso-redirect-url


📝 Commits (6)

  • b76a15d Add support for SIMPLE_SSO_NO_LOGIN_REDIRECT config setting
  • 1349736 Merge branch 'master' into 4277-sso-redirect-url
  • f8958bc reset changes on simple page
  • 7bc1d50 Merge branch '4277-sso-redirect-url' of github.com:Mintplex-Labs/anything-llm into 4277-sso-redirect-url
  • cfdda96 redirect at root
  • 9655387 remove paths change

📊 Changes

6 files changed (+40 additions, -3 deletions)

View changed files

📝 docker/.env.example (+1 -0)
📝 frontend/src/hooks/useSimpleSSO.js (+3 -1)
📝 frontend/src/pages/Login/index.jsx (+10 -2)
📝 server/.env.example (+1 -0)
📝 server/models/systemSettings.js (+24 -0)
📝 server/utils/helpers/updateENV.js (+1 -0)

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

resolves #4277
closes #4283

What is in this change?

  • Allow user to set SIMPLE_SSO_NO_LOGIN_REDIRECT which will redirect users to a defined URL, typically a login page for SIMPLE_SSO to provision a token.
  • This allows the user to not be stuck on the AnythingLLM instance homepage with an "Invalid token" error.
  • This does not impact the error rendering pages and will only fire when visting the / URL while unauthenticated.

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/4394 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 9/17/2025 **Status:** ✅ Merged **Merged:** 9/17/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `4277-sso-redirect-url` --- ### 📝 Commits (6) - [`b76a15d`](https://github.com/Mintplex-Labs/anything-llm/commit/b76a15d6049092f37cd1110eef390ca9d4504275) Add support for `SIMPLE_SSO_NO_LOGIN_REDIRECT` config setting - [`1349736`](https://github.com/Mintplex-Labs/anything-llm/commit/1349736acb61afd4719101b37a6765ad488bc678) Merge branch 'master' into 4277-sso-redirect-url - [`f8958bc`](https://github.com/Mintplex-Labs/anything-llm/commit/f8958bc3c4aea0e20c0201cdfa078e95c927b088) reset changes on simple page - [`7bc1d50`](https://github.com/Mintplex-Labs/anything-llm/commit/7bc1d508f53a37c068ab64d4d84686863ae86c57) Merge branch '4277-sso-redirect-url' of github.com:Mintplex-Labs/anything-llm into 4277-sso-redirect-url - [`cfdda96`](https://github.com/Mintplex-Labs/anything-llm/commit/cfdda962ad1cc62155183fd5de2a8ad5b0bdfbb6) redirect at root - [`9655387`](https://github.com/Mintplex-Labs/anything-llm/commit/96553871df2e85c9634098682eef357f42139329) remove paths change ### 📊 Changes **6 files changed** (+40 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `docker/.env.example` (+1 -0) 📝 `frontend/src/hooks/useSimpleSSO.js` (+3 -1) 📝 `frontend/src/pages/Login/index.jsx` (+10 -2) 📝 `server/.env.example` (+1 -0) 📝 `server/models/systemSettings.js` (+24 -0) 📝 `server/utils/helpers/updateENV.js` (+1 -0) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #4277 closes #4283 ### What is in this change? - Allow user to set `SIMPLE_SSO_NO_LOGIN_REDIRECT` which will redirect users to a defined URL, typically a login page for SIMPLE_SSO to provision a token. - This allows the user to not be stuck on the AnythingLLM instance homepage with an "Invalid token" error. - This does not impact the error rendering pages and will only fire when visting the `/` URL while unauthenticated. <!-- Describe the changes in this PR that are impactful to the repo. --> ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated - [x] I have tested my code functionality - [x] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:36:10 -05:00
yindo closed this issue 2026-02-22 18:36:10 -05:00
yindo changed title from [PR #4394] Add support for `SIMPLE_SSO_NO_LOGIN_REDIRECT` config setting to [PR #4394] [MERGED] Add support for `SIMPLE_SSO_NO_LOGIN_REDIRECT` config setting 2026-06-05 15:19:25 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4606