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

Access Organization via URL #80

Open
3 tasks
winsmith opened this issue Sep 6, 2017 · 0 comments
Open
3 tasks

Access Organization via URL #80

winsmith opened this issue Sep 6, 2017 · 0 comments

Comments

@winsmith
Copy link
Collaborator

winsmith commented Sep 6, 2017

All URLs of all logged in pages should be prefixed with the organization slug. Example: Instead of logging in at e.g. ablator.space/login/ the login for your organization should live at ablator.space/your-organization-slug/login/

The reason for this is, it gives us a tiny sliver of added security, because a user has to not only know username and password, but also the organization slug to log in. But the main reason is scalability. This change allows us to shard databases by organization at a later point.

  • Change the main URLConf at ablator/urls.py so that the api, management, logging and ^ urls are prefixed by a pattern like (?P<organization_slug>[^/]+)/
  • Make sure that the project is not broken by clicking through the links
  • create a new, empty index page and view and put it at the ^ root url. This will be an info page.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant