fix and update

This commit is contained in:
lendry
2026-07-07 09:01:49 +03:00
parent 881e5d764b
commit 29306eb2ec
14 changed files with 551 additions and 60 deletions

View File

@@ -28,6 +28,8 @@ service AdvancedAuthService {
rpc CreateWebAuthnRegistrationChallenge (WebAuthnRequest) returns (ChallengeResponse);
rpc CreateWebAuthnLoginChallenge (WebAuthnRequest) returns (ChallengeResponse);
rpc CreateQrSession (QrSessionRequest) returns (QrSessionResponse);
rpc CreateDeviceLinkSession (CreateDeviceLinkSessionRequest) returns (QrSessionResponse);
rpc ClaimQrSession (ClaimQrSessionRequest) returns (QrSessionResponse);
rpc PollQrSession (QrPollRequest) returns (QrSessionResponse);
rpc ApproveQrSession (ApproveQrSessionRequest) returns (QrSessionResponse);
}
@@ -243,6 +245,22 @@ message QrSessionResponse {
string expiresAt = 3;
optional string qrPayload = 4;
optional QrAuthPayload auth = 5;
optional bool claimed = 6;
optional string claimedDeviceName = 7;
}
message CreateDeviceLinkSessionRequest {
string userId = 1;
string frontendUrl = 2;
}
message ClaimQrSessionRequest {
string sessionId = 1;
string deviceName = 2;
optional string fingerprint = 3;
optional string deviceType = 4;
optional string ipAddress = 5;
optional string userAgent = 6;
}
message ApproveQrSessionRequest {