AuthenticationBase Class
An abstract base class for Security System authentication types.
Namespace: DevExpress.ExpressApp.Security
Assembly: DevExpress.ExpressApp.Security.v24.2.dll
NuGet Package: DevExpress.ExpressApp.Security
Declaration
Remarks
Built-in authentication types that inherit this class are AuthenticationActiveDirectory and AuthenticationStandard, To implement a custom authentication, override the following virtual methods and properties:
AuthenticationBase.Authenticate
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.
AuthenticationBase.ClearSecuredLogonParameters
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.
AuthenticationBase.GetBusinessClasses
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.
AuthenticationActiveDirectory.AskLogonParametersViaUI
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.
AuthenticationBase.LogonParameters
Returns an object representing current logon parameters.
AuthenticationBase.IsLogoffEnabled
Indicates whether to enable the Logoff Action.
-
Recreates the Logon Parameters object when a user logs off.
AuthenticationBase.SetLogonParameters
Initializes the logon parameters (required in the client-server security with custom logon parameters configuration only).
A complete example is available in the Customize Standard Authentication Behavior and Supply Additional Logon Parameters (.NET Framework Applications) topic.