astakos: Include missing members_action view
Merge branch 'feature-projects-ux' of https://code.grnet.gr/git/synnefo into feature-projects-ux
Conflicts: snf-astakos-app/astakos/im/views/projects.py
astakos: Batch members actions template integration
udpated project members template to properly post selected membership ids tothe appropriate urls.
astakos: Batch project members action view
added new view to handle multiple project members actions. View acceptsmultiple `members` parameters containing project membership ids.
/<chain_id>/members/remove/ -> removes project membership ids/<chain_id>/members/accept/ -> approves posted membership ids...
astakos: Allow multiple args in confirm_link
astakos: Remove ^M's from common.js
astakos: Only allow owners/admins to access member views
astakos: Remove project members input limit
Merge branch 'develop' into feature-projects-ux
Conflicts: snf-astakos-app/astakos/im/templates/im/projects/intro.html snf-astakos-app/astakos/im/templatetags/astakos_tags.py snf-astakos-app/astakos/im/urls.py snf-astakos-app/astakos/im/views.py
astakos: add missing template
astakos: provide authenticate keystone token api call
snf-django-lib: Fix proxy issue
The ``X-Forwarded-Host`` header should not be forwared to the targetbecause django appends its value to the Host header andresults in validate_host() failure.
astakos: Remove invitation management commands
Also add a notice in docs that inviting is currently disabled.
docs: Update list of astakos commands
Also fix some help messages.
astakos: rename full-cleanup command to cleanup-full
astakos: Rename group/authpolicy commands
- removed `user-` prefix for shorter command names- condensed auth-policy to authpolicy
astakos: Move email subjects from settings to messages
Email subjects are parameterized by site name and application-specific data. Other than that they should be constants ratherthan settings.
Remove unused GROUP_CREATION_SUBJECT.
astakos: Remove unused billing settings
Remove unused settings BILLING_FIELDS and QUEUE_CONNECTION.
astakos: Add missing import in management command
astakos: Convert list-like settings to tuple
Settings ADMINS, MANAGERS, and HELPDESK are tuples even though they couldnaturally be lists. If one sets by mistake one of these to list, thistriggers an error in notification code, which tries to concatenate them:...
astakos: Update tests
GET is not allowed to remove auth provider urls
astakos: LinkedIn provider fix
initialize client in login view
astakos: Typo fix
incorrect variable use. Retrieve message from provider object instead ofastakos_messages module.
astakos: User auth methods handling fix
do not include third party logins of disabled provider modules (modules whichare not set in ASTAKOS_IM_MODULES). This fixes user's provider remove policyresolution when user has multiple providers assigned but only one is enabled...
astakos: Change auth provider remove HTTP method
Convert provider removal links to forms (using POST), in order to be ableto remove GET from the remove view allowed HTTP methods.
Refs #3793
astakos: Update user-add command
removed activate option. User status can be changed using additionaluser-modify commands (--verify, --accept etc.)
astakos: Conditionally autoexpand classic signup form
if classic signup ('local') appears first in IM_MODULES setting
cloudbar: Handle relative service icon urls
astakos: Add confirmation step in service-add
Since there is no way to delete a registered service, confirmationis needed to register a service.
Add also a `--no-confirm' option to bypass this check in service-addas well as in user-modify.
astakos: Disable service renaming
Service name is significant: UI presentational data are indexed byit; resource names are prefixed by it.
astakos: Fix args reading in service-add
Service URL and API URL where set the other way around.Also add checks for the URLs being in use.
astakos: Set type for existing services
Following Keystone there is now a `type' field in model Service.This adds a data migration in order to set the type for existingservices as follows: astakos: identity cyclades: compute pithos: storage
astakos: Show value even for unknown resource
Do not fail when looking up the unit, if resource is not found.
astakos: Fix permissions of service-add.py
Unset execute bit for file service-add.py
astakos: Remove commands deleting services and resources
We do not support removing a registered service or resource.
astakos: Add new command service-show
Leave the most important fields of Service in service-list;show all fields with service-show.
astakos: fix astakos api tests
Remove deprecated quotaholder settings
Remove remaining astakos and pithos-related references of quotaholderfrom settings and docs.
astakos: Remove setting PENDING_APPLICATION_LIMIT
astakos: provide get_endpoints api call
astakos: move get_services back to astakos im services
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: Support changing resource's allow_in_projects
astakos: Cleanup management commands' common file
astakos: Move ExceptionHandler in views.util
It is view-specific and did not deserve a separate file.
astakos: Support units in resource-related commands
Add library synnefo.util.units for parsing numerical valueswith an optional unit suffix and printing integer values basedon a given style.
Styles `b', `kb', `mb', etc allow printing in the respective multiples...
branding: Renaming SYNNEFO_JS_LIB_VERSION to SYNNEFO_VERSION
astakos: move get_menu service under astakos im services
get_menu is used only by astakos cloudbar:it should not be under astakos api services
astakos: unified settings handling
Import astakos settings module instead of importing specific settings
astakos: Include project membership info in commands
`user-show --projects': Memberships and ownerships for a given user in separate tables `project-show --members': Members of the given project
astakos: Improve output of quota commands
astakos: Filter project listing by name or owner
Use a custom way to retrieve and filter project data; ListCommand isnot suitable when multiple tables must be consulted.
astakos: service-remove change to accept service id
instead of name
astakos: Respect module specific policies
also disable switch policy of shibboleth and local providers by default.In the case of local provider it just doesn't make sense. Shibboleth doesn'tallow us to create a url which would force user to login with different...
astakos: Improve provider in use message
explicitly display the type/name of the `in use` provider
astakos: New user fields migration improvement
set accepted_policy to 'migration' for already accepted users which have not yeta verified email address (old flow)
astakos: Add AstakosUser status_display property
the property provides a status outline of the current user status.
astakos: remove unused imports
astakos: reorganize views
astakos: Remove code handling UserSetting
Keep UserSetting model; to be removed in a future version.
astakos: Clean up tables on test completion
to get over sqlite driver issues to properly clean up database on transactiontest cases.
astakos: Remove some unused imports
Also add a missing import in quotas.py
astakos: Lock chain for projects, user for syncing
Lock project's chain for every operation affecting either a project oran application. Subsequently, lock user when needing to sync or to issuecommission to update pending_app quota.
In views, replace locking qh_add_pending_app with check_pending_app_quota,...
branding: Use branding util to render email templates
Use synnefo_branding.util.render_to_string accross synnefo apps to be able touse branding variables within the templates.
astakos: Fix reset password email
astakos: Remove hardcoded urls from templates
use IM_STATIC_URL instead
astakos: do not catch send mail errors
The user should not be informed if for any reasonthe server can not send an email.
Revert "astakos: fix send mail error handling"
This reverts commit 903ce7dccb44db3d3e5fd280a7683747dfa37d7f.
astakos: fix send mail error handling
Restore SendMailError, ChangeEmailError and SendFeedbackError exceptions(deleted by previous commit) since they are still used.
astakos: add astakos.im.decorators module
astakos: replace CookieAuthenticationMiddleware with a view decorator
reverse commits ab30f5f163a13dfc7f9bec4d263208dd35f09d16 &1439d6383113b151b6a3316e320a0418fa30d421
decorate also ``django.contrib.auth.views`` utilized byastakos
astakos: Minor improvements in email change process
- Explicit handling of invalid email change activation code.- Permission denied response if user is authenticated and email change code is assigned to another user.- Improve logging- Updated tests
astakos: Fix typo in tests
astakos: fix incomplete previous commit
commit 1439d6383113b151b6a3316e320a0418fa30d421
astakos: api calls authenticated via X-Auth-Token shall not affect cookie
CookieAuthenticationMiddleware.process_request() synchronizesthe astakos cookie with the request user.If an astakos cookie is set but there is no logged in user,the middleware deletes the cookie....
astakos: Split settings in separate modules
astakos: Update activation email content
astakos: Clean up user-list filter options
removed deprecated options `-p` and `-n`. Admins should use`--pending-moderation` and `--pending-verification` instead.
astakos: Allow admin to verify user from command line
using the new option `--verify` added in `user-modify` command
Merge branch 'feature-branding' into develop
Conflicts: snf-astakos-app/astakos/im/templates/im/account_pending_moderation_notification.txt snf-astakos-app/astakos/im/templates/im/group_creation_notification.txt snf-astakos-app/astakos/im/views.py
Catch QuotaLimit exception when reconciling resources
This can happen, if the actual usage registered by a service exceedsthe quota limit.Advise the user to try the --force option.
astakos: Let qh errors through when issuing commission
When registering pending apps, catch only NoCapacityError. No otherQuotaholderError is expected and should not be treated here.
astakos: Do not show obsolete user settings
Also fix printing user quota.
quotaholder: Ignore force option when releasing
Since negative usage makes no sense, we always check this lowerboundary when issuing a commission.
astakos: Force query eval when used in __in filter
Related to commit aee9a38
Also fix call of qh_sync_users in migration script.
astakos: Allow submitting application with no resources
Enforce Group entries flush. As a fix to strange errors raised while runningtests using sqlite database. The driver doesn't seem to be able to properlycleanup related database entries, a procedure that takes place after eachexecution of a TransactionTestCase test.
astakos: Fix provider_login_url template tag
Synnefo branding: Documentation correction & minor fixes
Merge branch 'develop' into feature-astakos-userflow
astakos: Adapt tests to 2.6-style unittest
Define assertGreater, assertIn, assertRaises in snf_django.utils.testing
common: Disable proxy in tests
Do not follow redirections in im tests.
astakos: User activation flow improvements
Major refactoring on user email verification/activation process---------------------------------------------------------------Activation logic moved from dispersed code in functions/view modules toActivationBackend methods. All user activation handling code in astakos views...
- In sync with new AstakosUser model- Remove nested settings wrappers to slightly increase tests performance
astakos: Remove deprecated AstakosUser fields
astakos: Avoid using dicts as default arguments
astakos: Remove two options from resource-import
--service: We do not support automatic importing of resources--conf: Use resource-modify to configure resource limit