Skip to content

sametoz/aspnet-core-jwt-example

Repository files navigation

How to use

  1. Download or clone this repo
  2. Open folder in terminal and type : "dotnet run"
  3. Find any REST Client. Make sure the request type is POST. Type the username and password in body with JSON format. Here is the hint:

{ "Username":"admin", "Password":"P@ssw0rd" }

Server will return you jwt token.

  1. Copy this token and open another rest call and set its type to GET.
  2. Add a header. Key: Authorization Value: Bearer {your token}
  3. When hit the enter, server will be return promotion code! :D

**

NOTE:

** I prepared this example thanks to Burak Selim Şenyurt's article and I understood the basics of jwt and user authentication. https://buraksenyurt.com/post/jwt-json-web-token-kullanimi

About

very simple jwt authentication example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages