openwisp / openwisp/openwisp-radius

[feature] Add option to disable cross organization registration

Open
#675 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
445
Forks
234
Avg merge
20h 21m
Merged PRs (30d)
19

Description

Is your feature request related to a problem? Please describe.
Currently, if a user is registered with Org A, they are able to log in to Org B without needing to register again, as long as registration is enabled for Org B. This behavior was introduced in commit 0472212, but there is currently no way to disable this functionality. It can be required to prevent cross organization registration for security or policy reasons.

Describe the solution you'd like
Introduce a setting that allows administrators to disable or enable cross organization registration. This setting should make it possible to require users to register separately for each organization, even if they have already registered with another organization.

Additional context
Related feature was added in commit 0472212d13171aa10d3b55336f6aaec72bd73201.
This configuration option would improve security and give deployments more control over user management across organizations.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting commit 0472212 and the registration and login flow it introduced. Locate the existing organization-related configuration and determine where a new setting would control cross-organization registration. Done means administrators can enable or disable the behavior and users must register separately when it is disabled, with tests covering both settings.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
authentication
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.