Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

StreamSec.Snic.Authentication

Feature notes: Snif remoting framework (concepts)

Classes, interfaces and records

interfaceiLogin

function GetChallenge(const aUserName: string): TSafeBytes; function VerifyResponse(const aResponse: TSafeBytes): Boolean;

interfaceiLoginPlain

procedure SetUsername(const aUserName: string); function Verify(const aPassword: string): Boolean;

interfaceiChangePassword

function GetChallenge: TSafeBytes; function Commit(const aResponse, aNewAuthData: TSafeBytes): Boolean;

interfaceiAkeLogin

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;
-> salt||params||c||ct
function AuthStep(const aResponse: TSafeBytes): TSafeBytes;
channel-bound tag -> confirm
function RequestOTP(const aUserName: string): Boolean;
step 1: server sends a code out-of-band
function LoginOTP(const aPassword: string): Boolean;
step 2: log in with the code (change-password only)

interfaceiAkeChangeAuth

function Commit(const aNewPwFile: TSafeBytes): Boolean;

Routines