Giter Club home page Giter Club logo

auth_app's Introduction

JwtApplication

About the project

This project implement the basic authentication and authorization for api using asp.net api

  • Hash user password with salt
  • Token base authorization (JWT with access and refresh token)
  • Role based authorization

This app implement 4 api endpoint:

  • Register new user: Create new user and get token
  • Login: Get token
  • Refresh token: Refresh token
  • Get all user (For testing)

An access token will expire in 30 seconds. A refresh token will expire in 60 seconds.

Built with

  • .NET v6.0.403 asp.net api
  • AspNetCore.Authentication.JwtBearer v6.0.6 (For authentication and authorization)
  • EntityFrameworkCore v7.0.0
  • EntityFrameworkCore.SqlServer v7.0.0
  • EntityFrameworkCore.Tools v7.0.0

Contact

You can contact with me by

auth_app's People

Watchers

Minh Trí 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.