Authentication on the Web (Sessions, Cookies, JWT, localStorage, and more) (edit)
https://www.youtube.com/watch?v=2PPSXonhIck
OAuth 2.0 and OpenID Connect (in plain English)
https://www.youtube.com/watch?v=996OiexHze0
OAuth 2.0 terminology
- Resource owner
- Client
- Authorization server
- Resource server
- Authorization grant
- Redirect URI
- Access token
Test OAuth 2.0 requests and debug responses.
Decode, verify and generate JWT
OpenID Connect
Test OpenID Connect requests and debug responses.
https://www.websiterank.co.uk/vi/domain/manhng.com/
Microsoft
https://devblogs.microsoft.com/aspnet/2019/10/
Generate Code using T4 Template
Identity Server 4
OpenID Connect and OAuth 2.0 Framework for ASP.NET Core
https://github.com/IdentityServer
OpenID Connect and OAuth 2.0 Framework for ASP.NET Core
Additional resources
-
Sharing cookies between applications
https://docs.microsoft.com/aspnet/core/security/cookie-sharing -
Introduction to Identity
https://docs.microsoft.com/aspnet/core/security/authentication/identity -
Rick Anderson. Two-factor authentication with SMS
https://docs.microsoft.com/aspnet/core/security/authentication/2fa -
Enabling authentication using Facebook, Google and other external providers
https://docs.microsoft.com/aspnet/core/security/authentication/social/ -
Michell Anicas. An Introduction to OAuth 2
https://www.digitalocean.com/community/tutorials/an-introduction-to-oauth-2 -
AspNet.Security.OAuth.Providers (GitHub repo for ASP.NET OAuth providers)
https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers/tree/dev/src -
Danny Strockis. Integrating Azure AD into an ASP.NET Core web app
https://azure.microsoft.com/resources/samples/active-directory-dotnet-webapp-openidconnect-aspnetcore/ -
IdentityServer4. Official documentation
https://identityserver4.readthedocs.io/en/latest/
JWT
https://bitoftech.net/2014/10/27/json-web-token-asp-net-web-api-2-jwt-owin-authorization-server/
https://salslab.com/a/jwt-authentication-and-authorisation-in-asp-net-core-web-api
https://www.blinkingcaret.com/2018/07/18/secure-an-asp-net-core-web-api-using-cookies/
https://garywoodfine.com/asp-net-core-2-2-jwt-authentication-tutorial/
https://www.meziantou.net/jwt-authentication-with-asp-net-core.htm
https://amanagrawal.blog/2017/09/18/jwt-token-authentication-with-cookies-in-asp-net-core/
https://stormpath.com/blog/where-to-store-your-jwts-cookies-vs-html5-web-storage
http://www.binaryintellect.net/articles/1fdc8b3f-06a1-4f36-8c0b-7852bf850f52.aspx/
https://www.red-gate.com/simple-talk/dotnet/net-development/using-auth-cookies-in-asp-net-core/
https://www.c-sharpcorner.com/blogs/jwt-based-tokenisation-via-net-core
JWT in ASP.NET 3.0
https://jasonwatmore.com/post/2019/10/11/aspnet-core-3-jwt-authentication-tutorial-with-example-api
https://www.codeproject.com/Articles/5160941/ASP-NET-CORE-Token-Authentication-and-Authorizatio
https://www.c-sharp.vn/dot-net-core/dot-net-core-bearer-token-with-jwt-e477ff