[PR #2553] [MERGED] Simple SSO feature for login flows from external services #4028

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/2553
Author: @timothycarambat
Created: 10/29/2024
Status: Merged
Merged: 10/29/2024
Merged by: @timothycarambat

Base: masterHead: 2552-simple-sso


📝 Commits (2)

  • f5a0994 Simple SSO feature for login flows from external services
  • 7ab35a7 linting

📊 Changes

13 files changed (+425 additions, -2 deletions)

View changed files

📝 docker/.env.example (+5 -1)
📝 frontend/src/App.jsx (+3 -0)
📝 frontend/src/models/system.js (+24 -0)
frontend/src/pages/Login/SSO/simple.jsx (+54 -0)
📝 server/.env.example (+5 -1)
📝 server/endpoints/api/userManagement/index.js (+60 -0)
📝 server/endpoints/system.js (+45 -0)
server/models/temporaryAuthToken.js (+104 -0)
server/prisma/migrations/20241029203722_init/migration.sql (+12 -0)
📝 server/prisma/schema.prisma (+13 -0)
📝 server/swagger/openapi.json (+59 -0)
📝 server/utils/helpers/updateENV.js (+2 -0)
server/utils/middleware/simpleSSOEnabled.js (+39 -0)

📄 Description

Pull Request Type

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

Relevant Issues

resolves #2552

What is in this change?

  • Enables issuance of temporary auth tokens that can be used via browser link to auto-login a specific user into AnythingLLM. This makes cross-authentication from an external service trivial to implement as auth can be handled elsewhere, but the user still gets access to AnythingLLM.

Documentation: https://github.com/Mintplex-Labs/anythingllm-docs/pull/109

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/2553 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 10/29/2024 **Status:** ✅ Merged **Merged:** 10/29/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `2552-simple-sso` --- ### 📝 Commits (2) - [`f5a0994`](https://github.com/Mintplex-Labs/anything-llm/commit/f5a0994cd2c20bf68ae25fbacefd20cc28943dcf) Simple SSO feature for login flows from external services - [`7ab35a7`](https://github.com/Mintplex-Labs/anything-llm/commit/7ab35a7babee0bf780e9ce5c0f6b008c73d0c70c) linting ### 📊 Changes **13 files changed** (+425 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `docker/.env.example` (+5 -1) 📝 `frontend/src/App.jsx` (+3 -0) 📝 `frontend/src/models/system.js` (+24 -0) ➕ `frontend/src/pages/Login/SSO/simple.jsx` (+54 -0) 📝 `server/.env.example` (+5 -1) 📝 `server/endpoints/api/userManagement/index.js` (+60 -0) 📝 `server/endpoints/system.js` (+45 -0) ➕ `server/models/temporaryAuthToken.js` (+104 -0) ➕ `server/prisma/migrations/20241029203722_init/migration.sql` (+12 -0) 📝 `server/prisma/schema.prisma` (+13 -0) 📝 `server/swagger/openapi.json` (+59 -0) 📝 `server/utils/helpers/updateENV.js` (+2 -0) ➕ `server/utils/middleware/simpleSSOEnabled.js` (+39 -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 #2552 ### What is in this change? - Enables issuance of temporary auth tokens that can be used via browser link to auto-login a specific user into AnythingLLM. This makes cross-authentication from an external service trivial to implement as auth can be handled elsewhere, but the user still gets access to AnythingLLM. <!-- Describe the changes in this PR that are impactful to the repo. --> Documentation: https://github.com/Mintplex-Labs/anythingllm-docs/pull/109 ### 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:34:59 -05:00
yindo closed this issue 2026-02-22 18:34:59 -05:00
yindo changed title from [PR #2553] Simple SSO feature for login flows from external services to [PR #2553] [MERGED] Simple SSO feature for login flows from external services 2026-06-05 15:16:27 -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#4028