From 3dc5e8629dd3cd6b27bff2d0777770ab3ae4518e Mon Sep 17 00:00:00 2001 From: lhhyung Date: Fri, 18 Oct 2024 14:19:25 +0900 Subject: [PATCH] fix: Fix error in OTP confirm when createing user_ secret_id --- src/spaceone/identity/manager/mfa_manager/otp_mfa_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spaceone/identity/manager/mfa_manager/otp_mfa_manager.py b/src/spaceone/identity/manager/mfa_manager/otp_mfa_manager.py index b52c5d2..f8ddb61 100644 --- a/src/spaceone/identity/manager/mfa_manager/otp_mfa_manager.py +++ b/src/spaceone/identity/manager/mfa_manager/otp_mfa_manager.py @@ -62,7 +62,7 @@ def set_mfa_options(self, user_mfa: dict, credentials: dict): elif mfa_state == "DISABLED": otp_secret_key = self.get_cached_otp_secret_key(credentials) - user_secret_info = secret_manager.create_user_secret(otp_secret_key) + user_secret_info = secret_manager.create_user_secret({"otp_secret_key": otp_secret_key}) user_mfa["options"]["user_secret_id"] = user_secret_info.get("user_secret_id") return user_mfa