iayti / CleanArchitecture

ASP.NET Core 6 Web API Clean Architecture Solution Template
MIT License
654 stars 120 forks source link

Secure ASP.NET Core Web API using API Key Authentication #37

Closed chuki2 closed 2 years ago

chuki2 commented 3 years ago

Hi, instead of generate token by authenticate using email and password. Any idea how to implement API Key with in your clean architecture?

iayti commented 3 years ago

Hi,

I added the API Key for the JWT token example. If you are using the theme while developing a monolith application, you will need Login/Register. If you are using it for microservice architectures, Login will not be needed. You can use the proper external token directly.

Here's what I plan to add and change in the future

chuki2 commented 2 years ago

Ok great, solved my issues. I use the redis so I can terminate the token anytime.