Refactor the SSH session state
We want to split the session state apart from the actual connection so we can implement a "set uid" feature later, where the user running a command may not match the original authentication. Change-Id: I0c9d31b4f5f04849e1c4a171243f0f376056c2c8 Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
@@ -69,8 +69,13 @@ public class IdentifiedUser extends CurrentUser {
|
||||
}
|
||||
|
||||
public IdentifiedUser create(final Account.Id id) {
|
||||
return new IdentifiedUser(AccessPath.UNKNOWN, authConfig, canonicalUrl,
|
||||
realm, accountCache, null, null, id);
|
||||
return create(AccessPath.UNKNOWN, null, id);
|
||||
}
|
||||
|
||||
public IdentifiedUser create(AccessPath accessPath,
|
||||
Provider<SocketAddress> remotePeerProvider, Account.Id id) {
|
||||
return new IdentifiedUser(accessPath, authConfig, canonicalUrl, realm,
|
||||
accountCache, remotePeerProvider, null, id);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user