What is token-based authentication?

前端 未结 8 1863
既然无缘
既然无缘 2020-11-22 16:39

I want to understand what token-based authentication means. I searched the internet but couldn\'t find anything understandable.

8条回答
  •  半阙折子戏
    2020-11-22 17:29

    A token is a piece of data which only Server X could possibly have created, and which contains enough data to identify a particular user.

    You might present your login information and ask Server X for a token; and then you might present your token and ask Server X to perform some user-specific action.

    Tokens are created using various combinations of various techniques from the field of cryptography as well as with input from the wider field of security research. If you decide to go and create your own token system, you had best be really smart.

提交回复
热议问题