pramilgawande / Webapi_JWT_Authentication

Secure web api endpoint with JWT

Home Page:https://decatechlabs.com/secure-webapi-using-jwt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JWT Authentication for Asp.Net Web Api

Updated to .Net Framework 4.7.2 & Visual Studio 2019


Dependencies Contributions welcome License

This is a webapi project written in visual studio and we will secure endpoint using JWT.

There is pre-requiste to implement OAUTH. you can learn about OAUTH here OAuth 2.0: The Definitive Guide

Basically, a JWT token look like:

<base64-encoded header>.<base64-encoded claims>.<base64-encoded signature>

JWT token has three sections:

  1. Header: JSON format which is encoded as a base64
  2. Claims: JSON format which is encoded as a base64.
  3. Signature: Created and signed based on Header and Claims which is encoded as a base64.

Testing

Get JWT


USE JWT

Dependencies

How to Use It ?

About

Secure web api endpoint with JWT

https://decatechlabs.com/secure-webapi-using-jwt

License:MIT License


Languages

Language:JavaScript 78.9%Language:C# 18.6%Language:HTML 2.0%Language:CSS 0.4%Language:ASP.NET 0.0%