AuthGrantType
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
这种授权类型会由 Google 指导用户登录应用的网络服务。
枚举 |
AUTH_GRANT_TYPE_UNSPECIFIED |
授权授权类型无效。 |
AUTH_CODE |
授权代码授权要求开发者提供身份验证网址和访问令牌网址。 |
IMPLICIT |
隐式代码授权,仅要求开发者提供身份验证网址。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eGoogle sign-in for your app's web service is supported through different grant types.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize either authorization code grant or implicit grant for Google sign-in integration.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization code grant requires configuration of both authentication and token URLs, while implicit grant only needs the authentication URL.\u003c/p\u003e\n"]]],[],null,["# AuthGrantType\n\nThe grant type Google guides user to sign in to the App's web service.\n\n| Enums ||\n|-------------------------------|----------------------------------------------------------------------------------------------|\n| `AUTH_GRANT_TYPE_UNSPECIFIED` | Invalid auth grant type. |\n| `AUTH_CODE` | Auth code grant, requires developer to provide both authentication URL and access token URL. |\n| `IMPLICIT` | Implicit code grant, only requires developer to provide authentication URL. |"]]