@manhng

Welcome to my blog!

ASP.NET Core 3.0 + EF Core 3.0 + Web API + Swagger + JWT

October 7, 2019 21:29

ASP.NET Core 3.0 + EF Core 3.0 + Web API + Swagger + JWT

Dependencies

EF Core 3.0

 

 

Swaager

Authorization: Bearer eyJhb...Do

cUrl (link download)

curl -X POST "https://localhost:5001/api/v1/identity/register" -H "accept: */*" -H "Content-Type: application/json" -d "{\"email\":\"test@abc.com\",\"password\":\"Abc@123!\"}" -k

curl -X POST "https://localhost:5001/api/v1/identity/login" -H "accept: */*" -H "Content-Type: application/json" -d "{\"email\":\"test@abc.com\",\"password\":\"Abc@123!\"}" -k

curl -X POST "https://localhost:5001/api/v1/posts" -H "accept: */*" -H "Authorization: Bearer eyJhb...Do" -H "Content-Type: application/json" -d "{\"name\":\"ASP.NET Core + EF Core + WebAPI\",\"tags\":[\"ASP.NET Core\"]}" -k

Source code (link download)

WebAPI

January 10, 2018 00:14

Web API – A Solid Approach

, 8 Jan 2018

https://www.codeproject.com/Articles/1066348/Web-API-A-Solid-Approach

https://www.codeproject.com/Articles/1022462/Error-Handling-in-SOLID-Csharp-NET-The-Operation-R

https://www.codeproject.com/Articles/730191/Lightweight-Domain-Services-Library

https://www.codeproject.com/Articles/703634/SOLID-architecture-principles-using-simple-Csharp

Simple OAuth2 Authorization Server with Identity Server and .NET Core

, 7 May 2017

https://www.codeproject.com/Articles/1183421/Simple-OAuth-Authorization-Server-with-Identity-Se

https://www.codeproject.com/Articles/1171546/OAuth-Authorization-flows-explained-with-examples

OAuth2

https://damienbod.com/2015/11/08/oauth2-implicit-flow-with-angular-and-asp-net-5-identity-server/

https://leastprivilege.com/2014/03/24/the-web-api-v2-oauth2-authorization-server-middlewareis-it-worth-it/

https://stackoverflow.com/questions/37309986/identity-server-4-authorization-code-flow-example

OAuth2Login

https://www.codeproject.com/Articles/1006013/OAuth-Social-Logins-Facebook-Google-Twitter-PayPal

https://github.com/lepipele/OAuth2Login

Categories

Recent posts