[PR #1326] [CLOSED] [FEAT] Login by social providers (Google for now) #3651

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/1326
Author: @giovaborgogno
Created: 5/9/2024
Status: Closed

Base: masterHead: login_by_social_providers


📝 Commits (7)

  • c761e3f login_by_social_providers
  • a34152f lint applied
  • 6fc2724 yarn.lock fixed
  • 9705a29 use theme black on google sign in button
  • 51c5998 Merge branch 'master' into login_by_social_providers
  • ca110dd Merge branch 'master' into login_by_social_providers
  • f37385b Merge branch 'master' into login_by_social_providers

📊 Changes

19 files changed (+512 additions, -8 deletions)

View changed files

📝 docker/.env.example (+7 -1)
📝 frontend/package.json (+1 -0)
📝 frontend/src/AuthContext.jsx (+17 -4)
📝 frontend/src/components/Modals/Password/MultiUserAuth.jsx (+8 -1)
frontend/src/components/Modals/Password/SocialProviders.jsx (+63 -0)
📝 frontend/src/models/system.js (+14 -0)
📝 frontend/src/pages/Admin/System/index.jsx (+100 -0)
📝 frontend/yarn.lock (+5 -0)
📝 server/.env.example (+6 -0)
📝 server/endpoints/admin.js (+6 -0)
📝 server/endpoints/system.js (+135 -0)
📝 server/models/systemSettings.js (+11 -0)
📝 server/models/user.js (+15 -0)
📝 server/package.json (+1 -0)
server/prisma/migrations/20240509170128_init/migration.sql (+20 -0)
📝 server/prisma/schema.prisma (+2 -1)
📝 server/utils/helpers/updateENV.js (+6 -0)
server/utils/socialProviders/index.js (+56 -0)
📝 server/yarn.lock (+39 -1)

📄 Description

Pull Request Type

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

Relevant Issues

resolves #1193

What is in this change?

This PR introduces the ability for users to log in using their Google accounts, providing the flexibility for administrators to enable or disable this feature. Additionally, administrators can restrict login access to a specific organization's domain. The implementation is designed with a modular structure, allowing for easy integration of additional authentication providers in the future.

Additional Information

image

After enable login by google:

image

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/1326 **Author:** [@giovaborgogno](https://github.com/giovaborgogno) **Created:** 5/9/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `login_by_social_providers` --- ### 📝 Commits (7) - [`c761e3f`](https://github.com/Mintplex-Labs/anything-llm/commit/c761e3fe01c4cd4155b2d5971f8001bd229987c7) login_by_social_providers - [`a34152f`](https://github.com/Mintplex-Labs/anything-llm/commit/a34152fdc17c77167fa10a50299ca4a37a10e515) lint applied - [`6fc2724`](https://github.com/Mintplex-Labs/anything-llm/commit/6fc2724be822e2bf0c6ee8d8927c0030091d5f2b) yarn.lock fixed - [`9705a29`](https://github.com/Mintplex-Labs/anything-llm/commit/9705a2915cd50a9f492023d432495c4d2f72a894) use theme black on google sign in button - [`51c5998`](https://github.com/Mintplex-Labs/anything-llm/commit/51c59980ebbf6678f939e56632dfd697f582b86e) Merge branch 'master' into login_by_social_providers - [`ca110dd`](https://github.com/Mintplex-Labs/anything-llm/commit/ca110dd8a7be9538337a7b2fce85019d45a19ca2) Merge branch 'master' into login_by_social_providers - [`f37385b`](https://github.com/Mintplex-Labs/anything-llm/commit/f37385b8ac8de8c2c1104531634cdf757a5b8b48) Merge branch 'master' into login_by_social_providers ### 📊 Changes **19 files changed** (+512 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `docker/.env.example` (+7 -1) 📝 `frontend/package.json` (+1 -0) 📝 `frontend/src/AuthContext.jsx` (+17 -4) 📝 `frontend/src/components/Modals/Password/MultiUserAuth.jsx` (+8 -1) ➕ `frontend/src/components/Modals/Password/SocialProviders.jsx` (+63 -0) 📝 `frontend/src/models/system.js` (+14 -0) 📝 `frontend/src/pages/Admin/System/index.jsx` (+100 -0) 📝 `frontend/yarn.lock` (+5 -0) 📝 `server/.env.example` (+6 -0) 📝 `server/endpoints/admin.js` (+6 -0) 📝 `server/endpoints/system.js` (+135 -0) 📝 `server/models/systemSettings.js` (+11 -0) 📝 `server/models/user.js` (+15 -0) 📝 `server/package.json` (+1 -0) ➕ `server/prisma/migrations/20240509170128_init/migration.sql` (+20 -0) 📝 `server/prisma/schema.prisma` (+2 -1) 📝 `server/utils/helpers/updateENV.js` (+6 -0) ➕ `server/utils/socialProviders/index.js` (+56 -0) 📝 `server/yarn.lock` (+39 -1) </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 #1193 ### What is in this change? This PR introduces the ability for users to log in using their Google accounts, providing the flexibility for administrators to enable or disable this feature. Additionally, administrators can restrict login access to a specific organization's domain. The implementation is designed with a modular structure, allowing for easy integration of additional authentication providers in the future. ### Additional Information ![image](https://github.com/Mintplex-Labs/anything-llm/assets/101715111/eb7b88df-37e1-4420-91cc-606a8eea2155) After enable login by google: ![image](https://github.com/Mintplex-Labs/anything-llm/assets/101715111/53f5781e-a5a2-4b7b-b3c4-e948a5c61463) ### 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:13 -05:00
yindo closed this issue 2026-02-22 18:34:13 -05:00
yindo changed title from [PR #1326] [FEAT] Login by social providers (Google for now) to [PR #1326] [CLOSED] [FEAT] Login by social providers (Google for now) 2026-06-05 15:14:32 -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#3651