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

Multitenant solution #40

Open
rickardliljeberg opened this issue Jan 23, 2015 · 1 comment
Open

Multitenant solution #40

rickardliljeberg opened this issue Jan 23, 2015 · 1 comment

Comments

@rickardliljeberg
Copy link
Contributor

It is very common for me to need the same username on multiple different clients.

So basically if my website has multiple clients like "Nasa" and "Chrysler" I need to be able to have the user "Adam" for both Nasa and Chrysler.

This is because I allow for external authentication server from Nasa and Chrysler and they might not use something like email internally that is uniqie, so they might simply require the ability to have the user "Adam", which is why i must be able to group the users and make sure I can have the same username in multiple groups.

I have modified my fork of Memflex to take a "string Group" that you can group users in if you want, it always defaults to null which means if you don't want to use it Memflex will still work exactly like now.

I would be very happy to create a pull request for this, right now you can have a look here: https://github.com/rickardliljeberg/Memflex/

Caveats
*Even tho it will go on null for default the raven and mongo projects need to be updated a tiny bit to allow for group on the user and also handle group parameters. Should be doable in a few minutes each.
*It is not tested fully yet, but my solution with this will go live fairly soon and it's going through testing right now.
*The Account controller needs some minor updates, mine however is also updated for my external authentication, I am happy to share this with anyone who want to be able to authenticate externally as well.

@OdeToCode
Copy link
Owner

Sounds good, send a PR along and I'll take a look.

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

No branches or pull requests

2 participants