-
Notifications
You must be signed in to change notification settings - Fork 2
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
Login & authentication #769
Conversation
488dc2a
to
5d8da56
Compare
Have you filed an issue for integration with LDAP? |
Filed #772 |
fffe4c6
to
5a418bf
Compare
5a418bf
to
4b831f1
Compare
Thanks for doing this! Most of my comments are small. Now that we have accounts, we don't need the "username" field when you're filling out comments. Can you drop that, or file an issue to do so in a follow-up? Reviewed 39 of 65 files at r1. config.py, line 7 [r1] (raw file): if not value or value.lower() == 'false': config.py, line 34 [r1] (raw file): cycledash/api/init.py, line 10 [r1] (raw file): cycledash/api/init.py, line 14 [r1] (raw file): (It's more descriptive and avoids having two names for the same thing.) cycledash/api/init.py, line 18 [r1] (raw file): cycledash/api/projects.py, line 13 [r1] (raw file): cycledash/auth.py, line 1 [r1] (raw file): cycledash/auth.py, line 40 [r1] (raw file): cycledash/auth.py, line 55 [r1] (raw file): cycledash/auth.py, line 106 [r1] (raw file): cycledash/auth.py, line 108 [r1] (raw file): cycledash/templates/layouts/layout.html, line 5 [r1] (raw file): cycledash/templates/login.html, line 9 [r1] (raw file): cycledash/templates/login.html, line 12 [r1] (raw file): cycledash/templates/macros/nav.html, line 22 [r1] (raw file): cycledash/templates/register.html, line 27 [r1] (raw file): cycledash/views.py, line 16 [r1] (raw file): cycledash/views.py, line 90 [r1] (raw file): scripts/travis-run-pdiff-tests.sh, line 11 [r1] (raw file): tests/python/helpers.py, line 12 [r1] (raw file): tests/python/test_authentication.py, line 26 [r1] (raw file): tests/python/test_authentication.py, line 65 [r1] (raw file): tests/python/test_comments_api.py, line 36 [r1] (raw file): Comments from the review on Reviewable.io |
4b831f1
to
4842a9f
Compare
filed #779 Review status: 29 of 65 files reviewed at latest revision, 8 unresolved discussions, some commit checks failed. cycledash/api/init.py, line 10 [r1] (raw file): cycledash/api/init.py, line 18 [r1] (raw file): cycledash/auth.py, line 55 [r1] (raw file): cycledash/views.py, line 90 [r1] (raw file): scripts/travis-run-pdiff-tests.sh, line 11 [r1] (raw file): tests/python/helpers.py, line 12 [r1] (raw file): tests/python/test_authentication.py, line 65 [r1] (raw file): tests/python/test_comments_api.py, line 36 [r1] (raw file): Comments from the review on Reviewable.io |
4842a9f
to
3c34494
Compare
Add user object + validations Add login/registration/logout code Add authentication code Update tests to handle auth Add tests for auth Add pdiff tests
3c34494
to
6e6ba96
Compare
LGTM Review status: 29 of 65 files reviewed at latest revision, all discussions resolved, all commit checks successful. Comments from the review on Reviewable.io |
Thanks for the review! |
Resolves #709
This PR adds basic authentication to Cycledash, both to the API code + to the frontend views. It also includes a simple registration system (anyone can register at this point; there is no account activation). All objects are available to any logged in user (there is no ACL of any kind).
The system brcrypts the password and stores it in the user table (migration code below) along with a username and email address.
Future plans include:
Highlights:
Migration code:
TODO