TheNephalim / Webapi_JWT_Authentication

Secure web api endpoint with JWT

Home Page:http://www.decatechlabs.com/how-to-secure-webapi-using-json-web-tokenjwt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JWT Authentication for Asp.Net Web Api


Dependencies GitHub Issues Contributions welcome License

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

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

http://www.decatechlabs.com/how-to-secure-webapi-using-json-web-tokenjwt

License:MIT License


Languages

Language:C# 82.4%Language:HTML 9.2%Language:JavaScript 6.7%Language:CSS 1.6%Language:ASP 0.1%