( logger log.Logger, conn metadata.ConnectionAuthenticatedMetadata, authMethod string, )
| 225 | } |
| 226 | |
| 227 | func (s *serverImpl) logAuthSuccessful( |
| 228 | logger log.Logger, |
| 229 | conn metadata.ConnectionAuthenticatedMetadata, |
| 230 | authMethod string, |
| 231 | ) { |
| 232 | err := messageCodes.UserMessage( |
| 233 | messageCodes.ESSHAuthSuccessful, |
| 234 | "Authentication successful.", |
| 235 | "%s authentication for user %s successful.", |
| 236 | authMethod, |
| 237 | conn.Username, |
| 238 | ).Label("username", conn.Username).Label("method", strings.ToLower(authMethod)) |
| 239 | logger.Info(err) |
| 240 | } |
| 241 | |
| 242 | func (s *serverImpl) createPubKeyAuthenticator( |
| 243 | connectionMetadata metadata.ConnectionMetadata, |
no test coverage detected