From 5a8e34c21cccea70ab9ba8c81ce97cbfd9d624bd Mon Sep 17 00:00:00 2001 From: wuhang2003 <108316419+wuhang2003@users.noreply.github.com> Date: Mon, 9 Sep 2024 01:23:10 +0000 Subject: [PATCH] add: content about google oauth --- pages/usage/oauth.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/usage/oauth.mdx b/pages/usage/oauth.mdx index 07f74718..d408c4c5 100644 --- a/pages/usage/oauth.mdx +++ b/pages/usage/oauth.mdx @@ -13,11 +13,11 @@ import { Steps } from 'nextra/components'; 参考以下两篇: - [在 GitHub 新建 OAuth 应用](https://docs.github.com/zh/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app) -- [在 Google Cloud 新建 OAuth 应用](https://developers.google.com/identity/protocols/oauth2/web-server?hl=zh-cn#creatingcred) +- [在 Google Cloud Console 新建 OAuth 应用](https://developers.google.com/identity/protocols/oauth2/web-server?hl=zh-cn#creatingcred) 对于 GitHub,`Homepage URL` 填写前端地址,`Authorization callback URL` 根据后台提示复制粘贴。 -对于 Google,`已获授权的 JavaScript 来源` 填写前端地址,`已获授权的重定向 URI` 根据后台提示复制粘贴。 +对于 Google,你可能需要先配置好 OAuth 权限请求页面,其中已获授权的网域填写根域名,API 范围选择非敏感范围的三项。OAuth 应用中 `已获授权的 JavaScript 来源` 填写前端地址,`已获授权的重定向 URI` 根据后台提示复制粘贴。 完成后会获取 Client ID 和 Client Secret,将他们复制下来备用。