HTTP Post Method for OAuth Specification 中提到的 'scope' 参数有什么用?
What is the use of 'scope' parameter mentioned in HTTP Post Method for OAuth Specification?
我想生成简单的 Post 方法。我知道 client_id 和 client_secret,但是,我不知道正文中存在的 Scope 参数。
详细图片:
此处的范围参数是一个逗号或space分隔的权限列表,向使用您的应用程序的人请求。它用于 OAuth 2.0 规范。例如,在 Facebook 中,您可以在 https://developers.facebook.com/docs/facebook-login/permissions/#basic-permissions 中看到权限集
所以你的例子可以像https://graph.facebook.com/oauth/authorize?
client_id=123456789
&redirect_uri=http://example.com/
&scope=publish_stream,share_item,offline_access,manage_pages
根据 Slack API 文档
OAuth scopes let you specify exactly how your app needs to access a
Slack user's account. As an app developer, you specify your desired
scopes in the initial OAuth authorization request. When a user is
responding to your OAuth request, the requested scopes will be
displayed to them when they are asked to approve your request
希望这篇link对你有用。
我想生成简单的 Post 方法。我知道 client_id 和 client_secret,但是,我不知道正文中存在的 Scope 参数。
详细图片:
此处的范围参数是一个逗号或space分隔的权限列表,向使用您的应用程序的人请求。它用于 OAuth 2.0 规范。例如,在 Facebook 中,您可以在 https://developers.facebook.com/docs/facebook-login/permissions/#basic-permissions 中看到权限集
所以你的例子可以像https://graph.facebook.com/oauth/authorize?
client_id=123456789
&redirect_uri=http://example.com/
&scope=publish_stream,share_item,offline_access,manage_pages
根据 Slack API 文档
OAuth scopes let you specify exactly how your app needs to access a Slack user's account. As an app developer, you specify your desired scopes in the initial OAuth authorization request. When a user is responding to your OAuth request, the requested scopes will be displayed to them when they are asked to approve your request
希望这篇link对你有用。