---
title: "Different ways to authenticate your APIs"
url: https://daily.dev/posts/different-ways-to-authenticate-your-apis-ewznuhyhk
source_url: https://apoorvtyagi.tech/different-ways-to-authenticate-your-apis
type: article
source: "Hashnode"
author: "Apoorv Tyagi"
published: 2020-10-02T05:21:51.161Z
updated: 2021-10-07T14:17:10.317Z
tags: ["authentication"]
reading_time: 4
upvotes: 26
comments: 2
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Different ways to authenticate your APIs

**[Hashnode](https://daily.dev/sources/hashnode)** · [@apoorvtyagi](https://daily.dev/apoorvtyagi) · 4 min read · 26 upvotes · 2 comments

## Summary

Using basic authentication for authenticating users is usually not recommended since sending the user credentials for every request is a bad practice. API keys are a way to authenticate an application accessing any API without referencing an actual user. OAuth specifies mechanisms where an application can ask a user for access to services on behalf of the user, and receive a token as proof.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://apoorvtyagi.tech/different-ways-to-authenticate-your-apis>

## Community discussion

Top comments from developers on daily.dev.

**@babs** · 4 upvotes

> I use JWT to secure my API especially in spring security

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#authentication](https://daily.dev/tags/authentication)

[View this post on daily.dev](https://daily.dev/posts/different-ways-to-authenticate-your-apis-ewznuhyhk)
