equal
deleted
inserted
replaced
167 cnx.anonymous_connection = True |
167 cnx.anonymous_connection = True |
168 return cnx, login |
168 return cnx, login |
169 raise AuthenticationError() |
169 raise AuthenticationError() |
170 |
170 |
171 def _authenticate(self, login, authinfo): |
171 def _authenticate(self, login, authinfo): |
172 cnxprops = ConnectionProperties(self.vreg.config.repo_method, |
172 cnxprops = ConnectionProperties(close=False, log=self.log_queries) |
173 close=False, log=self.log_queries) |
|
174 cnx = repo_connect(self.repo, login, cnxprops=cnxprops, **authinfo) |
173 cnx = repo_connect(self.repo, login, cnxprops=cnxprops, **authinfo) |
175 # decorate connection |
174 # decorate connection |
176 cnx.vreg = self.vreg |
175 cnx.vreg = self.vreg |
177 return cnx |
176 return cnx |
178 |
177 |