fix and update
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user