feat(daemon): EnrollTotp + IsTotpEnrolled + RevokeTotp D-Bus methods

This commit is contained in:
michael
2026-04-27 11:29:16 -07:00
parent 5fa81e5757
commit 8acf3f8f45
2 changed files with 89 additions and 0 deletions

View File

@@ -97,4 +97,24 @@
</defaults>
</action>
<action id="io.dangerousthings.AuthForge.enroll-totp">
<description>Enroll a TOTP secret</description>
<message>Authentication is required to enroll a TOTP secret.</message>
<defaults>
<allow_any>auth_self_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive>
<allow_active>auth_self_keep</allow_active>
</defaults>
</action>
<action id="io.dangerousthings.AuthForge.revoke-totp">
<description>Revoke a TOTP enrollment</description>
<message>Administrator authentication is required to revoke a TOTP enrollment.</message>
<defaults>
<allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive>
<allow_active>auth_admin_keep</allow_active>
</defaults>
</action>
</policyconfig>