OAuth 概览
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
您的应用向 Business Profile API 发送的每个请求都必须包含授权令牌。授权令牌可向 Google 标识用户或应用,以允许其访问 Business Profile API。您的应用必须使用 OAuth 2.0 协议才能对请求进行授权。
OAuth 设置指南介绍了可用于在您的平台上实现 OAuth 2.0 的不同方法。Google Identity Platform 可以提供本指南会使用的 Google 登录和 OAuth 功能。
实现 OAuth 2.0 可为您带来以下好处:
- 保护对企业主数据的访问权限。
- 在企业主登录其 Google 账号时确认其身份。
- 确认合作伙伴平台或应用可以在获得企业主明确同意的情况下访问并修改营业地点数据。企业主之后可以撤消此访问权限。
- 确认合作伙伴平台的身份。
- 让合作伙伴平台可以代表企业主执行线上或线下操作。这包括回复评价、创建帖子和更新菜单项。
- 让有多个参与者的多步工作流程实现透明化,如管理邀请。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-29。
[null,null,["最后更新时间 (UTC):2025-08-29。"],[[["\u003cp\u003eBusiness Profile API requests require an authorization token obtained through OAuth 2.0 for user or application identification.\u003c/p\u003e\n"],["\u003cp\u003eOAuth 2.0 implementation safeguards business data, verifies owner identity, and grants controlled access to partner platforms.\u003c/p\u003e\n"],["\u003cp\u003ePartner platforms can utilize OAuth 2.0 to perform actions on behalf of the business owner, including managing reviews, posts, and menus, with the owner's explicit and revocable consent.\u003c/p\u003e\n"]]],[],null,["# OAuth overview\n\nEvery request that your application sends to the Business Profile APIs must include an\nauthorization token. The authorization token identifies the user or the application to Google,\nwhich allows access to the Business Profile APIs. Your application must use\n[OAuth 2.0](/identity/protocols/OAuth2) protocol to authorize requests.\n\nThe\n[OAuth setup](/my-business/content/oauth-setup)\nguide explains the different methods that you can use to implement OAuth 2.0 on your\nplatform. The [Google Identity Platform](/identity/choose-auth) provides the Google\nSign-In and OAuth functionality that's used throughout this guide.\n\nThe implementation of OAuth 2.0 provides the following benefits:\n\n- Protects access to the business owner's data.\n- Establishes the identity of the business owner when they sign in to their Google Account.\n- Establishes that a partner platform or application can access and modify location data with explicit consent from the business owner. The owner can later revoke this access.\n- Establishes the identity of the partner platform.\n- Enables partner platforms to perform online or offline actions on behalf of the business owner. This includes responses to reviews, creation of posts, and updates to menu items.\n- Allows multi-step workflows with multiple participants to be made transparent, such as management invitations."]]