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: Set tokens api endpoint name in urls
in order to be able to use django reverse mechanism to resolve the endpointpath.
astakos: Prepend version to service/user_catalogs URL
astakos: Move all api urls under v1.0
feedback/user_catalogs/autenticate endpoints moved under /v1.0/ prefix
astakos: correct keystone version v2.0
astakos: add version v1.0 in account API URLs
astakos: remove get_endpoints keystone api call
astakos: modifications in authenticate keystone api call
Merge remote branch 'origin/feature-services-endpoints' into feature-reconfigure-urls
astakos: put keystone API in a separate prefix
astakos: Lift old-style services to components
Add model Component and migrate services along with their tokenand UI URL to this new model. Rename service to component whereneeded.
Add field service_type in Resource and fill it based on the nameof the service that used to own the resource.
astakos: Import new-style services and resources
astakos: modifications in POST /tokens (authenticate) api call
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: Handle datetime in API json response
Automatically convert a datetime to string using isoformat fromsnf_django.lib.api.utils
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: 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: Remove some unused imports
Also add a missing import in quotas.py
astakos: check that request.user is a 'User'
Update astakos 'get_menu' API method, to check if request.user is aninstance of django User model. This view function called by astakoscontext processor. However, if astakos and helpdesk are installedtogether, the request.user will not hold an AnonymousUser, but a...
astakos: change authenticate api call
``/astakos/api/authenticate`` calldoes not include any more resource usage in the reply.(``usage`` request parameter has become obsolete)The services in order to get the resource usage should call``/astakos/api/quotas`` instead.
astakos: Fix call to util function send_feedback
astakos: include resource presentation info in authenticate response
If option parameter ``usage`` is passed then the response shouldcontain also the resource presentation information(as it used to be in the past)
astakos: remove astakos.im.api module
Replace all AstakosCallpoint references
astakos: remove user argument from the api methods
User request.user field (set by user_for_token decorator)
astakos: WIP move all api calls under ``/astakos/api``
Refs: #3340
astakos: Change user_for_token decorator
user_for_token after successful user authenticationsets the request user attributeThe wrapped methods no more need the ``user`` argument:they can get the token holder by the request object
astakos: rename api utility methods
astakos: fix user api utility calls
astakos: Proper string type check
using basestring also handles unicode objects
Revert quotaholder's name to quotaholder_app
In order to facilitate migrations.
astakos: Set and return commission names in API calls
Support issue_commission's `name' parameter for an optional descriptionof the commission. Include this field in the dict returned byget_commission.
Change astakosclient accordingly.
astakos: Correct qh call to auto accept commissions
astakos: Further validate input in quota API calls
astakos: Validate input of quota-related API calls
astakos: Rename get_service_quotas to service_get_quotas
So that it follows the naming scheme of other astakosclient calls.
quotaholder: Change provisions argument to list
It is the API code's task to transform the input dict to list.
Turn callpoint into a module of functions
Class structure is no more needed; there is no need for initialization,since the code is used internally.
astakos: Move get_resources in resources.py
Update astakos usage view
Update view to use the introduced astakos quotas api.
astakos: Add user parameter in service_quotas API call
Using this parameter, the service can query the quotas of a specificuser.
Move transaction.py to snf_django package
New call astakos/api/service_quotas
Returns quotas for all resources associated with the service that makesthe call.
quotaholder: Unify accept and reject commission code
Incorporate accept/reject functions in resolve_pending_commissions,in order to enforce a total ordering on locking holdings.Add a wrapper (resolve_pending_commission) that operates on a singleserial.
Merge branch 'develop' into feature-quotas
Conflicts: snf-astakos-app/astakos/im/api/service.py snf-quotaholder-app/quotaholder_django/quotaholder_app/callpoint.py
Remove client_key parameter from quotas API
It is not necessary, since the service token in used for authorization.The api_method decorator is modified so that it passes to the methodthe service data through the request object.
API call for resources
API calls for quotas and commissions