`

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

阅读更多
以前一直分不清 authentication 和 authorization,其实很简单,举个例子来说:

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


在 computer science 领域再举个例子:

你要登陆论坛,输入用户名张三,密码1234,密码正确,证明你张三确实是张三,这就是 authentication;再一check用户张三是个版主,所以有权限加精删别人帖,这就是 authorization。
分享到:
评论
2 楼 superchangme 2017-07-25  
show it,you are you:authentication
through it,you can do sth:authorization
for example:
1.wechat want you login to authentication who you are ,so you need show your account and password to it.
2.wechat want use you camera,you can give it authorization

1 楼 深度交流社区 2017-04-10  
说的很清楚,学习了

相关推荐

Global site tag (gtag.js) - Google Analytics