GithubHelp home page GithubHelp logo

devexpress-examples / xaf-custom-logon-parameters Goto Github PK

View Code? Open in Web Editor NEW
0.0 31.0 1.0 182 KB

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

License: Other

HTML 17.40% C# 75.64% CSS 0.33% Batchfile 0.39% ASP.NET 6.24%
dotnet ef-core expressapp expressapp-framework expressappframework framework xaf xpo

xaf-custom-logon-parameters's Introduction

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

Documentation

More Examples

xaf-custom-logon-parameters's People

Contributors

andreykozhevnikov avatar nikolaevairina avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

nikolaevairina

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.