Code Monkey home page Code Monkey logo

authz-custom-middleware's Introduction

Authorization in ASP.NET Core

This repo contains the source code for a series of blog posts I'm writing about authorization in ASP.NET Core. You can check all the posts here: Authorization in ASP.NET Core - Series.

Blog posts and code - how to follow

Since there's a lot to cover, this repo is going to be updated incrementally, together with each post.

To make it practical for you to both read the post and follow through with the code, there will be a branch for each post I publish. This way you can see the snapshot of how it looked like when I published the post.

The main branch will contain the latest state always.

Running the app:

The app uses a SQL Server database to store its data. At the root of the repo, you can find a docker-compose.yml which will start both SQL Server and IdentityServer for you.

After executing docker-compose up, you can start debugging the API using your preferred IDE. The API project will automatically create and migrate the database using EF Migrations.

The initial migration will seed the database with users and permissions so you don't have to do anything to get started.

The users you can use to login are: (If you ever used IdentityServer you might be familiar with them ๐Ÿ˜„).

User Password
bob bob
alice alice

If all worked you should see the Swagger page and should be able to authenticate and call the endpoint.

Requisites

  • .NET SDK 5.*
  • Docker/Compose (only if you want to run the app locally)

authz-custom-middleware's People

Contributors

joaopgrassi 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.