keystone.application_credential.core module

keystone.application_credential.core module

Main entry point into the Application Credential service.

class keystone.application_credential.core.Manager[source]

Bases: Manager

Default pivot point for the Application Credential backend.

See keystone.common.manager.Manager for more details on how this dynamically calls the backend.

authenticate(application_credential_id, secret)[source]

Authenticate with an application credential.

Parameters:
  • application_credential_id (str) – Application Credential ID

  • secret (str) – Application Credential secret

create_application_credential(application_credential, initiator=None)[source]

Create a new application credential.

Parameters:
  • application_credential (dict) – Application Credential data

  • initiator – CADF initiator

Returns:

a new application credential

delete_access_rule(access_rule_id, initiator=None)[source]

Delete an access rule.

Parameters:
  • str – access_rule_id: Access Rule ID

  • initiator – CADF initiator

Raises:

keystone.exception.AccessRuleNotFound – If the access rule doesn’t exist.

delete_application_credential(application_credential_id, initiator=None)[source]

Delete an application credential.

Parameters:
  • application_credential_id (str) – Application Credential ID

  • initiator – CADF initiator

Raises:

keystone.exception.ApplicationCredentialNotFound – If the application credential doesn’t exist.

driver_namespace = 'keystone.application_credential'
get_access_rule(access_rule_id)[source]

Get access rule details.

Parameters:

access_rule_id (str) – Access Rule ID

Returns:

an access rule

get_application_credential(application_credential_id)[source]

Get application credential details.

Parameters:

application_credential_id (str) – Application Credential ID

Returns:

an application credential

list_access_rules_for_user(user_id, hints=None)[source]

List access rules for user.

Parameters:

user_id (str) – User ID

Returns:

a list of access rules

list_application_credentials(user_id, hints=None)[source]

List application credentials for a user.

Parameters:
  • user_id (str) – User ID

  • hints (dict) – Properties to filter on

Returns:

a list of application credentials

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.