Postagens

Mostrando postagens de dezembro, 2018

Token-based authentication using JSON Web Tokens

Imagem
The general concept behind a token-based authentication system is simple. Allow users to enter their username and password in order to obtain a token which allows them to fetch a specific resource - without using their username and password. Token-based authentication is predominantly used on the web because it allows users to stay logged onto a website without the use of cookies. In addition to a more user-friendly experience, tokens are more secure because they can be used to replace a user’s actual credentials. What’s more, token-based authentication can be used with several other types of authentication methods to create an improved user experience. When we use a Token-based authentication the main idea is to guarantee that the user logged is his own, and thus maintenance to access of the contents, and manage the access levels that it may have. Cookie-Based Authentication Cookie-based authentication has been the default, tried-and-true method for handling user authenticatio