def get_credentials():
    try:
        return threading.current_thread().credentials
    except AttributeError:
        credentials = Credentials()
        return set_credentials(credentials)
Get the current thread's credentials.
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/rbac.py/get_credentials