From 6036882f2678920024690bfc5e8d964a2409e48f Mon Sep 17 00:00:00 2001 From: p79813206 Date: Wed, 8 Mar 2023 10:57:27 +0800 Subject: [PATCH] Update oauth2.md --- oauth2.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oauth2.md b/oauth2.md index 004827b..cac3b78 100644 --- a/oauth2.md +++ b/oauth2.md @@ -1,11 +1,11 @@ 为了构建更好的码云生态环境,我们推出了基于OAuth2的API版本。 API 接口使用方式以及Url都参照GitHub,为了各位开发者更好的兼容已经存在的第三方应用。 -API 使用条款 +# API 使用条款 未经用户允许,不准爬取或存储用户的资源。 禁止滥用 API,请求频率过快将导致请求终止。 OAuth2 认证基本流程 -OAuth2 获取 AccessToken 认证步骤 +# OAuth2 获取 AccessToken 认证步骤 1. 授权码模式 应用通过 浏览器 或 Webview 将用户引导到码云三方认证页面上( GET请求 ) https://www.osredm.com/oauth/authorize?client_id={client_id}&redirect_uri={redirect_uri}&response_type=code