glance.common.auth module

This auth module is intended to allow OpenStack client-tools to select from a variety of authentication strategies, including NoAuth (the default), and Keystone (an identity management system).

> auth_plugin = AuthPlugin(creds)

> auth_plugin.authenticate()

> auth_plugin.auth_token
 abcdefg
class glance.common.auth.BaseStrategy[source]

Bases: object

authenticate()[source]
property is_authenticated
property strategy
class glance.common.auth.KeystoneStrategy(creds, insecure=False)[source]

Bases: BaseStrategy

MAX_REDIRECTS = 10
authenticate()[source]

Authenticate with the Keystone service.

check_auth_params()[source]
property is_authenticated
property strategy
class glance.common.auth.NoAuthStrategy[source]

Bases: BaseStrategy

authenticate()[source]
property is_authenticated
property strategy
glance.common.auth.get_plugin_from_strategy(strategy, creds=None, insecure=False)[source]