In our previous articles, we explored how authentication works using passwords, hashing, sessions, cookies, and JWTs.
But there's another interesting problem in backend development.
Imagine you're building a weather application. Your application needs to retrieve weather information from an external service such as a weather API.
Or perhaps you're building an application that allows users to upload files to a cloud storage service.
How does your application communicate with these external services securely?
How does one application prove that it is allowed to access another application's resources?
This is where concepts like API Keys, Access Tokens, and OAuth 2.0 come into the picture.
Let's understand them from the basics.
1.…