Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: release #132

Merged
merged 1 commit into from
Jan 21, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions packages/protos/io/restorecommerce/user.proto
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ service UserService {
rpc ExchangeTOTP (ExchangeTOTPRequest) returns (UserResponse);
rpc CreateBackupTOTPCodes (CreateBackupTOTPCodesRequest) returns (CreateBackupTOTPCodesResponse);
rpc ResetTOTP (ResetTOTPRequest) returns (io.restorecommerce.status.OperationStatusObj);
rpc MfaStatus (MfaStatusRequest) returns (MfaStatusResponse);
rpc GetUnauthenticatedSubjectTokenForTenant(TenantRequest) returns (TenantResponse);
}

Expand Down Expand Up @@ -111,6 +112,17 @@ message ResetTOTPRequest {
optional io.restorecommerce.auth.Subject subject = 2;
}

message MfaStatusRequest {
optional string identifier = 1;
optional io.restorecommerce.auth.Subject subject = 2;
}

message MfaStatusResponse {
optional bool has_totp = 1;
optional bool has_backup_codes = 2;
optional io.restorecommerce.status.OperationStatus operation_status = 3;
}

message TenantRequest {
optional string domain = 1;
}
Expand Down
Loading