Authentication vs Authorization

Terminology

Authentication (tokens)
The process of verifying who a user is.
Authorization (access tokens, keys)
The process of verifying what an application has access to.

Comparing these processes to a real-world example, when you go through security in an airport, you show your ID to authenticate your identity. Then, when you arrive at the gate, you present your boarding pass to the flight attendant, so they can authorize you to board your flight and allow access to the plane.

Source: - Authentication vs. Authorization on Auth0

Common API connection methods

Note: Basic Authentication (when you type your username and password) is not recommended for API connections.

API Keys

OAuth2 Tokens

JSON Web Tokens (JWT)

JWT Token Scheme

Attributions