Lines Matching refs:username
64 return (Git.read_git_config(self.git_prefix + "username"),
84 username = self._keychain_value_with_label("^\s*\"acct\"<blob>=",
88 return [username, password]
90 def _run_security_tool(self, username=None):
98 if username:
99 security_command += ["-a", username]
112 def _credentials_from_keychain(self, username=None):
114 return [username, None]
116 security_output = self._run_security_tool(username)
127 return (self._read_environ("username"), self._read_environ("password"))
129 def _offer_to_store_credentials_in_keyring(self, username, password):
134 self._keyring.set_password(self.host, username, password)
137 username, password = self._credentials_from_environment()
138 # FIXME: We don't currently support pulling the username from one
140 if not username or not password:
141 username, password = self._credentials_from_git()
142 if not username or not password:
143 username, password = self._credentials_from_keychain(username)
145 if username and not password and self._keyring:
146 password = self._keyring.get_password(self.host, username)
148 if not username:
149 username = User.prompt("%s login: " % self.host)
151 password = User.prompt_password("%s password for %s: " % (self.host, username))
152 self._offer_to_store_credentials_in_keyring(username, password)
154 return (username, password)