AuthGrantType
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Google 用于引导用户登录应用的网络服务的 OAuth2 授权类型。
枚举 |
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\u003eOAuth2 grant types determine how Google guides users to sign in to your app's web service.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAUTH_CODE\u003c/code\u003e type requires providing both an authentication URL and an access token URL, while \u003ccode\u003eIMPLICIT\u003c/code\u003e only requires an authentication URL.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAUTH_GRANT_TYPE_UNSPECIFIED\u003c/code\u003e is a default, non-functional value.\u003c/p\u003e\n"]]],[],null,["# AuthGrantType\n\nThe OAuth2 grant type Google uses to guide the user to sign in to your App's web service.\n\n| Enums ||\n|-------------------------------|-------------------------------------------------------------------------------------------------|\n| `AUTH_GRANT_TYPE_UNSPECIFIED` | Unspecified. |\n| `AUTH_CODE` | Authorization code grant. Requires you to provide both authentication URL and access token URL. |\n| `IMPLICIT` | Implicit code grant. Only requires you to provide authentication URL. |"]]