An abstract base class for Security System authentication types.
Built-in authentication types that inherit this class are AuthenticationActiveDirectory and AuthenticationStandard, To implement a custom authentication, override the following virtual methods and properties:
Called when authentication is required. Authenticates a user trying to find the corresponding object by comparing logon parameter values with the information stored in the database. Returns the object if it is found.
The logon parameters specified in the Logon Window can be accessed via the SecuritySystem’s LogonParameters property. You can clear the logon parameters so they are not accessible in the application. For instance, a password can be hidden. For this purpose, clear these logon parameters in the ClearSecuredLogonParameters method.
Returns a list of business classes to be added to the Application Model. For instance, if you do not return the LogonParameters class, its Detail View will not be displayed in the Logon Window.
Returns true if a Logon Window should be displayed to get a user’s logon parameters. If you can get these parameters from another location, as in Active Directory authentication, return false.
Returns an object representing current logon parameters.
Indicates whether to enable the Logoff Action.
Recreates the Logon Parameters object when a user logs off.
A complete example is available in the How to: Use Custom Logon Parameters and Authentication topic.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the AuthenticationBase class.
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.