Feature notes: Snif remoting framework (concepts)
function GetChallenge(const aUserName: string): TSafeBytes;
function VerifyResponse(const aResponse: TSafeBytes): Boolean;
procedure SetUsername(const aUserName: string);
function Verify(const aPassword: string): Boolean;
function GetChallenge: TSafeBytes;
function Commit(const aResponse, aNewAuthData: TSafeBytes): Boolean;
Tunnel Bound KAPA proxies - mirror the server classes AkeLogin / AkeChangeAuth in StreamSec.Snif.AkeAuthentication. Drive the handshake with the helpers below (do NOT call AuthStep without then verifying the confirm). RequestOTP / LoginOTP are the two-step account-recovery path: RequestOTP(user) asks the server to send a one-time code out-of-band (email/SMS); LoginOTP(code), on the SAME connection, logs in with it - but the resulting session is limited to changing the password (call AkeClientChangeAuth next).
function AuthInit(const aUserName: string): TSafeBytes;
function AuthStep(const aResponse: TSafeBytes): TSafeBytes;
function RequestOTP(const aUserName: string): Boolean;
function LoginOTP(const aPassword: string): Boolean;
function Commit(const aNewPwFile: TSafeBytes): Boolean;