Skip to content

Commit

Permalink
Merge pull request #154 from leo220yuyaodog/master
Browse files Browse the repository at this point in the history
feat: integrate Casdoor
  • Loading branch information
TruthHun authored Sep 12, 2022
2 parents bdeb08f + 530b69c commit cb57ce8
Show file tree
Hide file tree
Showing 18 changed files with 651 additions and 1,744 deletions.
65 changes: 9 additions & 56 deletions conf/oauth.conf.example
Original file line number Diff line number Diff line change
@@ -1,57 +1,10 @@
# 第三方登录配置
[oauth]

##### Gitee(码云) ####
# 申请地址(需要先登录):https://gitee.com/oauth/applications

# 您的ClientId
giteeClientId=

# 您的ClientSecret
giteeClientSecret=

# 回调地址,把下面的bookstack.cn的域名换成你的即可
giteeCallback=http://www.bookstack.cn/login/gitee

# 下面这两项不要动
giteeAccesstoken=https://gitee.com/oauth/token
giteeUserInfo=https://gitee.com/api/v5/user



######## GitHub ########
# 申请地址(需要先登录你的GitHub):https://github.com/settings/developers

# 您的ClientId
githubClientId=

# 您的ClientSecret
githubClientSecret=

# 回调地址,把下面的bookstack.cn的域名换成你的即可
githubCallback=http://www.bookstack.cn/login/github

# 下面这两项不要动
githubAccesstoken=https://github.com/login/oauth/access_token
githubUserInfo=https://api.github.com/user



#### QQ ####
# 申请地址(需要先登录你的QQ):https://connect.qq.com/manage.html

#ClientId,即 APP ID
qqClientId=

#ClientSecret,即 APP Key
qqClientSecret=

# 回调地址,把下面的bookstack.cn的域名换成你的即可
qqCallback=http://www.bookstack.cn/login/qq

# 下面这三项不要动
qqAccesstoken=https://graph.qq.com/oauth2.0/token
qqOpenId=https://graph.qq.com/oauth2.0/me
qqUserInfo=https://graph.qq.com/user/get_user_info

### TODO 微信和微博登录,主要是我这边忘记了以前注册的个人开发者信息,当前没开发,后续会开发出来 ####
######## casdoor ########
# 先部署casdoor

casdoorOrganization =
casdoorApplication = "bookstack"
casdoorEndpoint = http://localhost:8000
clientId =
clientSecret =
redirectUrl = http://localhost:8181/login/callback
Loading

0 comments on commit cb57ce8

Please sign in to comment.