Can Oauth2 Access Token be shared by client?

↘锁芯ラ 提交于 2019-12-05 13:24:00

There are multiple ways to pass an access token to endpoints of protected resources. For example, as a query parameter like:

access_token={Your-Access-Token}

Another example is Bearer Token Usage (RFC 6750) in which an access token is embedded in Authorization header like:

Authorization: Bearer {Your-Access-Token}

How to pass an access token is defined by each service.

Access tokens must be kept secret. If Client B obtains an access token issued to Client A, Client B can behave as if it were Client A. Yes, there are risks of access token leakage, so access tokens have limited lifetime, and it is a reason that most services have a page to enable users to revoke access tokens.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!