Stateful and stateless authentication

Kenneth Choi
May 14, 2018 · 5 min read

Stateful authentication

How it works

Advantages

Disadvantages

Stateless authentication

How it works

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

Advantages

Disadvantages

A brief comments on the stateful and stateless authentication


Improved stateless authentication: sliding session


Conclusion

Kenneth Choi

Written by

CS Graduate @ Cornell; Previously working at Blackboard, IBM, Microsoft

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade