The so-called login authentication, is to verify the user login account password is correct, after the user login, each visit to the page data to carry the login information, Login authentication is to verify whether the information carried is legitimate.
OAuth authentication
OAuth authentication is more common is wechat login, Weibo denlog, qq login, etc., in short, the use of these more authoritative website or application open API to achieve user login, Instead of registering an account on your website or app, users can directly log in with their existing wechat, Weibo, qq and other accounts.
2)Cookie-Session authentication
The user enters the user name and password or uses the SMS verification code to log in to the system. After authentication, the server creates a Session information, saves the session ID to the cookie, and sends it back to the browser. The next time the client sends a request, it automatically carries cookie information. The server obtains Session information through cookie for authentication.
3) Token authentication of JWT
The previous methods all require the client and server to maintain a status information, such as exchanging cookie for session, or exchanging key for Redis value information. Jwt-based Token authentication schemes can eliminate this process.
Please accept it. The answer is not easy. No money to an adoption, rich to a reward. Happy New Year!!