(meta metadata.ConnectionAuthenticatedMetadata)
| 94 | } |
| 95 | |
| 96 | func (n *networkHandler) OnHandshakeSuccess(meta metadata.ConnectionAuthenticatedMetadata) ( |
| 97 | connection sshserver.SSHConnectionHandler, |
| 98 | resultMeta metadata.ConnectionAuthenticatedMetadata, |
| 99 | failureReason error, |
| 100 | ) { |
| 101 | appConfig, newMeta, err := n.loadConnectionSpecificConfig(meta) |
| 102 | if err != nil { |
| 103 | return nil, meta, err |
| 104 | } |
| 105 | |
| 106 | backendLogger := n.logger.WithLevel(appConfig.Log.Level).WithLabel( |
| 107 | "username", |
| 108 | meta.Username, |
| 109 | ).WithLabel("authenticatedUsername", meta.AuthenticatedUsername) |
| 110 | |
| 111 | return n.initBackend(newMeta, appConfig, backendLogger) |
| 112 | } |
| 113 | |
| 114 | func (n *networkHandler) initBackend( |
| 115 | meta metadata.ConnectionAuthenticatedMetadata, |
nothing calls this directly
no test coverage detected