MCPcopy
hub / github.com/ContainerSSH/ContainerSSH / logAuthSuccessful

Method logAuthSuccessful

internal/sshserver/serverImpl.go:227–240  ·  view source on GitHub ↗
(
	logger log.Logger,
	conn metadata.ConnectionAuthenticatedMetadata,
	authMethod string,
)

Source from the content-addressed store, hash-verified

225}
226
227func (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
242func (s *serverImpl) createPubKeyAuthenticator(
243 connectionMetadata metadata.ConnectionMetadata,

Calls 3

LabelMethod · 0.65
UserMessageMethod · 0.65
InfoMethod · 0.65

Tested by

no test coverage detected