Hide

YetaWF Documentation

Display
Print

YetaWF_Identity_RolesSelector Component

YetaWF_Identity_RolesSelector (Display)

Shows a list of roles in a grid. The model contains the list of roles.

Model Type: YetaWF.Core.Serializers.SerializableList<YetaWF.Core.Identity.Role>

For information about roles in YetaWF, see the Authorization topic.

[Caption("Two-Step Authentication"), Description("Shows which roles require mandatory two-step authentication")]
[UIHint("YetaWF_Identity_RolesSelector"), ReadOnly]
public SerializableList<Role> TwoStepAuth { get; set; }

YetaWF_Identity_RolesSelector (Edit)

Shows a list of all roles in a grid. Individual roles can be selected/deselected. The model contains the list of selected roles.

Model Type: YetaWF.Core.Serializers.SerializableList<YetaWF.Core.Identity.Role>

For information about roles in YetaWF, see the Authorization topic.

AdditionalMetadata Attributes

NameTypeDefaultDescription
HeaderbooltrueDefines whether the grid header is shown.
ShowFilterboolfalseDefines whether the grid filters are shown.
ExcludeUser2FAbool?nullDefines whether the role "User (two-step authentication setup required)" is excluded from the list.
[Caption("Two-Step Authentication"), Description("Defines which roles require mandatory two-step authentication")]
[UIHint("YetaWF_Identity_RolesSelector"), AdditionalMetadata("ExcludeUser2FA", true)]
public SerializableList<Role> TwoStepAuth { get; set; }