astakos: Activation view improvements
Reject empty activation code requests
astakos: Add missing save in reject_user
astakos: Handle quota for accepted users
A user is accepted if moderated=True and is_rejected=False. Onlyaccepted users have entries in the quotaholder.
astakos: Separate templates in project creation
instead of including application form summary template in the application formview, render it from scratch. This resolves a bug caused when using django>1.2since block tags within the included templates are not supported.
astakos: Store arbitrary shibboleth headers
additionally to common shibboleth headers, append any arbitrary shibbolethheaders (SHIB_*) set from the IdP.
astakos: Correctly set user password in user-add
password field contains the user password in hashed format. The proper wayto populate the field is by using the set_password method of the user object.
astakos: Handle quota for moderated users only
At some points, verified users where mistakenly assumed.
Revert "wheezy: Rename depricated HttpRequest attribute"
This reverts commit cfc4b87c301504627e6a75ab2e4d32c8cd7a6e15. Thiscommit is reverted because it breaks compatibility with Django 1.2. Thisshould be applied for Synnefo 0.15.
wheezy: Rename depricated HttpRequest attribute
From django docs:""" HttpRequest.raw_post_data renamed to HttpRequest.body
This attribute was confusingly named HttpRequest.raw_post_data, but itactually provided the body of the HTTP request. It’s been renamed to...
Fix a python syntax error
In python 2 we cannot have keyword-only arguments (PEP 3102).And even if we could, this was not the right way todeclare a python function.
astakos: Replace commit_manually decorator
Replace commit_manually decorator with commit_on_success, since thefunctions that were using this decorator did not really needed it.
astakos: Fix `save() got unexpected argument'
From Django documentation:""" It’s also important that you pass through the arguments that can bepassed to the model method – that’s what the *args, **kwargs bit does.Django will, from time to time, extend the capabilities of built-in...
astakos: Don't use `user.__dict__'
In Django 1.4 the `request.user' returns a SimpleLazyObject insteadof a LazyUser. The equivalent of `user.__dict__' is now`user._wrapped.__dict__'. In order to be backward compatiblewe are requesting explicitely the attributes we want and not...
astakos: Fix project identification in test
Test was mistakenly using application id rather than project id insome occasions.
astakos: Fix quota API test
Sort list before comparing, since ordering in the response data isnot specified. Triggered when run with postgres.
Add messages context processor to default settings
wheezy: urls module doesn't export defaults
branding: new setting FOOTER_EXTRA_MESSAGE
FOOTER_EXTRA_MESSAGE setting appears above Copyright message at theCompute templates and the Dashboard UI. Accepts html tags.
astakos: Add missing cyclades service in script
pithos: Clear pithos_public endpoint's versionId
pithos_public service is not an API and should not be versioned; thepublic URLs operated by pithos do not include a version segment, anyway.
Also make its type more specific, since type `public' is too generic.
common: Strip trailing slash from endpoints
Remove trailing slash from the endpoints' publicURL field in servicedefinitions. These values end up in the response of POST /tokens, and,according to the keystone API, should not end in slash. A trailing slash...
Move middlewares from snf-common to snf-webproject
Move context_processors from common to middleware
snf-branding: Expose contact email through branding mechanism
although CONTACT_EMAIL is not a branding setting, we use the branding mechanismto expose it to brandable templates for practical reasons.
This also fixes the missing contact email from all project related emails.
astakos: Use api_method_not_allowed in quota API
astakos: Resume a deactivated project upon approval
When approving a modification, automatically set the project to active,if it has been deactivated.
astakos: Fix arg passing in messages
astakos: Fix arg in terminate function
astakos: Add region value in POST /tokens
Add hardcoded 'default' value in region attribute.
Refs #4086
astakos: Shibboleth wording improvements
- Customized logout success message- Customized add prompt message
Revert "astakos: Improve invalid login handling"
This reverts commit 02c1f22a0f7396a7b2211677db78247586e10805.
astakos: Prevent empty passwords in profile form
astakos: Improve invalid login handling
avoid redirecting user to signup view. Notify user the login credentials wasinvalid instead.
astakos: Shibboleth improvements
- include shibboleth headers in provider_details- display eppn instead of identifier in profile
astakos: Fix shibboleth headers logging
astakos: Update tests
fix pithos:// redirect params extraction
astakos: Fix call of helper function
astakos: Disallow join/leave for non-alive projects
astakos: Correct plural in 1 pending membership
astakos: Fix listing of approved members
Include leave requested and suspended members in the list of approved.
astakos: return uuid in weblogin
The weblogin used to return the user uuid.However, this in 0.14 version had been removed since the uuidcan be retrieved using the POST /tokens authentication method.However, the old pithos clients have no other wayto get the uuid, so we restore it temporarily.
astakos: Force usage registration during migration
Register usage for astakos.pending_app even if limit is exceeded.
astakos: REDIRECT_ALLOWED_SCHEMES hidden setting
astakos: fix reset password confirmation url
astakos: remove URL-distorting full stops in emails
astakos: Fix third party creation form kwargs handling
view always passes request argument. Avoid propagating it to ModelFormconstructor.
astakos: Fix regression in signup view
when recpatcha is enabled in astakos settings
astakos: Update pithos_public definition in script
cloudbar: Body class "user-not-authenticated "when user has not signed in.
astakos: Typo fix
astakos: Explicit transaction handling in commit_manually views
since django 1.3, when using the ``transaction.commit_manually`` decorator,transaction is required to be closed (using either commit/rollback) even ifonly read db operations are executed from within the wrapped method.
astakos: Fix typo in message
astakos: Remove obsolete versioning from init
cloudbar: Add class to body when user is authenticated
astakos: Fix dangerous list default value
Initialize the argument with the desired list in runtime rather thanload time; set the default to None.
astakos: Proper content type for .kamakirc view
Django response object content_type attribute is not used. Pass desired contenttype in HttpResponse constructor.
astakos: Fix typo in api_access template
astakos: Verbal changes to Dashboard API access page
astakos: Remove default components presentation urls
since component registration requires both api url and web url
astakos: New projects icon for Dashboard Usage tab
astakos: Sent emails appearance fix.
Removing extra lines and spaces from email templates.Decode contact email special characters.
astakos: Add "sign in" link to Sign up page
astakos: Better examples base URLs in helper script
astakos: Document ASTAKOS_USAGE_UPDATE_INTERVAL setting
astakos: fix duplicate test method names
astakos: Alter projects intro message (revised)
astakos: Adding info for other clients in API access page
astakos: change renew token button style (API access page)
branding: Alter projects intro message
astakos: By default exclude pending_apps from usage view
astakos: API access page url fix
remove trailing /tokens from `Authentication URL`
astakos: Some additional tests
astakos: Redirect local login GET requests to login
astakos: Kamaki sample config file view
astakos: Dynamically resolve login_url in login_required
duplicated django user_passes_test and login_required decorators to be ableto dynamicaly resolve the url to which we redirect unauthorized users. Replaceddjango login_required with astakos.im.views.decorators.login_required.
astakos: Fix sqlite-related issues in migration
In migration 0022, ProjectApplication's field `chain' is altered froma plain integer field to a foreign key. This triggers a south commandto create an index for the said field. However, it seems that sqlite...
astakos: test 400 on wrong astakos API paths
astakos: allow empty tenantName in POST /tokens
astakos: Update pithos_public in helper script
astakos: slight change in POST /tokens
tenantName is options in the request input.Howver, if it is provided, the call should check whetherit conforms with the token holder.
astakos: fix tests
Ensure we return cloud faults under any API prefix
astakos: firefox text alignment bug fix for API access page
astakos: Improved style for API access page
Return the web login url also in the custom ``SNF:webloginURL``attribute
astakos: Add weblogin definition in helper script
pithos: change POST /tokens
move SNF:uiURL under each endpoint
astakos: Separate index/login views
- Login view added. The view renders the login template.- Index view acts as a gateway to landing/login views based on whether the user is authenticated.
astakos: Additional user info in activated notification
astakos: fix POST /tokens in case of missing content length
Catch this case and reply with the non authentication protectedinformation (public mode)
astakos: add weblogin service for non-web clients
astakos: Improved restrict_next utility
Validate url against both provided domain and allowed_schemes
astakos: Remove uuid parameter from weblogin redirect
url only contains token parameter. Clients can use the identity/tokens endpointusing the gathered token to access the uuid information.
astakos: Updated tests
include weblogin view tests
properly clean up database on each test tearDown
astakos: change web login view
astakos: change authenticate keystone api call
If no request body is provided (no request content length),the response returns only non authentication protected information(before it used to return BadRequest)
astakos: Api token view firefox bug fix
Auth url and API token in API access page are disabled html inputs.On firefox, these inputs are replaced by <span> elements to allow them tobe selected on user click.
astakos: Rename helper script for uniformity
Rename snf-register-components to snf-component-register.