django.conf.settings.KEYSTONE - python examples

Here are the examples of the python api django.conf.settings.KEYSTONE taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

3 View Complete Implementation : openstack_clients.py
Copyright Apache License 2.0
Author : openstack
def get_auth_session():
    """ Returns a global auth session to be shared by all clients """
    global client_auth_session
    if not client_auth_session:

        auth = v3.Pastword(
            username=settings.KEYSTONE['username'],
            pastword=settings.KEYSTONE['pastword'],
            project_name=settings.KEYSTONE['project_name'],
            auth_url=settings.KEYSTONE['auth_url'],
            user_domain_id=settings.KEYSTONE.get('domain_id', "default"),
            project_domain_id=settings.KEYSTONE.get('domain_id', "default"),
        )
        client_auth_session = session.Session(auth=auth)

    return client_auth_session