# Google/Open ID 认证

**URL:** https://meta.discourse.org/t/oauth2-with-google-open-id/163226
**Category:** Support
**Created:** [2020年九月7日 06:39 UTC](https://meta.discourse.org/t/oauth2-with-google-open-id/163226 "2020-09-07T06:39:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Vijay\_Vantipalli](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vijay_vantipalli/32/192329_2.png) [@Vijay\_Vantipalli](https://meta.discourse.org/u/Vijay_Vantipalli)
#### Post date: [2020年九月7日 06:39 UTC](https://meta.discourse.org/t/oauth2-with-google-open-id/163226/1 "2020-09-07T06:39:49Z")

</div>

大家好，

有个小问题想请教：

- `oauth2_enabled` - 勾选此项以启用该功能
- `oauth2_client_id` - 来自您提供商的客户端 ID
- `oauth2_client_secret` - 来自您提供商的客户端密钥
- `oauth2_authorize_url` - 您的提供商的授权 URL
- `oauth2_token_url` - 您的提供商的令牌 URL

上述字段是否等同于应用程序“设置”→“登录页面”中的以下字段？

### 启用 Google OAuth2 登录

### Google OAuth2 客户端 ID

### Google OAuth2 客户端密钥

### Google OAuth2 提示

### Google OAuth2 hd

还是说，只有在安装 OpenID Connect 身份验证插件后这些字段才会生效？
