mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 07:05:24 +00:00
feat: move totp and passkeys into plugins (C1)
This commit is contained in:
1 parent
f4f26a9b8b
commit
5c18435105
235 files changed
+22545
-5610
No files matched your search
@@ -232,6 +232,14 @@ export interface PluginSecrets {
|
||||
set: (key: string, value: string | null) => Promise<void>;
|
||||
/** Removes the acting user's secret. Needs secrets:own. Audited. */
|
||||
delete: (key: string) => Promise<void>;
|
||||
/**
|
||||
* Encrypts a value with the installation key, for a plugin that keeps a
|
||||
* secret in its own table and has to read it without an acting user (a
|
||||
* second factor checked during login). Needs secrets:own. Not audited.
|
||||
*/
|
||||
seal: (value: string) => Promise<string>;
|
||||
/** Reverses seal(). Null when the value cannot be decrypted. */
|
||||
unseal: (sealed: string) => Promise<string | null>;
|
||||
offer: (
|
||||
key: string,
|
||||
resolve: (userId: string) => Promise<string | null> | string | null,
|
||||
|
||||
Reference in new issue
Block a user