XAF - Using XAF's Security System in a DevExtreme App (with ASP.NET Web API/OData v4 powered by XPO)

XAF Team Blog
02 August 2019

This is part 2 of a series of posts designed to explain XAF’s security system and how it can be used in non-XAF .NET apps powered by XPO. If you are new to XAF’s security system or to this blog series, please review some of the reasons we think you should consider XAF’s security system in your next .NET application.  

Our new example consists of an ASP.NET Core Web API/OData v4 service on the server and the DevExtreme Data Grid UI on the client. The app starts with a login form and then displays a data grid with “protected” records for the logged user.

Future Plans

In our next blog post, we’ll create a WinForms example with simple, form-based authentication logic (login/password). This was the most requested configuration based on our most recent survey and past blog comments. In addition to generic descriptions, our examples will also include step-by-step tutorials. Based on user feedback, we may extend the demo with full CRUD operations.
We look forward to your feedback on this sample and your thoughts on XAF’s security system. Feel free to share your usage scenarios below and we’ll be happy to extend the demo where appropriate.
8 comment(s)
Customer55687
Customer55687
Yes it would be great tutorial love to implement XAF security systems in non XAF apps
3 August, 2019
renejdm
renejdm
Looking forward to see the complete tutorials with CRUD for WinForms.
4 August, 2019
Wojciech
Wojciech
Thumbs up for @renejdm comment!
4 August, 2019
Edhy Rijo
Edhy Rijo

Hi Denis,

I am also looking forward to the WinForms tutorials with CRUD.

I primary create WinForms application with another framework to handle business objects and security but using sub-classed DevExpress controls and have always been tempted to look into using XPO and for some reason I haven't had the time to do so.

Clear, realistic WinForms samples will help me a lot into making the jump to seriously explore XPO as my business objects if it can help with implementing security for log in and validations.

5 August, 2019
Brett Zook
Brett Zook

I've been in the process of trying to incorporate the XAF security system into an OData via WebApi app for several weeks now, using some of the techniques shown in this sample.

In general, reading data works fine, but I've run into many difficulties trying to implement the other CRUD operations, some of which are still unresolved. See https://www.devexpress.com/Support/Center/Question/Details/T756297 for background.

So, I'd be very interested in seeing the demo extended to include Create/Update/Delete. 

5 August, 2019
Brad Baker - MMC
Brad Baker - MMC
XAF needs to support multi dB/clients.  Can’t recommend using it.
5 August, 2019
SUDIANSYAH NOVI
SUDIANSYAH NOVI
Yes, please please please give us example fro implementation of XAF Security in Winforms . 
7 August, 2019
Anatol (DevExpress Support)
Anatol (DevExpress Support)

Hello everyone,

An example for WinForms is in our nearest plans. Many thanks for your feedback.

@Brad, I can see that we have discussed a similar question in the following ticket: https://www.devexpress.com/Support/Center/Question/Details/T670304/multi-tenant. Please note that our main concern was the number of concurrent users in a stateful ASP.NET WebForms application - thus, it is not related to this topic. It is definitely possible to connect the same XAF application to multiple databases:

How to connect different XPO data models to several databases within a single application

How to change connection to the database at runtime

If you encountered any issue related to multiple database connections in XAF, please feel free to post a ticket in our Support Center.

8 August, 2019

Please login or register to post comments.