Giter Site home page Giter Site logo

dotnetcore-sample's Introduction

.NET Core 5 Samples

Prefix

  • Mild.DesignPattern.**: Design Pattern Series
  • Mild.EF.**: Entity Framework
  • Mild.MVC.**: ASP.NET Core MVC
  • Microsoft.Learn.**: Microsoft docs & learn modules
  • Microsoft.**: Sample Code from Microsoft example

All Sample


Microsoft.Learn.SecureAspnetCoreIdentity

This project will be followed the learn modules: Secure an ASP.NET Core web app with the Identity framework

This project was created from the Code

Project Structure

├───start ## Starter template
└───final ## Final code from this tutorial 

Note: The original article was designed in Azure Cloud Shell. Some how I can't use it one the website. So, I modify the article for local development.

The original article provides PosgreSQL & SQL Server, this article will apply docker and PosgreSQL for local development.

Lesson

  1. Introduction
  2. Set up the environment
  3. Configure Identity support
  4. Customize Identity
  5. Configure multi-factor authentication
  6. Use claims with policy-based authorization

Unit 1: Introduction

An online dog toy retailer, named Contoso Pets, is creating an app for viewing and managing the product catalog. You're asked to secure the app.

This module explores using ASP.NET Core Identity to support authentication and authorization in an ASP.NET Core Razor Pages web app.

Learning objectives

In this module, you will:

  • Configure Identity support in an existing ASP.NET Core web app.
  • Provide new user registration capabilities.
  • Extend Identity UI components.
  • Customize multi-factor login capabilities.
  • Implement policy-based authorization using claims.
  • Customize and extend the underlying Identity data store.

Microsoft.React.Authentication.Starter

Setup .NET Core 5 with React Using react template (dotnet new reactredux -au Individual)

Features

  • useSPA
  • Class components
  • Openid Connect with Identity Server

Note: this project for educational purpose.


Mild.DesignPattern.MementoPattern

Demonstrate Memento Pattern: It able to undo and redo a state of objects.


Mild.EF.RazorPage.Example.ContosoUniversity

Following in Doc: docs.microsoft.com - Razor Pages with Entity Framework Core in ASP.NET Core

All explanation are inside inline comment

Features

  • Razor Page
  • SQLite

Mild.MVC.Authentication.Minimal

Features

  • MVC
  • Cookie Authentication (SSR)
  • Razor Page controlled by the Controller
  • Session Management

Limitation

  • No connect to any DB

Mild.MVC.Authentication.Openiddict.OAuth2.AuthorizationCodeRefreshToken

Features

  • MVC
  • Cookie Authentication (SSR)
  • Razor Page controlled by the Controller
  • Session Management
  • Use Openiddict for OAuth2

Limitation

  • No connect to any DB

Mild.MVC.Authentication.Openiddict.OAuth2.ClientCredentials

Enable the the Client Credentials Flow, which is suitable for machine-to-machine applications.

Features

  • MVC
  • Cookie Authentication (SSR)
  • Razor Page controlled by the Controller
  • Session Management
  • Use Openiddict for OAuth2

Limitation

  • No connect to any DB

Mild.MVC.Authentication.Openiddict.React


Mild.MVC.Minimal

Just a basic MVC


Mild.React.Starter

Moved to SukreepCode/Mild.ReactTS.Starter

Minimal setup .NET Core 5 with React TypeScript. Using reactredux template (dotnet new reactredux), removed Redux. Refactor from a class component to functional component.

Features

  • useSPA
  • TypeScript
  • No Redux
  • Functional components

For building this file

node merge-md.js

Other series

dotnetcore-sample's People

Contributors

mildronize avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.