Skip to content

How to customize standard authentication behavior and supply additional logon parameters in XAF applications

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/xaf-custom-logon-parameters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XAF - Customize Logon Parameters

This example demonstrates how to customize standard authentication behavior and supply additional logon parameters in XAF applications. The default login form displays User Name and Password editors. This sample customizes the login form to show Company and Application User lookup editors instead of User Name.

Login form

Implementation Details

ASP.NET Core Blazor

  1. Define a Company class that contains company names. This class should contain a list of ApplicationUser objects as a part of a one-to-many relationship. Add the second part of this relationship to the ApplicationUser class generated by the Solution Wizard. Finally, add the Company class to your application’s DbContext.
  2. Create a custom logon parameter class that uses the Company class. To see an example, refer to the following file - [CustomLogonParameters.cs].
  3. Implement [custom authentication] that uses custom logon parameters.
  4. Implement a custom [authentication provider] that creates an instance of the custom authentication strategy.
  5. Pass custom classes to the Security System. To see an example, refer to the following file - Startup.cs.
  6. Add demo data.
  7. Generate a demo database.
  8. Run the application.

For detailed instructions, refer to the following topic: Customize Standard Authentication Behavior and Supply Additional Logon Parameters (Blazor).

WinForms and ASP.NET Web Forms

For detailed instructions, refer to the following topic: Customize Standard Authentication Behavior and Supply Additional Logon Parameters (WinForms & ASP.NET Web Forms).

Files to Review

  • Company.cs
  • [CustomLogonParameters.cs]
  • [CustomAuthentication.cs]
  • [CustomAuthenticationStandardProvider.cs]

Documentation

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

How to customize standard authentication behavior and supply additional logon parameters in XAF applications

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published