Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Restrict registration to certain domains (for small business use) #1555

Closed
1 task done
darkBuddha opened this issue Jan 15, 2024 · 8 comments · Fixed by #1562
Closed
1 task done

Enhancement: Restrict registration to certain domains (for small business use) #1555

darkBuddha opened this issue Jan 15, 2024 · 8 comments · Fixed by #1562
Assignees
Labels
enhancement New feature or request

Comments

@darkBuddha
Copy link
Sponsor

darkBuddha commented Jan 15, 2024

What features would you like to see added?

Hi, it would be great, if e-mail registration could be restricted to company domains.

More details

This prevents unauthorized users to register, and should be fairly trivial to add. Boosting business use is a good idea for any open-source project.

Which components are impacted by your request?

No response

Pictures

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@darkBuddha darkBuddha added the enhancement New feature or request label Jan 15, 2024
@danny-avila
Copy link
Owner

I agree it's somewhat trivial to add but why not use OpenID for this use case?

@darkBuddha
Copy link
Sponsor Author

Smaller companies w/o IT focus might not have proper IDM/SSO, but most have business e-mail addresses. (facing this situation currently, not sure how to solve best... domain restriction would be simple + effective)

🙏🏻

@berry-13 berry-13 self-assigned this Jan 15, 2024
@darkBuddha darkBuddha changed the title Enhancement: Restrict registration to certain domains (for enterprise use) Enhancement: Restrict registration to certain domains (for small business use) Jan 16, 2024
@berry-13 berry-13 linked a pull request Jan 17, 2024 that will close this issue
9 tasks
@danny-avila
Copy link
Owner

Now implemented through the librechat.yaml config file: https://docs.librechat.ai/install/configuration/custom_config.html#registration-object-structure

@darkBuddha
Copy link
Sponsor Author

Thank you so much 🙏🏻

@darkBuddha
Copy link
Sponsor Author

darkBuddha commented Feb 5, 2024

@danny-avila users have to click on a "confirm email" link on registration, right?

https://docs.librechat.ai/install/configuration/dotenv.html#registration-and-login

@fuegovic
Copy link
Collaborator

fuegovic commented Feb 5, 2024

@danny-avila clients have to click on a "confirm email" link on registering, right?

https://docs.librechat.ai/install/configuration/dotenv.html#registration-and-login

There's no confirmation email sent to the users on registration

@danny-avila
Copy link
Owner

Yeah there is not a lot of email service through this app, with the only exception made for password reset for the simple security that offers.

A bare-bones implementation of that would be good for a future PR but that is not yet implemented nor a priority.

Leaving this as reference of a very simple example to use as reference: https://blog.bitsrc.io/email-confirmation-with-react-257e5d9de725

@darkBuddha
Copy link
Sponsor Author

darkBuddha commented Feb 5, 2024

There's no confirmation email sent to the users on registration

That explains why there is no mention of it in the documentation.

Added #1728, so the idea doesn't get lost.

Thank you gents 🙏🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants