act: (
action: string,
body: Record<string, any>,
) =>
| { errors: string[]; ok: boolean }
| {
dn: string;
message: string;
ok: boolean;
policy: {
description: string;
dn: string;
mechanisms: string[];
name: string;
precedence: number;
secondFactors: string[];
};
}
| {
dn: string;
message: string;
name: string;
ok: boolean;
removed: boolean;
} = ...
Answers the authentication policy's acts beside save and reset (#1148).