filmov
tv
API KEY Authentication and Authorization in .NET (The right way)

Показать описание
API Key authentication is everywhere, but in #dotnet I've seen bad practices...
One widespread and lately taught around is using Authorization Filters to perform Authentication.
PLEASE, don't do it! Why?
You don't leave the front of your house open, and just ask who is around when they reach your bedroom door, or your living room right?
Same with your APIs, that's why I created a sample project you can access the code in full to see how to implement API Key in the right way, with READ/WRITE permissions.
The code is structured to differentiate between Authentication and Authorization, which is extremely important to understand at all levels of seniority.
6 words cheatsheet:
AUTHENTICATION (WHO) = MIDDLEWARE
AUTHORIZATION (WHAT) = FILTERS
The code can be found here
Join this channel to get the latest updates on
#dotnetprogramming
#cqrs
#dependencyinjection
#refactoring
#linux
@dariogriffo
One widespread and lately taught around is using Authorization Filters to perform Authentication.
PLEASE, don't do it! Why?
You don't leave the front of your house open, and just ask who is around when they reach your bedroom door, or your living room right?
Same with your APIs, that's why I created a sample project you can access the code in full to see how to implement API Key in the right way, with READ/WRITE permissions.
The code is structured to differentiate between Authentication and Authorization, which is extremely important to understand at all levels of seniority.
6 words cheatsheet:
AUTHENTICATION (WHO) = MIDDLEWARE
AUTHORIZATION (WHAT) = FILTERS
The code can be found here
Join this channel to get the latest updates on
#dotnetprogramming
#cqrs
#dependencyinjection
#refactoring
#linux
@dariogriffo
What Are API Keys, And Why Are They So Important? | System Design Interview Basics
API Key Authentication Best Practices
Top 12 Tips For API Security
Implementing API Key Authentication in ASP.NET Core
API KEY Authentication and Authorization in .NET (The right way)
How To Implement API Key Authentication In ASP.NET Core
API access tokens: how do they work, and how do they compare to authentication using API keys?
API Authentication via API Keys | AWS API Gateway
#40 🚀 Build a RESTful Job Application Service with User Roles & CRUD in Go #golang
'Basic Authentication' in Five Minutes
Postman Tutorial - API Key Authorization in Postman
The A to Z of API AuthoriZation
Part 14: Authorization and Authentication in APIs | Postman Authorization and Authentication
Set Up Authorization for Your Public Apis
ID Tokens VS Access Tokens: What's the Difference?
Learn Key based API Authentication in 8 Minutes | .Net Core C# | KeyBasedApiAuthentication | Sukhraj
OAuth 2 Explained In Simple Terms
5 JavaScript API Key Mistakes (and how to fix them)
Using API Key Authorization and Custom Middleware to Secure Web APIs - Part 4
API Key Auth with JMeter
How to Add an API Key in Postman (2024)
What is API Authentication?
Enable API Key Authentication with API Connectivity Manager
Microservices Authentication/Authorization architectural pattern
Комментарии