开发者构建软件时,通常会包含在 Web 服务器上运行的模块、在浏览器中运行的其他模块,以及作为原生移动应用运行的其他模块。开发者和使用其软件的用户通常会将所有这些模块视为单个应用的一部分。
Google 的 OAuth 2.0 实现支持这种世界观。如需使用任何基于 OAuth2.0 的服务,您必须在 Google API Console中设置软件。 API Console 中的组织单元是“项目”,可以对应于多组件应用。对于每个项目,您都可以提供品牌信息,并且必须指定应用将访问哪些 API。多组件应用的每个组件都由客户端 ID 进行标识,该 ID 是 API Console中生成的唯一字符串。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2024-11-09。"],[[["Google's OAuth 2.0 implementation allows developers to manage authorization for multi-component applications (web, mobile, etc.) under a single project in the Google API Console."],["User consent for a specific scope granted to one component (e.g., web app) within a project is extended to other components (e.g., Android app) in the same project, streamlining the authorization process and preventing redundant prompts."],["Client IDs, unique identifiers for each application component, are used by Google's authorization infrastructure to manage and track access permissions within a project."],["This cross-client authorization ensures a seamless user experience by recognizing prior user consent and leveraging it across different parts of the same application."],["Developers can obtain OAuth 2.0 access tokens using various methods depending on the platform, and Google's infrastructure uses existing user approvals to minimize authorization requests."]]],[]]