Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
ASP .NET Core. API User Identity & more + Azure Cloud deploy
Rating: 4.4 out of 5(106 ratings)
823 students
Created byJakub Kozera
Last updated 6/2022
English

What you'll learn

  • Authenticate & authorize users via JWT token
  • Deploy C# ASP .NET Core application and 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

8 sections39 lectures4h 32m total length
  • Course overview3:35

    Course introduction and overview

  • Starting point3:30

    Base project review

  • Migration to .NET Core 3.13:46
  • .NET Core on Linux/macOS course guide10:24

    Video for linux/macOS users explaining the necessary commands and tools to be able to follow along during the course.

    Commands and tools are listed in the resource 'linux & macOS Resources.txt'

Requirements

  • Basic knowlegde of REST APIs in .NET Core

Description

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 their 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 user 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

Who this course is for:

  • Developers with basic knowlegde of REST APIs in .NET Core, who want to extend their knowledge in the area of authentication, authorization, API Filters, and Azure deployment