Posts

Showing posts with the label MVC

Developing JWT (JSON web Token) based authentication

Image
Hello, You are going to see how we can implement custom authentication mechanism to our system.  Source code contains necessary projects (Web API, Console Application) in C# with  MVC patern so supposing you have basic information on that areas. Source code is here : https://github.com/TheMaty/JSONWebToken-Custom-Authorization I use Visual Studio 2019 in the study. Solution structure; AuthorizationServer project is ASP.NET Web Application with Web API template (which is MVC). It accepts any requests from client device with Client Id and Client Secret and generates Bearer token respectively. BackEndServer project is ASP.NET Web Application with Web API template (which is MVC). It acceptes bearer token, validates it then execute order that comes in request body (mostly JSON format)  BearerTokenRequestor project is a console application to simulate request send and recieve (Postman can already be used for that purpose) CryptoRandomDataGenerator project is a console application to create C