modulepackage
0.0.0-20240226042103-4ee38bd45029
Repository: https://github.com/geeklubcn/doorman.git
Documentation: pkg.go.dev
# README
doorman
- SSO
使用方式
Docker
修改 docker-custom-conf.yaml
配置
docker run -v $PWD/docker-custom-conf.yaml:/go/src/github.com/geeklubcn/doorman/conf/config.yaml:ro wangyuheng/doorman:v1
Docker Compose
修改 docker-compose.yaml
的环境变量
docker-compose up
开发
Docker
docker build -t wangyuheng/doorman:v1 .
飞书|Feishu
1. 按照官方文档创建应用,获取 clientId及clientSecret
2. 管理后台->安全设计->添加sso域名
3. 配置yaml配置文件
feishu:
baseUrl: "https://passport.feishu.cn"
clientId: "cli_xxx"
clientSecret: "6nTXxxx"
redirectUri: "http://sso.geeklub.cn"
参考
钉钉|Dingtalk
1. 按照官方文档创建H5网页应用,获取 clientId及clientSecret
2. 管理后台->应用功能->登录与分享->回调域名
3. 管理后台->基础信息->权限管理
添加 通讯录个人信息读权限 权限
4. 配置yaml配置文件
dingtalk:
api_url: "https://api.dingtalk.com"
login_url: "https://login.dingtalk.com"
client_id: "dingxxx"
client_secret: "rxxx"
redirect_uri: "http://sso.geeklub.cn/doorman"
参考
企业微信|weixin
【TBD】
SDK
Golang
下载依赖包
go get github.com/geeklubcn/doorman/middleware
使用middleware
r.Use(middleware.SSO("doorman_token", "http://sso.geeklub.cn"))
参考
- Jwt: https://jwt.io
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author