JWT Authentication Vs OAuth 2.0
JWT Authentication Vs OAuth 2.0
JWT Authentication Vs OAuth 2.0
Authentication
vs
OAuth 2.0
JWT Structure
JWT Authentication
OAuth 2.0
JWT Authentication in
ASP.NET Core Web API
@AramT87
1 What is JWT
JWT or Json Web Token is a self-
contained, digitally signed and
base64UrlEncoded format to
exchange data between two
entities
@AramT87
2 JWT Structure
Header
Includes the algorithm used to
sign/encrypt the JWT, usually it is
HMAC SHA-256 or HS256
Payload
Contains the claims which are
key,value pairs of info about the
resource owner and some
standard information like issuer,
audience, subject, issued at and
others
Signature
Encoding of the header and
payload hashed using the header's
algorithm with a secret
@AramT87
3 JWT Authentication
Using JWT Authentication you
can secure your API using
JWT formatted bearer tokens
@AramT87
7 JWT Authentication vs
OAuth 2.0
JWT Authentication doesn't
constrain you for how to
authenticate the client/user,
since the implementation can be
done and customized per need
@AramT87
Thank You
Follow me for more content
Aram Tchekrekjian
AramT87
CodingSonata.com/newsletters