JSON Web Token with REST Security


# JWT (JSON Web Token)

One of the main features of REST API is statelessness which means the server does not keep any client state (every HTTP Request happens in complete isolation), and this is where security issues arise as session for authentication and security is not used.


Instead, REST API uses arbitrary tokens to authenticate clients. As one of the standard for creating tokens, JSON Web Token is used to authenticate on the web in general, not only for REST services. It pass the identity of authenticated users and carry all the user's claims, such as authorization data.








Single Sign On is one of examples of JWT

* Liferay DXP uses OAuth 2.0 which is also token-based authentication.





References


Comments

Popular posts from this blog

Portlet Edit Mode (Portlet preference) to replace Portlet configuration

GoGo Shell & What can be deleted in Liferay Instance