ASP .NET Core. API User Identity & more + Azure Cloud deploy

Build web api with user authorization & authentication with C# ASP.NET Core, Entity Framework, Azure + Linux/macOS guide

The .NET Core platform is the latest tool from Microsoft enabling the creation of cross-platform applications, including web and web APIs.

What you’ll learn

  • Authenticate & authorize users via JWT tokens.
  • Deploy C# ASP .NET Core application & Database to Azure Cloud.
  • Automatic database migrations with Entity Framework Core.
  • create your own authorization policies.
  • create a user and role entities tables.
  • hash users password.
  • configure entity framework relationships.
  • send database queries from code using ORM (Entity Framework Core).
  • validate incoming models and return appropriate messages in case of incorrectness.
  • handle Cross-Origin Resource Sharing policy.
  • create Action API filters.
  • serve static files publicly & with limited user access.
  • inject dependecies into filters.
  • migrate .NET Core project from 2.2 version to 3.1.
  • handle exceptions globally with ExceptionFilter.
  • use the built-in container to inject dependencies.
  • log errors or specific information to a text file.
  • configure AzureSQL database.
  • create App Service and deploy API.
  • use the Postman to consume the web API.
  • limit access to Actions for users (authorize).
  • register custom ‘FluentValidation’ validators.
  • authorize based on users role.
  • read configuration from app settings json file.
  • authorize based on users claim and its value.
  • cache server responses.
  • authorize based on custom requirement.
  • restrict resource access.

Course Content

  • Introduction –> 4 lectures • 21min.
  • Authentication –> 7 lectures • 1hr 1min.
  • Authorization –> 5 lectures • 46min.
  • API Filters –> 5 lectures • 27min.
  • Utility API –> 4 lectures • 26min.
  • Deploying the application to the Azure cloud –> 7 lectures • 33min.
  • Summary –> 1 lecture • 5min.

ASP .NET Core. API User Identity & more + Azure Cloud deploy

Requirements

  • Basic knowlegde of REST APIs in .NET Core.

The .NET Core platform is the latest tool from Microsoft enabling the creation of cross-platform applications, including web and web APIs.

Due to its high performance, open-source code, and the possibility of implementation on various systems, it is becoming more and more popular.

 

The course presents how using ASP.NET Core a web API application is created, which ultimately can be consumed by SPA (single page application), mobile applications, IoT applications, or any application where communication takes place via the HTTP protocol. First of all, the course will show you how to build applications in accordance with the REST architecture. Good practices will be discussed, such as dependency injection, auto-mapping, error logging, model validation, use of object-relational mapping.

 

During the course you will:
➡ authenticate users via JWT tokens

➡ create your own authorization policies

➡ authorize users

➡ create a user and role entities tables

➡ hash users passwords

➡  authorize based on users claim and its value

➡ configure entity framework relationships

➡ validate incoming models and return appropriate messages in case of incorrectness

➡ use the built-in container to inject dependencies

➡ log errors or specific information to a text file

➡ authorize based on users role

➡ restrict resource access

➡ authorize based on custom requirement

➡ use the built-in container to inject dependencies

➡ log errors or specific information to a text file

➡ use the Postman to consume the web API