From e01ad9fc0fd242104f7a610e5eca6e0d090f80ce Mon Sep 17 00:00:00 2001 From: leonmin Date: Thu, 2 Jan 2025 15:37:21 +0800 Subject: [PATCH] =?UTF-8?q?featuer:=20=E6=9B=B4=E6=96=B0=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 39 ++++++++++++++++++++++++++++----------- 1 file changed, 28 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 9e99e43..8203288 100644 --- a/README.md +++ b/README.md @@ -12,16 +12,33 @@ - Makefile # 自动化处理任务, 审核代码, 生成二进制文件, 执行sql迁移 ``` -## hello world +## oauth2-authorize-server + +### 项目h5 https://git.leonmin.com/example/oauth2-h5 -```go -package main -impot "fmt" -func main() { - fmt.Println("hello world!") -} -``` -执行代码 ```bash -$ go run ./cmd/api # hello world! -``` \ No newline at end of file +$ npm install +$ npm run dev +``` + +### 资源服务器 https://git.leonmin.com/example/oauth2-resource-server + +```bash +$ make run/api # 或者go run ./cmd/api -port=4002 +``` + +### 授权服务器 https://git.leonmin.com/example/oauth2-authorize-server + +```bash +$ make run/api # 或者go run ./cmd/api -port=4001 +``` + +### 截图 + +![首页](https://git.leonmin.com/example/assets/raw/branch/master/images/oauth2/oauth2-home.png) + +![登录](https://git.leonmin.com/example/assets/raw/branch/master/images/oauth2/oauth2-login.png) + +![同意授权](https://git.leonmin.com/example/assets/raw/branch/master/images/oauth2/oauth2-agree-auth.png) + +![授权数据](https://git.leonmin.com/example/assets/raw/branch/master/images/oauth2/oauth2-authorize.png)