WebAuthn FIDO2 Authentication
Implement passwordless authentication with WebAuthn and FIDO2 standards. Support hardware security keys, biometrics, and platform authenticators.
Implement passwordless authentication with WebAuthn and FIDO2 standards. Support hardware security keys, biometrics, and platform authenticators.
uses
sgcHTTP_WebAuthn;
var
WebAuthn: TsgcHTTPWebAuthn;
begin
WebAuthn := TsgcHTTPWebAuthn.Create(nil);
WebAuthn.RelyingParty.Id := 'example.com';
WebAuthn.RelyingParty.Name := 'My App';
// Generate registration challenge
Challenge := WebAuthn.CreateChallenge(UserId, UserName);
end;