Skip to content

Add a Flag to Disable User Registration in PasswordUI and PasswordProvider #199

Open

Description

@daniel7byte

Description

It would be helpful to introduce a configuration flag that allows disabling user registration in both the PasswordUI and PasswordProvider.

Use Case

In corporate environments or intranet applications, user registration is often restricted to pre-approved or manually created accounts. Allowing open registration can be a security risk and is generally not desired in such setups.

Proposed Solution

Add a configuration option (e.g., allowUserRegistration: boolean) that, when set to false, disables:

  • The "Sign Up" option in PasswordUI.
  • The ability to register new users via PasswordProvider.

Expected Behavior

If the flag is set to false, only pre-existing users should be able to log in.
Any attempt to register a new user should be blocked both in the UI and programmatically.

Would this feature be aligned with the project's vision? I’d be happy to discuss implementation details or contribute a PR.

Thanks for considering this request! 🚀

cc @santiagomera

Activity

  1. cmnstmntmn commented on Feb 13, 2025

    @cmnstmntmn
    Contributor

    @daniel7byte there's also allow_signup flag that can be sent as a query you should be aware of.. at least for GitHub provider https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps

  2. thdxr commented on Mar 21, 2025

    @thdxr
    Member

    will take a PR for this

  3. self-assigned this
    on Mar 21, 2025
  4. TheOrdinaryWow commented on Apr 9, 2025

    @TheOrdinaryWow

    upvote for this feature

  5. straygar commented on Apr 18, 2025

    @straygar

    Instead of a flag, is it possible to somehow make this conditional? E.g. to lock down account registration to specific domains.

  6. added 2 commits that reference this issue on Jun 9, 2025
    8004b61
    8b6cbe0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions