Skip to content

Commit

Permalink
fix: add mfa status endpoint for users
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed Jan 21, 2025
1 parent 66de138 commit 5583877
Showing 1 changed file with 12 additions and 0 deletions.
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

0 comments on commit 5583877

Please sign in to comment.