/Webapi_JWT_Authentication

Secure web api endpoint with JWT

Primary LanguageJavaScriptMIT LicenseMIT

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 ?