History | View | Annotate | Download (11.1 kB)
Merge branch 'release-0.14' into develop
Conflicts: snf-astakos-app/astakos/im/messages.py snf-astakos-app/astakos/im/settings.py version
astakos: pep8 fixes
astakos: Fix dangerous list default value
Initialize the argument with the desired list in runtime rather thanload time; set the default to None.
astakos: Improved restrict_next utility
Validate url against both provided domain and allowed_schemes
astakos: Updated tests
include weblogin view tests
astakos: Proper BASE_URL setting name
astakos: Remove debug assertion
astakos: Add redirect_back helper
used to redirect user back to the referer page if it's safe and possible
astakos: Strengthen authentication in user_from_token
All user-related API calls make use of this decorator to authenticatethe user. Previously it used to check only for the existence of the token;now it makes all checks previously found in the `authenticate' API call....
astakos: Replace some explicit settings imports
importing setting names explicitly makes it hard to write tests thatdepend on specific setting values and polutes the module namespace.
In this commit only settings that are currently used in tests whererefactored.
New setting to redirect after successful login
redirect to ASTAKOS_LOGIN_SUCCESS_URL after successful login when nonext parameter is set. Defaults to /im/landing
Fix docstring typo
Proper next parameter handling in third party logins
Excluding shibboleth all auth modules require two additional redirectscausing `next` parameter to be absent on the final url.
Fix model_to_dict utility
Signup workflow changes
- Validate signup email over verified emails. Additional signups with an existing unverified email will replace those entries.- Redirect on signup success instead of just rendering a template.
Extend model_to_dict utility to include objectproperties and obj string representation
login_url helper
Merge branch 'devel-0.13' of https://code.grnet.gr/git/astakos into latest-quota
Conflicts: snf-astakos-app/astakos/im/messages.py snf-astakos-app/astakos/im/notifications.py snf-astakos-app/astakos/im/urls.py snf-astakos-app/astakos/im/views.py
Improve email/username handling
- New helper methods in AstkosUser.objects- Check uniquness between username/email on user creation process- Allow login using both username/email fields- Keep email case intact- Store lowercase email in username field
Conflicts: snf-astakos-app/astakos/im/forms.py snf-astakos-app/astakos/im/management/commands/service-add.py snf-astakos-app/astakos/im/messages.py snf-astakos-app/astakos/im/models.py...
Single model for ProjectApplication & Definition - Membership sync
User state fixes
- Never reset activation_sent date- Check for inactive users too for email/username uniqueness- Check both email/username uniquness in user creation process- Activated users should have both email_verified/activation_sent fields set
Merge remote-tracking branch 'origin/0.12' into devel-0.13
Conflicts: snf-astakos-app/astakos/im/activation_backends.py snf-astakos-app/astakos/im/api/admin.py snf-astakos-app/astakos/im/auth_backends.py snf-astakos-app/astakos/im/forms.py snf-astakos-app/astakos/im/functions.py...
Flush other user sessions during password/token change
Refs: #3007
Force astakos cookie to follow session state.
Ensure ASTAKOS_COOKIE is not set if there is no django session cookie.
restrict_next should not affect relative paths
Refs: #3008
Restrict next url parameter
Merge branch '0.6.4' of https://code.grnet.gr/git/astakos into 0.6.4
Conflicts: snf-astakos-app/astakos/im/templates/im/astakosgroup_form.html snf-astakos-app/astakos/im/templates/im/astakosgroup_form_demo.html.BACKUP.21131.html
Back up file
Isolate astakos messages in separate module
Merged demo
Handle AttributeError in case of other than GET or POST method
Fix code formatting to conform to the PEP 8 style guide
fix get_query utility in case of HEAD request
remove unused imports & code refinement
named reverse urls
Log main astakos functions
Refs: #2448
remove unnecessary import
handle AstakosUser model validation error
set session cookie expiration to user auth_token expiration date
Refs: #2291
remove has_signed_terms utility, introduce AstakosUser signed_terms function instead
ask acknowledgment for switching local account to shibboleth one
support shibboleth with invitations & enable modifyuser command to remove a user group
Refs: #2167
add support for groups
fix has_signed_terms function
Refs: #2019
do not show approval terms checkbox if there are no terms
if no registered approval terms bypass approval terms mechanism
clear has_singed_terms in case of updated terms
Force user to accept service terms
merge with master
Merge branch 'master' into packaging
Repo refactor and webproject hooks fixes