Table of Contents

Class AccessLevelRequirement

Namespace
FishMMO.ControlPanel
Assembly
FishMMO-ControlPanel.dll

Requires a minimum AccessLevel, and optionally that two-factor has been satisfied on the session and that a code was proven within the step-up window.

public sealed class AccessLevelRequirement : IAuthorizationRequirement
Inheritance
AccessLevelRequirement
Implements
Inherited Members

Constructors

AccessLevelRequirement(byte, bool, bool)

Creates a requirement.

public AccessLevelRequirement(byte minimum, bool requireTwoFactor, bool requireStepUp)

Parameters

minimum byte
requireTwoFactor bool
requireStepUp bool

Properties

Minimum

Minimum access level.

public byte Minimum { get; }

Property Value

byte

RequireStepUp

Whether a code must have been proven within the step-up window.

public bool RequireStepUp { get; }

Property Value

bool

RequireTwoFactor

Whether the session must have satisfied two-factor.

public bool RequireTwoFactor { get; }

Property Value

bool