AuthenticationBase Class
An abstract base class for Security System authentication types.
Namespace: DevExpress.ExpressApp.Security
Assembly: DevExpress.ExpressApp.Security.v25.1.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:
- Authenticate(IObjectSpace)
- 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.
- ClearSecuredLogonParameters()
- The logon parameters specified in the Logon Window can be accessed via the SecuritySystem’s
LogonParametersproperty. 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 theClearSecuredLogonParametersmethod. - 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.
- AskLogonParametersViaUI
- Returns
trueif 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, returnfalse. - LogonParameters
- Returns an object representing current logon parameters.
- IsLogoffEnabled
- Indicates whether to enable the
LogoffAction. - Logoff()
- Recreates the Logon Parameters object when a user logs off.
- SetLogonParameters(Object)
- 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.
See Also