简体   繁体   English

Android适用于Android版的OAuth 2.0客户端ID的用途是什么?

[英]What is the usage of OAuth 2.0 client id from Google Fit on Android

Im really confused from Google Api platform. 我真的很困惑谷歌Api平台。 Recently guide leads you to generate oAuth Client ID JSON. 最近的指南会引导您生成oAuth客户端ID JSON。 On the other hand there is no clear reason or need to generate or have at all. 另一方面,没有明确的理由或需要产生或根本没有。 Im doing these steps to enable Google Fit on Android: 我正在执行以下步骤以在Android上启用Google Fit:

  1. Get a project on Google APIs 获取有关Google API的项目
  2. Enable Google Fit API 启用Google Fit API
  3. Create OAuth Client ID on Android 在Android上创建OAuth客户端ID
  4. Provide fingerprint and package name (ApplicationID) that's it .. 提供它的指纹和包名称(ApplicationID)..

but what is the usage of that Json file of OAuth Client ID 😐? 但OAuth客户端ID的Json文件的用法是什么? or that client Id? 还是那个客户端ID?

111111111111-aaaaaaaaaaaaaaa.apps.googleusercontent.com (sample) 111111111111-aaaaaaaaaaaaaaa.apps.googleusercontent.com (样本)

The OAuth Client ID is obtained so that your app can access the Google Fit API. 获取OAuth客户端ID,以便您的应用可以访问Google Fit API。 As the SHA-1 of your certificate is already known by Google Fit, you do not need to enter the actual Client ID into your code. 由于Google Fit已知道您的证书的SHA-1,因此您无需在代码中输入实际的客户ID。 Your certificate is part of your app, and identifies the app to Google Fit. 您的证书是您应用的一部分,并将该应用标识为Google健身。

https://developers.google.com/fit/android/get-api-key https://developers.google.com/fit/android/get-api-key

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 集成Google时,“获取后端服务器的OAuth 2.0客户端ID”是什么意思? - While Integrating Google, what does 'Get your backend server's OAuth 2.0 client ID' means? 如何使用OAuth 2.0客户端ID调用Google Drive API? - How use OAuth 2.0 client ID for calling Google Drive API? Google帐户中用户ID的oAuth 2.0范围 - oAuth 2.0 scope for user ID from Google account 什么可以防止其他应用窃取我的 Google OAuth 客户端 ID? - What prevents another app from stealing my Google OAuth client ID? 在Android中使用Google OAuth 2.0 - working with the google OAuth 2.0 in android Android-使用OAuth 2.0登录Google - Android - Google login with OAuth 2.0 如何从Android中的Google Plus API获取OAuth 2.0令牌? - How to obtain oauth 2.0 token from google plus api in android? Google oauth 2.0客户端机密可以在客户端说.apk(android)或.xap(wp7)中进行硬编码吗? - can google oauth 2.0 client secret be hard-coded in client say .apk(android) or .xap(wp7)? 在“生成OAuth 2.0客户端ID”步骤中,应将什么作为程序包名称放入? - What should I put as package name in “Generate an OAuth 2.0 client ID” step? 您提供的 package 名称和指纹对已被此项目或其他项目中的 Android OAuth 2.0 客户端 ID 使用 - The package name and fingerprint pair you provided is already used by an Android OAuth 2.0 client ID in this project or another project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM