Bases: openstack_dashboard.api.base.APIVersionManager
Bases: openstack_dashboard.api.base.APIDictWrapper
Wrapper for a dict based on the service data from keystone.
Adds a role for a group on a domain or project.
Adds a role for a user on a tenant.
Gets the default domain object to use when creating Identity object. Returns the domain context if is set, otherwise return the domain of the logon user.
Gets the default role object from Keystone and saves it as a global since this is configured in settings and should not change from request to request. Supports lookup by name or id.
Returns a client connected to the Keystone backend.
Several forms of authentication are supported:
- Username + password -> Unscoped authentication
- Username + password + tenant id -> Scoped authentication
- Unscoped token -> Unscoped authentication
- Unscoped token + tenant id -> Scoped authentication
- Scoped token -> Scoped authentication
Available services and data from the backend will vary depending on whether the authentication was scoped or unscoped.
Lazy authentication if an endpoint parameter is provided.
Calls requiring the admin endpoint should have admin=True passed in as a keyword argument.
The client is cached so that subsequent API calls during the same request/response cycle don’t have to be re-authenticated.
Removes a given single role for a group from a domain or project.
Removes all roles from a group on a domain or project, removing them from it.
Removes all roles from a user on a tenant, removing them from it.
Removes a given single role for a user from a tenant.
Returns a global list of available roles.