keystonemiddleware package¶
Subpackages¶
- keystonemiddleware.audit package
- keystonemiddleware.auth_token package
- keystonemiddleware.echo package
- keystonemiddleware.tests package
- Subpackages
- keystonemiddleware.tests.unit package
- Subpackages
- keystonemiddleware.tests.unit.audit package
- Submodules
- keystonemiddleware.tests.unit.audit.base module
- keystonemiddleware.tests.unit.audit.test_audit_api module
- keystonemiddleware.tests.unit.audit.test_audit_middleware module
- keystonemiddleware.tests.unit.audit.test_audit_oslo_messaging module
- keystonemiddleware.tests.unit.audit.test_logging_notifier module
- Module contents
- keystonemiddleware.tests.unit.auth_token package
- Submodules
- keystonemiddleware.tests.unit.auth_token.base module
- keystonemiddleware.tests.unit.auth_token.test_auth module
- keystonemiddleware.tests.unit.auth_token.test_auth_token_middleware module
- keystonemiddleware.tests.unit.auth_token.test_base_middleware module
- keystonemiddleware.tests.unit.auth_token.test_cache module
- keystonemiddleware.tests.unit.auth_token.test_config module
- keystonemiddleware.tests.unit.auth_token.test_connection_pool module
- keystonemiddleware.tests.unit.auth_token.test_memcache_crypt module
- keystonemiddleware.tests.unit.auth_token.test_request module
- keystonemiddleware.tests.unit.auth_token.test_revocations module
- keystonemiddleware.tests.unit.auth_token.test_signing_dir module
- keystonemiddleware.tests.unit.auth_token.test_user_auth_plugin module
- Module contents
- keystonemiddleware.tests.unit.audit package
- Submodules
- keystonemiddleware.tests.unit.client_fixtures module
- keystonemiddleware.tests.unit.test_ec2_token_middleware module
- keystonemiddleware.tests.unit.test_entry_points module
- keystonemiddleware.tests.unit.test_fixtures module
- keystonemiddleware.tests.unit.test_opts module
- keystonemiddleware.tests.unit.test_s3_token_middleware module
- keystonemiddleware.tests.unit.utils module
- Module contents
- Subpackages
- keystonemiddleware.tests.unit package
- Module contents
- Subpackages
Submodules¶
keystonemiddleware.ec2_token module¶
Starting point for routing EC2 requests.
-
class
keystonemiddleware.ec2_token.
EC2Token
(application, conf)¶ Bases:
object
Authenticate an EC2 request with keystone and convert to token.
-
keystonemiddleware.ec2_token.
app_factory
(global_conf, **local_conf)¶
-
keystonemiddleware.ec2_token.
filter_factory
(global_conf, **local_conf)¶ Return a WSGI filter app for use with paste.deploy.
keystonemiddleware.exceptions module¶
-
exception
keystonemiddleware.exceptions.
ConfigurationError
¶ Bases:
keystonemiddleware.exceptions.KeystoneMiddlewareException
-
exception
keystonemiddleware.exceptions.
KeystoneMiddlewareException
¶ Bases:
exceptions.Exception
keystonemiddleware.fixture module¶
-
class
keystonemiddleware.fixture.
AuthTokenFixture
¶ Bases:
fixtures.fixture.Fixture
Overrides what keystonemiddleware will return to the app behind it.
-
add_token
(token_data, token_id=None)¶ Add an existing token to the middleware.
Parameters: - token_data (dict) – token data to add to the fixture
- token_id (str) – the token ID to add this token as
Returns: The token_id that the token was added as.
Return type: str
-
add_token_data
(token_id=None, expires=None, user_id=None, user_name=None, user_domain_id=None, user_domain_name=None, project_id=None, project_name=None, project_domain_id=None, project_domain_name=None, role_list=None, is_v2=False)¶ Add token data to the auth_token fixture.
-
fetch_token
(token, **kwargs)¶ Low level replacement of fetch_token for AuthProtocol.
-
setUp
()¶
-
tokens
¶
-
keystonemiddleware.i18n module¶
oslo.i18n integration module.
See http://docs.openstack.org/developer/oslo.i18n/usage.html .
keystonemiddleware.s3_token module¶
S3 Token Middleware.
This WSGI component:
- Gets a request from the swift3 middleware with an S3 Authorization access key.
- Validates s3 token in Keystone.
- Transforms the account name to AUTH_%(tenant_name).
-
class
keystonemiddleware.s3_token.
S3Token
(app, conf)¶ Bases:
object
Middleware that handles S3 authentication.
-
exception
keystonemiddleware.s3_token.
ServiceError
¶ Bases:
exceptions.Exception
-
keystonemiddleware.s3_token.
filter_factory
(global_conf, **local_conf)¶ Return a WSGI filter app for use with paste.deploy.