I'm trying to build a pure Java server-side implementation of Git, to be included within JGit. Typically writes done over the network go over SSH, so SSHD is a good candidate for the protocol itself.
Hooks are sometime used within a Git repository to verify that a user can perform a particular write operation on a per-branch basis. So I need to expose the identity of the authenticated user to the Command implementation which implements the "git receive-pack" command name, so that implementation can pass the name through to the hook function for validation. https://issues.apache.org/jira/browse/SSHD-5 has a small proposed patch to make the ServerSession available.
