How do REST APIs handle authentication and authorization?
Common methods:
- API Keys → Simple tokens.
- Basic Auth → Username & password (not secure without HTTPS).
- OAuth 2.0 / OpenID Connect → Standard protocols for secure access.
- JWT (JSON Web Tokens) → Widely used for stateless authentication.