Open-OAuth2Playground: 简单而好用的开源 OAuth2-Playground
在 release 中下载最新的 [release] 包,解压后直接运行即可。
tar -zxvf Open-OAuth2Playground-0.1.0-linux-amd64.tar.gz
cd Open-OAuth2Playground/
./control start
访问你服务器的 80 端口即可使用。
假定部署在 /opt/Open-OAuth2Playground
目录下,如果部署在其他目录修改 playground.service
中的 WorkingDirectory
和 ExecStart
两个字段即可。
cp playground.service /etc/systemd/system/
systemctl daemon-reload
systemctl enable playground
systemctl start playground
获取项目源码
git clone https://github.com/ECNU/Open-OAuth2Playground.git
cd Open-OAuth2Playground/
go mod tidy
go build
cd front-standalone/
pnpm install
pnpm build
cd ..
chmod +x control
./control pack
修改 cfg.json
修改 .env.production
注意前端的 route_base
需要和后端相匹配。
todo