GithubHelp home page GithubHelp logo

cornflourblue / dotnet-5-jwt-authentication-api Goto Github PK

View Code? Open in Web Editor NEW
72.0 7.0 31.0 7 KB

.NET 5.0 - JWT Authentication API

Home Page: https://jasonwatmore.com/post/2021/04/30/net-5-jwt-authentication-tutorial-with-example-api

License: MIT License

C# 100.00%

dotnet-5-jwt-authentication-api's Introduction

dotnet-5-jwt-authentication-api's People

Contributors

cornflourblue avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

dotnet-5-jwt-authentication-api's Issues

Integration test

Hi Jason, Thanks for all you do.

how we can mock this authentication handler for integration tests?

VB fork of JWT Middleware

Hi, Jason.

If you have interesting to fork your idea in VB, please look to this repository https://github.com/Alex-1347/BackendAPI

I have expanded your middlware with Issuer, but this is not main future. This is my realistic template of backend API with a lot of realistic futures like

  • NET COTE 5 (VB.NET) BackendAPI project template with JWT Middleware AU,
  • API controller with anon and autorised request,
  • Service example,
  • Custom Attribute,
  • Custom backend port,
  • Config parameters,
  • MySQL database,
  • AES cryptor,
  • Masked real database pass in config,
  • Custom Logger,
  • Swagger API UI,
  • EF core,
  • EF Core extension function,

First 5 future has similar to you project, other is my template to a lot of similar project. Usually I write only to Linux with MySQL.
My project also used Naming conversion useful for VB programmers.

Project has link to you repository with Middleware, because this version based to your idea. However in my Backend API I can use 3 other version of JWT creator - (2) with IdentiryServer and (3) with regeneration JWT in controller, (4) with bridge JWT and Cookies (AspSessionID).

From my project need only delete a couple of comments and this project is ready to use working with real MySQL Linux DB with EF NET CORE 5 and helpful extension. Crypting function in my project is mandatory because I newer show password to detabase connect in clear form.

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.