-
Notifications
You must be signed in to change notification settings - Fork 14
Field Security
In order to support access control on a per field level , Harmony Core provides AuthorizeFieldAttribute
. Use in conjunction with an ASP.Net Identity Provider this do one of two things. It can restrict access to a field to sessions that have been authenticated, or it can restrict access to sessions that have a particular role assigned to them. Roles are specified by passing in a comma separated list of the roles that should have access to this following field. If no roles are specified, then the field requires the user to be logged in but not with any particular role.
In order to support this authorization filtering we have another attribute that gets applied to controllers where you want this behavior. HarmonyFieldSecurity
, this is a replacement for EnableQuery
and as such it takes all the same arguments. The only difference is HarmonyFieldSecurity
changes the request dispatching mechanism to remove non visible fields from the EDM Model for the current request.
-
Tutorial 2: Building a Service from Scratch
- Creating a Basic Solution
- Enabling OData Support
- Configuring Self Hosting
- Entity Collection Endpoints
- API Documentation
- Single Entity Endpoints
- OData Query Support
- Alternate Key Endpoints
- Expanding Relations
- Postman Tests
- Supporting CRUD Operations
- Adding a Primary Key Factory
- Adding Create Endpoints
- Adding Upsert Endpoints
- Adding Patch Endpoints
- Adding Delete Endpoints
-
Harmony Core Code Generator
-
OData Aware Tools
-
Advanced Topics
- CLI Tool Customization
- Adapters
- API Versioning
- Authentication
- Authorization
- Collection Counts
- Customization File
- Custom Field Types
- Custom File Specs
- Custom Properties
- Customizing Generated Code
- Deploying to Linux
- Dynamic Call Protocol
- Environment Variables
- Field Security
- File I/O
- Improving AppSettings Processing
- Logging
- Optimistic Concurrency
- Multi-Tenancy
- Publishing in IIS
- Repeatable Unit Tests
- Stored Procedure Routing
- Suppressing OData Metadata
- Traditional Bridge
- Unit Testing
- EF Core Optimization
- Updating a Harmony Core Solution
- Updating to 3.1.90
- Creating a new Release
-
Background Information