# oauth2-h5 ## 服务端 ### 项目h5 https://git.leonmin.com/example/oauth2-h5 ```bash $ 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)