« Previous | Next » 

Revision 528550d9

ID528550d929d5d30009016ae23b2a948d13fe8eb3

Added by Stavros Sachtouris about 11 years ago

Enrich/rename astakos client calls with endpoints

Refs: #3874

Kamaki.clients.astakos.AstakosClient is now a high-level client lib that
offers access to token-authenticated astakos-aquired cached information.
Users who need an astakos client should use the snf-astakosclient instead.

Usage:

astakos_cache = AstakosClient(<astakos/base/url/with/identity/api>)
astakos_cache.authenticate(<token>)
user_info = astakos_cache.user_info()
compute_endpoints = astakos_cache.get_service_endpoints('compute', 'v2')

Major changes:

Modify ReST call from /im/authenticate to /tokens

New methods as AstakosClient instance cache accessors:
get_services
get_service_details
get_service_endpoints

Method renaiming for existing AstakosClient instance cache accessors:
info --> user_info
user --> list_users

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences