TOTP: Add D-bus errors
This commit adds D-bus errors for CreateSecretKey and VerifyOTP methods
Change-Id: I9cb1202ec1544d1c22be30248e42b4f36fc0cdfe
Signed-off-by: Ravi Teja <raviteja28031990@gmail.com>
diff --git a/yaml/xyz/openbmc_project/User/TOTPAuthenticator.interface.yaml b/yaml/xyz/openbmc_project/User/TOTPAuthenticator.interface.yaml
index 0457f04..dcf387a 100644
--- a/yaml/xyz/openbmc_project/User/TOTPAuthenticator.interface.yaml
+++ b/yaml/xyz/openbmc_project/User/TOTPAuthenticator.interface.yaml
@@ -17,6 +17,9 @@
description: >
Secret key string which will be shared to user to setup TOTP
applications to generate TOTP token.
+ errors:
+ - xyz.openbmc_project.Common.Error.UnsupportedRequest
+ - xyz.openbmc_project.Common.Error.NotAllowed
- name: VerifyOTP
description: >
@@ -34,6 +37,9 @@
type: boolean
description: >
Returns true if provided OTP is valid otherwise returns false.
+ errors:
+ - xyz.openbmc_project.Common.Error.UnsupportedRequest
+ - xyz.openbmc_project.Common.Error.NotAllowed
- name: ClearSecretKey
description: >