Esempio n. 1
0
 def getCredential(cred_name):
     """Get the username and password"""
     credential = cdb.get_credential_name(TENANT, cred_name)
     return {
         const.USERNAME: const.CREDENTIAL_USERNAME,
         const.PASSWORD: const.CREDENTIAL_PASSWORD
     }
Esempio n. 2
0
 def getCredential(cred_name):
     """Get the username and password"""
     credential = cdb.get_credential_name(TENANT, cred_name)
     return {const.USERNAME: const.CREDENTIAL_USERNAME,
             const.PASSWORD: const.CREDENTIAL_PASSWORD}
Esempio n. 3
0
 def getPassword(cred_name):
     """Get the password"""
     credential = cdb.get_credential_name(TENANT, cred_name)
     return credential[const.CREDENTIAL_PASSWORD]
Esempio n. 4
0
 def getUsername(cred_name):
     """Get the username"""
     credential = cdb.get_credential_name(TENANT, cred_name)
     return credential[const.CREDENTIAL_USERNAME]
Esempio n. 5
0
 def getPassword(cred_name):
     """Get the password"""
     credential = cdb.get_credential_name(TENANT, cred_name)
     return credential[const.CREDENTIAL_PASSWORD]
Esempio n. 6
0
 def getUsername(cred_name):
     """Get the username"""
     credential = cdb.get_credential_name(TENANT, cred_name)
     return credential[const.CREDENTIAL_USERNAME]