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, )
| 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) |