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