Class PanelPolicies
- Namespace
- FishMMO.ControlPanel.Auth
- Assembly
- FishMMO-ControlPanel.dll
The authorization policies every Control Panel action carries.
public static class PanelPolicies
- Inheritance
-
PanelPolicies
- Inherited Members
Remarks
These are policies over the existing four AccessLevel values plus a step-up
window, deliberately not a fifth access level: the enum is duplicated between
FishMMO.Auth.Core and the database layer and is baked into the wire format and the
in-game commands, so the panel expresses finer distinctions without touching it.
Fields
Operator
Administrator, with two-factor enrolled and satisfied.
public const string Operator = "Operator"
Field Value
OperatorStepUp
Administrator, plus a two-factor code proven within the step-up window.
public const string OperatorStepUp = "Operator.StepUp"
Field Value
Self
Authenticated, acting on their own account.
public const string Self = "Self"
Field Value
StepUpWindow
How long a step-up remains valid.
public static readonly TimeSpan StepUpWindow
Field Value
Support
Game master or above, with two-factor enrolled and satisfied.
public const string Support = "Support"
Field Value
SupportStepUp
Game master or above, plus a two-factor code proven within the step-up window.
public const string SupportStepUp = "Support.StepUp"
Field Value
Remarks
Moderation sits here rather than at Operator: banning an account is a game master's daily work, and requiring an administrator for it means the person handling the report cannot act. The step-up is what makes that safe — a borrowed unlocked session cannot ban anybody without the authenticator.
TwoFactorPending
A session that has proven a password but not yet a second factor. It can reach the two-factor endpoints and nothing else.
public const string TwoFactorPending = "TwoFactorPending"