This repository is deprecated. Instead, refer to the User Authentication and Group Authorization API for Entity Framework Core Apps repository. It demonstrates how to access data protected by the DevExpress XAF Security System with Entity Framework Core.
===============================================================
NOTE: We stopped maintaining this example starting from the EF Core 1.1.0 version. We do not carry out its active development in order to guarantee that this example works with the latest versions of EF Core. If you are interested in our support of the XAF Security module for EF Core, we would greatly appreciate it if you described your requirements and the exact use-scenarios where this support is needed.
This project allows you to secure a CRUD access to data in applications based on Entity Framework Core (EF Core). With EF Core Security you can grant and deny entity-level, object-level and member-level permissions for authenticated users.
In Visual Studio, you can use the GitHub Extension for VisualStudio to clone this repository.
Most of required external assemblies are loaded from NuGet (Microsoft.EntityFrameworkCore and others). Other external assemblies are located in the EFCoreSecurity/dependencies folder.
The following demos and examples for the following use-cases are available in this repositiory.
The OData service demo souce is available at Demo ODataService.
See the EFCoreSecurityDemos/EFCoreSecurityDevExtremeDemo example to learn how build it locally.
The .NET C# Console demo example demonstrates how to access the OData service from C# code.
The Android demo example demonstrates how to access the OData service from the Android application.
The .NET C# Console demo example demonstrates how to use the EF DBContext directly.
Learn more about this project in our wiki.