CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
credentials Namespace Reference

Functions

def get_credentials
 
def get_credentials_from_file
 

Function Documentation

def credentials.get_credentials (   authPathEnvVar,
  service,
  authFile = None 
)

Definition at line 8 of file credentials.py.

References get_credentials_from_file().

Referenced by db_credentials.get_readOnly_db_credentials().

8 
9 def get_credentials( authPathEnvVar, service, authFile=None ):
10  if authFile is None:
11  if authPathEnvVar in os.environ:
12  authPath = os.environ[authPathEnvVar]
13  authFile = os.path.join(authPath,'.netrc')
14  return get_credentials_from_file( service, authFile )
15 
def get_credentials
Definition: credentials.py:8
def get_credentials_from_file
Definition: credentials.py:4
def credentials.get_credentials_from_file (   service,
  authFile = None 
)

Definition at line 4 of file credentials.py.

Referenced by get_credentials().

4 
5 def get_credentials_from_file( service, authFile=None ):
6  creds = netrc.netrc( authFile ).authenticators(service)
7  return creds
def get_credentials_from_file
Definition: credentials.py:4