官术网_书友最值得收藏!

  • Mastering OAuth 2.0
  • Charles Bihis
  • 306字
  • 2021-07-30 10:05:09

Authentication versus authorization

Before we dive into our discussion of OAuth 2.0, it is important to first define some terms. There are two terms in particular that are pivotal to our understanding of OAuth 2.0 and its uses: authentication and authorization. These terms are often conflated and sometimes interchanged, but they actually represent two distinct concepts, and their distinction is important to understand before continuing our discussion of OAuth 2.0.

Authentication

Authentication is the process of validating whether a person (or system) is actually who they say they are.

An example of this is when you go to the bank to withdraw money, and you provide your bank card and PIN to the teller. In some cases, the teller may ask for additional identification, such as your driver's license, to verify your identity. You may recognize this in other instances when you provide your username and password to a website, say, to view a document.

Authorization

Authorization is the process of determining what actions you are allowed to perform once you have been authenticated.

Referring to our previous bank example, once the teller has verified who you are, they can then proceed to fulfill your request to withdraw money. In order to do this, they must check whether you are allowed to withdraw money from the account that you are requesting (that is, you are actually the owner of the account). Relating to our website example, once you have authenticated by providing your username and password, the website will then check to see whether you are indeed allowed to see the document that you are requesting. This is usually done by looking up your permissions in some access control list.

Now that we have established the distinction between these two important concepts, we can look at what OAuth 2.0 actually is and the problems it solves.

主站蜘蛛池模板: 凉城县| 舟曲县| 固安县| 汶上县| 额尔古纳市| 东乌珠穆沁旗| 汉中市| 固始县| 涞水县| 剑河县| 潞城市| 阿拉善左旗| 修文县| 积石山| 海兴县| 濮阳市| 监利县| 弥勒县| 云南省| 洞头县| 绍兴县| 永寿县| 伊春市| 永定县| 金溪县| 绍兴市| 澳门| 宜兰县| 吉首市| 自治县| 彭州市| 雷波县| 舒城县| 武清区| 黄龙县| 邵阳市| 井研县| 安图县| 阳山县| 井冈山市| 分宜县|