feat(daemon): EnrollTotp + IsTotpEnrolled + RevokeTotp D-Bus methods
This commit is contained in:
20
debian/io.dangerousthings.AuthForge.policy
vendored
20
debian/io.dangerousthings.AuthForge.policy
vendored
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user