Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access Token和 Bearer Token有什么区别呢? #1

Open
fengqiangboy opened this issue May 12, 2018 · 1 comment
Open

Access Token和 Bearer Token有什么区别呢? #1

fengqiangboy opened this issue May 12, 2018 · 1 comment

Comments

@fengqiangboy
Copy link

在第四节中介绍了几种token形式,请我波波老师,Access Token和 Bearer Token之间有什么区别呢?不都可以在拿到令牌之后直接去访问资源吗?

@archbobo
Copy link
Contributor

archbobo commented May 13, 2018

@fengqiangboy Bearer Token是Access Token的一种格式,这种格式一般是随机字符串无特殊意义,也就是不能从Bearer Token的字面推断出这个Token是谁颁发给谁的,像现钞一样谁拿到了都可以去消费使用;还有一种叫Proof of Possession(PoP) Token,这种Token里头包含所有者信息,可以校验拥有者,别人不能随便用。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants