/OBSOLETE_EF-Core-Security

Security system for Entity Framework Core with demos

Primary LanguageCSSMIT LicenseMIT

OBSOLETE - EF Core Security

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.

About

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.

Installing EF Core Security

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.

Getting Started

The following demos and examples for the following use-cases are available in this repositiory.

OData Service

The OData service demo souce is available at Demo ODataService.

DevExtreme Application

See the EFCoreSecurityDemos/EFCoreSecurityDevExtremeDemo example to learn how build it locally.

.NET OData Client

The .NET C# Console demo example demonstrates how to access the OData service from C# code.

Android OData Client

The Android demo example demonstrates how to access the OData service from the Android application.

Direct Access to the Entity Framework DBContext

The .NET C# Console demo example demonstrates how to use the EF DBContext directly.

Wiki

Learn more about this project in our wiki.