| class AccountEvent |
Something that happened to an account, e.g. its password was changed, which IAccountEventPublisher tells the IAccountEventHandlers of, e.g. one that emails the user. The publisher fills what the code that raises it leaves out: the user from UserId, who did it, when, and from where. |
| class AccountEventEmailHandler |
Emails a user when the account changes, e.g. the password, so the user learns of a change that the user did not do. The email of a changed email address goes to the old address. See AccountEventEmailOptions to turn it off, or leave some kinds out. |
| class AccountEventEmailModel |
The model of the email that tells a user that the account changed, see AccountEventEmailHandler. |
| class AccountEventEmailOptions |
Options of AccountEventEmailHandler, which emails the users when their account changes, read from the "AccountEventEmails" section of the settings. |
| static class AccountEventEmailTexts |
The texts of the emails that tell the users their account changed, see AccountEventEmailHandler. The placeholders are {0} for the old value and {1} for the new one, or {0} for the two-factor method. |
| enum AccountEventKind |
What happened to an account, see AccountEvent. |
| class AccountEventPublisher |
The default IAccountEventPublisher, which fills the user of an event from its ID, who did it from the current user, and the time, IP address and user agent of the request, and tells the handlers one after another, in the request, so they can use its services, e.g. to render an email. An exception of a handler is logged. |
| abstract class AccountPasswordActionsPageBase<TUserRow> |
Base class for account password action pages, such as change password, set password, forgot password, and reset password. |
| class AccountRateLimitOptions |
Options for the rate limiter registered by AddAccountRateLimiter, which limits POST requests to account actions like login and forgot password per client IP address. |
| class AccountRateLimitPathOptions |
Per path overrides for Paths. Null values fall back to PermitLimit and WindowSeconds. |
| static class AccountRateLimitTexts |
Local text keys for account rate limiting. |
| class AccountSession |
A session of a user, from a sign-in to its end, which the sign-in cookie refers to by SessionId, see IAccountSessionStore. The times are in UTC. |
| static class AccountSessionClaimTypes |
The claims of the sessions of the users, see AddAccountSessions. |
| enum AccountSessionConcurrency |
Whether a user can have more than one session at a time, see Concurrent. |
| class AccountSessionCookieSetup |
Calls the AccountSessionCookieValidator from the events of the default cookie scheme, after the handlers that the application set, if any, so the sessions work without a change in the code that signs the users in. An application that gives its events as a type (EventsType) calls the validator from them instead. |
| class AccountSessionCookieValidator |
Ties the sign-in cookies to the sessions of the users (IAccountSessionStore): a sign-in starts a session, whose ID the cookie has as a claim; the session is checked at most every ValidationMinutes, and a cookie of a session that ended, or of a user who is no longer active, is signed out; a sign-out ends the session. A cookie of before the sessions gets one when it is checked. AccountSessionCookieSetup calls it from the events of the cookie scheme. |
| enum AccountSessionEndReason |
Why a session of a user ended, see EndReason. |
| class AccountSessionEventHandler |
Ends the sessions of a user when the account changes for security: the other sessions when the user changes the password, and all of them when an administrator sets it or a reset link does, or an administrator resets the two-factor authentication. A deactivated user is signed out by AccountSessionCookieValidator. |
| class AccountSessionManager |
The default IAccountSessionManager. |
| class AccountSessionOptions |
Options of the sessions of the users, see AddAccountSessions. |
| class AccountSetupFilter |
Keeps a signed in user who must still set up the account, e.g. change a password that an administrator set, from the application until it is done, by the first IAccountSetupRequirement that the user must do: a page redirects to the page that does it, and a service fails with the SetupRequiredCode error code, whose arguments are the path of that page, which a page handles by going there. The actions with AllowDuringAccountSetupAttribute are allowed. It is checked on each request, so a requirement takes effect at once, and ends when it is done. |
| class AccountSetupMvcOptionsSetup |
Adds AccountSetupFilter to the global filters of MVC, once. |
| class AccountSetupPasswordGrantPolicy |
Refuses a token with the password, e.g. the password grant of a token endpoint, to a user who must set something up before using the application, e.g. change a password that an administrator set (see IAccountSetupRequirement), as a token is used without the pages, so AccountSetupFilter can't keep the user to the page that does it. The user signs in with the browser once and does it. |
| static class AccountSetupTexts |
The texts of what a user must do before using the application, see IAccountSetupRequirement. |
| class AllowDuringAccountSetupAttribute |
Marks a controller or an action that a user who must still set up the account (see IAccountSetupRequirement) can use before it is done, e.g. the pages and services that change the password or set up two-factor authentication, the confirmation of the password, and signing out. AccountSetupFilter refuses the other ones until then. |
| abstract class BasePermissionKeyLister |
Base class for permission key listers that enumerate permission keys from a type source, including nested, assembly, and type-level permissions. |
| abstract class BasePermissionService<TUserPermissionRow,TUserRoleRow> |
Base permission service that provides common functionality for permission services. |
| abstract class BasePermissionService |
Base permission service that provides common functionality for permission services. |
| abstract class BaseRoleListService<TRow> |
Base role list service that lists the roles from their rows. The name of a role is the name field of the row, and its key is read from it when it has IRoleKeyRow. |
| abstract class BaseRolePermissionService<TRolePermissionRow> |
Base permission service that provides common functionality for permission services. |
| class BaseTranslationOptions |
Options for the translation feature. |
| abstract class BaseUserListService<TRow> |
Base user list service that lists the users from their rows. The username is the name field of the row, and the display name, email and active state are read from it when it has IDisplayNameRow, IEmailRow and IIsActiveRow. Only these fields are selected, so nothing like the password hash is loaded. |
| abstract class BaseUserRetrieveService<TRow> |
Base user retrieve service that provides common functionality for user retrieve services. |
| abstract class BaseUserRetrieveService |
Base user retrieve service that provides common functionality for user retrieve services. |
| class BasicEmailMessageRenderer |
Renders an email that code builds as simple HTML, without the layout of the emails, for when there is no IEmailMessageRenderer, e.g. outside a web application, or in a test. |
| static class BasicProgressDialogTexts |
Local text keys for the basic progress dialog. |
| static class BulkServiceActionTexts |
Local text keys for bulk service actions. |
| static class ChangePasswordFormTexts |
Local text keys for the change password form. |
| class ChangePasswordRequest |
The request model for a change password service. |
| static class ChangePasswordValidationTexts |
Local text keys for change password validation. |
| class ClamAVSettings |
Settings for ClamAV |
| class ClamAVUploadScanner |
Implementation of IUploadAVScanner which connects to ClamAV service |
| class DefaultDBAttribute |
Marks a migration to run on the default database. |
| class DefaultElevationHandler |
Default implementation of IElevationHandler |
| class DeleteRowActionFormatterAttribute |
An attribute that sets the formatter type to Serenity.Extensions.DeleteRowActionFormatter and its options. |
| static class DialogUtilsTexts |
Local text keys for dialog utilities. |
| class EmailButtonModel |
A button of an email, see the _EmailButton view, e.g. the link that resets the password. |
| static class EmailLayoutTexts |
The texts of the layout of the emails, see ~/Areas/Serenity.Extensions/Shared/_EmailLayout.cshtml. |
| class EmailMessageModel |
An email that code builds, e.g. an invitation or a two-factor code, which the EmailMessage view shows in the layout of the emails, see IEmailMessageRenderer. The texts are plain, and encoded when they are shown. |
| class EmailSender |
Default implementation of IEmailSender that sends emails via SMTP, a pickup folder, or an email queue. |
| static class EmailSenderExtensions |
Extension methods for IEmailSender. |
| class EnumSelectFormatterAttribute |
An attribute that sets the formatter type to Serenity.Extensions.EnumSelectFormatter and its options. |
| class EnvironmentSettings |
Settings related to the environment the application runs in, such as the externally and internally accessible URLs of the web site. |
| class ExcelImportRequest |
The request model for an Excel import service. |
| class ExcelImportResponse |
The response model for an Excel import service. |
| static class ExtensionsTexts |
|
| class ExtensionsTypeSource |
Base type source for apps using Serenity.Extensions assembly and its reference chain |
| class ExternalElevationProvider |
An external login provider that a user can confirm a sensitive action with, instead of the password, see IExternalElevationProviders. |
| static class ForgotPasswordFormTexts |
Local text keys for the forgot password form. |
| class ForgotPasswordRequest |
The request model for a forgot password service. |
| static class GetNextNumberHelper |
Helper for generating the next number in a sequence with a prefix. |
| class GetNextNumberRequest |
The request model for a get next number service. |
| class GetNextNumberResponse |
The response model for a get next number service. |
| static class HostMigrationExtensions |
Helper methods for app host migration commands, e.g. "migrate" to run database migrations before starting the app. |
| interface IAccountEventHandler |
Handles the events of the accounts, e.g. emails the user that the password was changed, see IAccountEventPublisher. Register one with services.AddSingleton<IAccountEventHandler, MyHandler>(), as there can be many. An exception that it throws is logged, and does not undo the change. |
| interface IAccountEventPublisher |
Tells the IAccountEventHandlers of something that happened to an account, e.g. the password was changed. |
| interface IAccountSessionManager |
Lists and ends the sessions of the users, see IAccountSessionStore. Ending sessions tells the account event handlers (SessionsRevoked), and, but for a new sign-in that replaces the others, revokes the other tokens of the user too (IAccountTokenRevoker). |
| interface IAccountSessionStore |
Stores the sessions of the users, see AccountSession and AddAccountSessions. The times are in UTC. |
| interface IAccountSetupRequirement |
Something that a signed in user must do before using the application, e.g. change a password that an administrator set, or set up two-factor authentication. AccountSetupFilter keeps the user to the page that does it, until it is done. Register one with services.TryAddEnumerable(ServiceDescriptor.Singleton<IAccountSetupRequirement, MyRequirement>()). |
| interface IAccountTokenRevoker |
Revokes the tokens of a user that are not sign-in cookies, e.g. the refresh tokens of an OpenID server, when the sessions of the user are ended for security, e.g. after a password change, see IAccountSessionManager. |
| interface IDataMigrations |
Applies the migrations of the application. Implemented by the project template (AppServices.DataMigrations) and resolved by RunMigrationsIf for the migrate command, and by Startup on every normal start. |
| interface IEmailMessageRenderer |
Renders the HTML of an email that code builds, e.g. an invitation or a two-factor code, in the layout of the emails. AddEmailSender registers RazorEmailMessageRenderer. |
| interface IEmailQueue |
Abstraction for an email queue that stores messages to be sent later. |
| interface IEmailSender |
Abstraction for sending email messages. |
| interface IExternalElevationProviders |
Gives the external login providers that a user can confirm a sensitive action with, instead of the password (see IElevationHandler): the ones linked to the account that can prove a new sign-in, e.g. Google. The external login feature registers one, e.g. AddExternalLoginElevation of Pro. |
| interface IHasPasswordChangeRequired |
A user definition that tells whether the user must change the password at the next sign-in, e.g. after an administrator set it, see PasswordChangeRequirement. |
| interface IImpersonationManager |
Decides whether a user can impersonate another one, from its options, the checks that always apply, and the IImpersonationPolicys. Pro registers one with AddImpersonation. |
| interface IImpersonationPolicy |
Decides whether a user can impersonate another one, see IImpersonationManager: a denial of any policy wins, else at least one must allow it, so nobody can impersonate unless a policy says so. The default one of Pro (DefaultImpersonationPolicy) allows the holders of a permission, and denies the super admins as targets; an application adds its own, e.g. one that lets a teacher impersonate the own students, with services.TryAddEnumerable(ServiceDescriptor.Singleton<IImpersonationPolicy, MyPolicy>()). |
| interface IInvitationManager |
Sends the invitations to sign up, and accepts them, see Invitation. Who can invite whom, with which roles, is decided by the IInvitationPolicys. The application creates the user when an invitation is accepted, on its sign-up page, and gives the user the roles of Accept. Pro registers one with AddInvitations. |
| interface IInvitationPolicy |
Decides whether a user can invite someone, with the roles of the invitation, see IInvitationManager: a denial of any policy wins, else at least one must allow it, so nobody can invite unless a policy says so. The default one of Pro (DefaultInvitationPolicy) allows the holders of a permission to invite with the roles whose permissions they could grant; an application adds its own, e.g. one that lets a teacher invite students into the students role, with services.TryAddEnumerable(ServiceDescriptor.Singleton<IInvitationPolicy, MyPolicy>()). The policies are asked again for each role when the invitation is accepted, as the inviter, and the roles that the inviter can no longer give are left out. |
| enum ImpersonationDecision |
What an IImpersonationPolicy says about a user impersonating another one. |
| static class ImpersonationExtensions |
Tells whether a user is impersonated, and by whom. |
| static class ImpersonationTexts |
The text of an action that is not available while the user is impersonated, see ValidateNotImpersonating. |
| interface IMyAccountLinkProvider |
Gives the links of the my account page for what a feature lets the users manage, e.g. the password, the two-factor authentication, or the external logins. Register one with services.TryAddEnumerable(ServiceDescriptor.Singleton<IMyAccountLinkProvider, MyProvider>()). |
| interface INormalizedEmailRow |
Implemented by user rows that store the value calculated by NormalizeEmail in a separate field. Users are looked up by that field when they request a password reset, instead of comparing the email by the collation of its column. |
| interface INormalizedUsernameRow |
Implemented by user rows that store the value calculated by NormalizeUsername in a separate field. BaseUserRetrieveService looks these users up by that field, instead of comparing the username by the collation of its column. |
| class Invitation |
An invitation to sign up, see IInvitationManager. The link of the invitation has a token, which is stored only hashed, so the invitations can't be accepted from the stored ones. |
| class InvitationAcceptance |
The result of accepting an invitation, see Accept: the roles that the application gives the new user, and the ones that were left out, as the inviter can no longer give them. |
| enum InvitationDecision |
What an IInvitationPolicy decides about an invitation. |
| class InvitationDraft |
An invitation that someone would send, which the IInvitationPolicys decide about: who is invited, and the roles the user will have when the invitation is accepted. |
| enum InvitationStatus |
The state of an Invitation. |
| interface IPasswordChangeRequiredRow |
A user row with a field that tells whether the user must change the password at the next sign-in, which the password pages clear when the user changes or resets the password, see AccountPasswordActionsPageBase. |
| interface IPasswordGrantPolicy |
Refuses a sign-in with the password that can't ask the user anything more, e.g. the password grant of a token endpoint, which can't ask for a two-factor code or send the user to a page that sets something up. The IPasswordSignInPolicys are asked first, see GetPasswordGrantDenial. Register one with services.TryAddEnumerable(ServiceDescriptor.Singleton<IPasswordGrantPolicy, MyPolicy>()). |
| interface IPasswordSignInPolicy |
Decides whether a user can sign in with the password of the application, which the sign-in pages and services ask after the password is checked, e.g. one that refuses the users who are linked to an external provider, as the password would get around the sign-in of the provider. See GetPasswordSignInDenial. |
| interface IPermissionGrantValidator |
Checks whether the current user can grant or revoke permissions, by the PermissionGrantOptions, and can change the account of a user, which only someone who could have granted all the permissions of the user can, so an administrator can't take over the account of someone with more rights, e.g. by setting its password. |
| interface IRoleGrantedPermissionsProvider |
Gives the permissions that roles grant, so that the ones who give a role can be checked to be able to grant them all, e.g. by IInvitationPolicys for the roles of an invitation. The application implements it with its own tables. |
| interface IRoleKeyRow |
Implemented by role rows that have a key besides their name, which does not change when the role is renamed. BaseRoleListService lists it as the key of the role. |
| interface ITranslateTextHandler |
Interface for handlers that translate texts. |
| interface ITwoFactorStatus |
Tells whether a user has two-factor authentication, for the features that don't depend on its implementation, e.g. a sign-in policy that lets a user with it sign in with the password. |
| interface IUserGrantedPermissionsProvider |
Gives the permissions that a user is granted, from the roles and the user's own grants, without the revoked ones, so that IPermissionGrantValidator can tell whether the current user could have granted them all before changing the account of the user, e.g. its password. The application implements it with its own tables. |
| abstract class MembershipPageBase<TUserRow> |
Base class for membership pages that provides common helpers for password hashing, salt generation, and user lookup. |
| class MembershipSettings |
Settings for membership. |
| abstract class MigrationAttributeBase |
Base attribute for migration attributes that validates the migration version format. |
| class MigrationKeyAttribute |
Marks a migration with a version key. |
| static class MigrationTagUtils |
Tag matching utilities for migrations that use dimensioned tags, e.g. db:Default for the database a migration targets, or env:Staging for the environments it may run in. |
| static class MigrationUtils |
Helper methods for FluentMigrator migrations, including table creation with identity keys and database type detection. |
| class MyAccountLink |
A link of the my account page, to a page where the user manages something of the account, e.g. the password or the two-factor authentication, which an IMyAccountLinkProvider gives. |
| enum MyAccountLinkState |
The state of what a link of the my account page is for, which its badge shows, see State. |
| static class MyAccountTexts |
The texts of the links of the my account page that the extensions give, see PasswordMyAccountLinkProvider. |
| class NotDuringImpersonationAttribute |
Marks the actions, or the controllers, that are not available while the user is impersonated, e.g. the ones on the security of the account, like the password or the two-factor authentication, which the filter of Pro's AddImpersonation refuses. |
| class PasswordChangeRequirement |
Requires a user to change the password, e.g. one that an administrator set, before using the application, when the user definition says so (see IHasPasswordChangeRequired) and the user signed in with the password. |
| static class PasswordGrantPolicyExtensions |
Asks the IPasswordSignInPolicys and the IPasswordGrantPolicys whether a user can get a token with the password, e.g. the password grant of a token endpoint. |
| class PasswordMyAccountLinkProvider |
The link of the my account page to the page that changes the password, or sets one for a user who has none, e.g. one who signs in with an external provider, see IHasPassword. |
| static class PasswordSignInPolicyExtensions |
Asks the IPasswordSignInPolicys whether a user can sign in with the password. |
| class PasswordStrengthRules |
The password strength rules. |
| class PasswordStrengthRulesDataScript |
This declares a dynamic script with key 'PasswordStrengthRules' that will be available from client side. |
| static class PasswordStrengthValidationTexts |
Local text keys for password strength validation. |
| class PasswordStrengthValidator |
Validates passwords against the configured password strength rules. |
| enum PermissionGrantDenial |
Why the current user can't grant a permission, or change the account of a user, see IPermissionGrantValidator. |
| class PermissionGrantListRequest |
The request of the permissions that the current user can't grant or revoke. |
| class PermissionGrantListResponse |
The permissions that the current user can't grant or revoke, so a page can show them as read-only. |
| class PermissionGrantOptions |
Who can grant or revoke which permissions, read from the "PermissionGrants" section of the settings, as a list of permission key patterns (see PermissionPattern) for each PermissionGrantTier, separated by commas, semicolons or white space (see SettingsList), e.g. |
| static class PermissionGrantTexts |
The messages of PermissionGrantValidator. |
| enum PermissionGrantTier |
Who can grant or revoke a permission, from the least to the most restrictive, see PermissionGrantOptions. |
| class PermissionGrantValidator |
The default IPermissionGrantValidator: a permission can be granted by the tier of the PermissionGrantOptions that it and each permission it implies have; a super admin can grant anything. The account of a user can be changed by the user, by a super admin, or by someone who could grant all the permissions that IUserGrantedPermissionsProvider gives for the user, but not by anyone else for a super admin. Only the permissions that the IPermissionKeyLister lists can be added, when there is one. |
| static class PermissionPattern |
Matches a permission key against a pattern, where "" stands for any text, e.g. "Northwind:" or "*:Delete", ignoring case. |
| class PermissionServiceOptions |
Options of the permission service of the application, see BasePermissionService, read from the "PermissionService" section of the settings. |
| class RazorEmailMessageRenderer |
Renders an email that code builds with the EmailMessage view, in the layout of the emails (~/Areas/Serenity.Extensions/Shared/_EmailLayout.cshtml), which an application can replace with views of the same paths in its own project. |
| static class RegexWithDefault |
Combines a regular expression that adds to a default one, so that configuring a pattern can't lose what the default covers by accident, like sensitive tables. Leaving out the default takes setting an option for that. |
| class ReportTree |
A tree of report categories and reports. |
| class ResetPasswordEmailModel |
The model for the reset password email. |
| static class ResetPasswordEmailTexts |
The texts of the email with the link that resets the password, see the ResetPasswordEmail view. Its subject is EmailSubject. |
| static class ResetPasswordFormTexts |
Local text keys for the reset password form. |
| class ResetPasswordOptions |
A class that mirrors the ResetPasswordOptions script type. |
| class ResetPasswordRequest |
The request model for a reset password service. |
| class ResetPasswordResponse |
The response model for a reset password service. |
| class SampleDataAttribute |
Marks a migration that adds sample data, so it only runs when the migration runner requests either all the sample data via AllTag, or the sample data of a module via GetTag, e.g. sample:Dashboards. |
| class SendResetPasswordResponse |
The response model for a send reset password service. |
| static class SetPasswordFormTexts |
Local text keys for the set password form. |
| static class SettingsList |
Splits a list that a setting holds as a single text, e.g. "admin, ops", separated by commas, semicolons or white space. A text, unlike an array, replaces the value of a setting as a whole in every settings file and environment variable, where the items of an array would be merged by their index. |
| static class SignInEventExtensions |
Publishes the sign-in events of the accounts, see IAccountEventPublisher, when the application registers one. A username that no user has is not stored, as it may be a password typed in the wrong box. |
| static class SignInFailureReasons |
Why a sign-in failed, the Reason of SignInFailed. |
| enum SignUpMode |
Who can sign up, see SignUp. |
| class SingleLineTextFormatterAttribute |
An attribute that sets the formatter type to Serenity.Extensions.SingleLineTextFormatter and its options. |
| class SiteAbsoluteUrl |
Default implementation for ISiteAbsoluteUrl |
| class SmtpSettings |
Settings for SMTP email sending. |
| class StaticTextBlockAttribute |
An attribute that sets the editor type to Serenity.Extensions.StaticTextBlock and its options. |
| class TargetDBAttribute |
Marks a migration to run only on the specified database type. |
| class TranslateTextInput |
A single text to be translated. |
| class TranslateTextOutput |
A single translated text. |
| class TranslateTextRequest |
The request model for translating one or more texts. |
| class TranslateTextResponse |
The response model for a text translation request. |
| class TranslationItem |
Represents a single translation entry in the translation grid. |
| class TranslationListRequest |
The request model for listing translations. |
| class TranslationListResponse |
The response model for a translation list request. |
| static class TranslationTexts |
Local text keys for the translation module. |
| class TranslationUpdateRequest |
The request model for updating user translations. |
| class TranslationUpdateResponse |
The response model for a translation update request. |
| class UserPreferenceRetrieveRequest |
The request model for retrieving a user preference. |
| class UserPreferenceRetrieveResponse |
The response model for retrieving a user preference. |
| class UserPreferenceUpdateRequest |
The request model for updating a user preference. |