MCPcopy Index your code
hub / github.com/ContainerSSH/ContainerSSH / OnPubKey

Method OnPubKey

internal/auth/handler.go:30–30  ·  view source on GitHub ↗

OnPubKey is called when the urlEncodedClient requests a public key authentication. - meta is the metadata of the connection, including the username provided by the user. - publicKey contains the SSH public key and other accompanying information about the key. The method must return a boolean if th

(
		meta metadata.ConnectionAuthPendingMetadata,
		publicKey auth2.PublicKey,
	)

Source from the content-addressed store, hash-verified

28 // for other reasons (e.g. backend database was not available). If an error is returned the server responds with
29 // an HTTP 500 response.
30 OnPubKey(
31 meta metadata.ConnectionAuthPendingMetadata,
32 publicKey auth2.PublicKey,
33 ) (bool, metadata.ConnectionAuthenticatedMetadata, error)

Callers 1

OnRequestMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected