motine / Ohouse

Ohouse
Other
3 stars 2 forks source link

Implement 'get_credentials' method #3

Open broadbent opened 10 years ago

broadbent commented 10 years ago

get_credentials method is available for SLICE and MEMBER objects.

Documentation from the API:

Provide list of credentials for the caller relative to the given slice. 
If the invocation is in a speaks-for context, the credentials will be for the 
‘spoken-for’ member, not the invoking tool.

For example, this call may return a standard SFA Slice Credential and some 
ABAC credentials indicating the role of the member with respect to the slice.

Note: When creating an SFA-style Slice Credential, the following roles 
typically allow users to operate at known GENI-compatible 
aggregates: "*" (asterisk)  or the list of "refresh", "embed", 
   "bind", "control" "info".

Arguments:
  slice_urn: URN of slice for which to get member’s credentials
  options: Potentially contains ‘speaking_for’ key indicating a speaks-for 
     invocation (with certificate of the accountable member 
     in the credentials argument)
 Return:
  List of credential in “CREDENTIALS” format, i.e. a list of credentials with 
  type information suitable for passing to aggregates speaking AM API V3.