Update oauth2.md

This commit is contained in:
p79813206 2023-03-08 10:57:27 +08:00
parent b2549b5d78
commit 6036882f26
1 changed files with 2 additions and 2 deletions

View File

@ -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