Skip to content

Commit

Permalink
better doc
Browse files Browse the repository at this point in the history
  • Loading branch information
francoismichel committed Aug 1, 2024
1 parent 1b6efca commit 5ec7d5e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions auth/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

/////////////////////////////////////
// Server auth plugins //
// Server auth plugins //
/////////////////////////////////////

// In ssh3, authorized_keys are replaced by authorized_identities where a use can specify classical
Expand All @@ -27,11 +27,15 @@ type RequestIdentityVerifier interface {
type ServerAuthPlugin func(username string, identityStr string) (RequestIdentityVerifier, error)

/////////////////////////////////////
// Client auth plugins //
// Client auth plugins //
/////////////////////////////////////

// Updates `request` with the correct authentication material so that an SSH3 conversation
// can be established by performing the request
// returns all the suitable authentication methods to be tried against the server in the form
// of a slice of ClientAuthMethod. Every ClientAuthMethod will have the opportunity to prepare
// an HTTP request with authentication material to startup an SSH3 conversation. For instance,
// for pubkey authentication using the private key files on the filesystem, the
// GetClientAuthMethodsFunc can return a slice containing one ClientAuthMethod for
// each private key file it wants to try.
// if no SSH agent socket if found, sshAgent is nil
type GetClientAuthMethodsFunc func(request *http.Request, sshAgent agent.ExtendedAgent, clientConfig *client_config.Config, roundTripper *http3.RoundTripper) ([]ClientAuthMethod, error)

Expand Down

0 comments on commit 5ec7d5e

Please sign in to comment.