InnoDevDay #2
in JS World
JSON Web Token
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOjEyMzQ1Njc4OTAsIm5hbWUiOiJKb2huIERvZSIsImFkbWluIjp0cnVlfQ.eoaDVGTClRdfxUZXiPs3f8FmJDkDE_VCQFXqKxpLsts
{
"alg": "HS256",
"typ": "JWT"
}
{
"sub": 1234567890,
"name": "John Doe",
"admin": true
}
HMACSHA256(
base64UrlEncode(header) + "." +
base64UrlEncode(payload),
) secret base64 encoded
Spec prepared by Microsoft, NRI, Ping Identity
OAuth 2.0 is not an authentication protocol.
Open authorization framework that enables a third-party apps to obtain limited access to an HTTP service.
Simple identity layer on the top on OAuth 2.0 protocol.
Allow client of all types to request and receive info about authenticated session and end-users.
probably
Draft spec prepared by Microsoft, Google, Salesforce, ...
simple and widely known
tailored towards bigger and more complex apps - WalmartLabs
oautho2orize.js = Express.js + passport.js + oauth2
Express.js + MongoDB + Redis + JWT
Not on Win64 :(
Strange release cycle