Stateless authentication stores the user session data on the client side. Since the user session is stored on the client side, the server only have the capability to verify its validity by checking whether the payload and the signature match. Example: HTTP.
Payload:
{
id: 1234,
user: "kennethchoi",
FirstName: "Kenneth",
LastName: "Choi",
Expiration: 1525132799 // 2018-04-30T23:59:59+00:00
}
Signature (a string) using a specific algorithm and the private key to sign:
XxxxXXXxxxxXXXXXXxxxxXX
Labels: Web development