What is a Bearer token and how is it used in the Authorization header?
Ask by ICSM Computer
Updated 11 Jun 2025
What is a Bearer Token?
A Bearer token is a type of access token used in token-based authentication, typically JWT (JSON Web Token), which proves the identity of the client to a server. The term “bearer” means that whoever possesses the token is granted access — no additional proof is needed.
Format in HTTP Request
Bearer tokens are sent in the
Authorizationheader like this:Example:
Why It's Called "Bearer"
It means "whoever bears (holds) the token gets access" — just like cash: anyone holding it can spend it.
So:
Typical Flow of Bearer Token Usage
/api/auth/login:Authorizationheader for all future requests:Server-side Token Validation (ASP.NET)
In .NET Core:
In .NET Framework:
Use middleware like
Microsoft.Owin.Security.JwtBest Practices
Summary