Authentication和Authorization的区别

Posted jqdy

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Authentication和Authorization的区别相关的知识,希望对你有一定的参考价值。

搞不太清楚Authentication和Authorization的区别,在网上搜了一下,lucky16的一篇文章讲的通俗,看了就懂,记录下来:

你要登机,你需要出示你的身份证和机票,身份证是为了证明你张三确实是你张三,这就是 authentication;而机票是为了证明你张三确实买了票可以上飞机,这就是 authorization。

在 computer science 领域再举个例子:
你要登陆论坛,输入用户名张三,密码1234,密码正确,证明你张三确实是张三,这就是 authentication;再一check用户张三是个版主,所以有权限加精删别人帖,这就是 authorization。

 

以上是关于Authentication和Authorization的区别的主要内容,如果未能解决你的问题,请参考以下文章

验证(Authentication)和授权(Authorization):

Authentication和Authorization的区别

认证 (authentication) 和授权 (authorization) 的区别

认证 (authentication) 和授权 (authorization) 的区别

Authentication 和 Authorization 的区别

使用 http 基本身份验证和 restful_authentication 插件注销