Skip to content

Commit 530b69c

Browse files
feat: integrate Casdoor
1 parent bdeb08f commit 530b69c

18 files changed

+651
-1744
lines changed

conf/oauth.conf.example

+9-56
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,10 @@
1-
# 第三方登录配置
21
[oauth]
3-
4-
##### Gitee(码云) ####
5-
# 申请地址(需要先登录):https://gitee.com/oauth/applications
6-
7-
# 您的ClientId
8-
giteeClientId=
9-
10-
# 您的ClientSecret
11-
giteeClientSecret=
12-
13-
# 回调地址,把下面的bookstack.cn的域名换成你的即可
14-
giteeCallback=http://www.bookstack.cn/login/gitee
15-
16-
# 下面这两项不要动
17-
giteeAccesstoken=https://gitee.com/oauth/token
18-
giteeUserInfo=https://gitee.com/api/v5/user
19-
20-
21-
22-
######## GitHub ########
23-
# 申请地址(需要先登录你的GitHub):https://github.com/settings/developers
24-
25-
# 您的ClientId
26-
githubClientId=
27-
28-
# 您的ClientSecret
29-
githubClientSecret=
30-
31-
# 回调地址,把下面的bookstack.cn的域名换成你的即可
32-
githubCallback=http://www.bookstack.cn/login/github
33-
34-
# 下面这两项不要动
35-
githubAccesstoken=https://github.com/login/oauth/access_token
36-
githubUserInfo=https://api.github.com/user
37-
38-
39-
40-
#### QQ ####
41-
# 申请地址(需要先登录你的QQ):https://connect.qq.com/manage.html
42-
43-
#ClientId,即 APP ID
44-
qqClientId=
45-
46-
#ClientSecret,即 APP Key
47-
qqClientSecret=
48-
49-
# 回调地址,把下面的bookstack.cn的域名换成你的即可
50-
qqCallback=http://www.bookstack.cn/login/qq
51-
52-
# 下面这三项不要动
53-
qqAccesstoken=https://graph.qq.com/oauth2.0/token
54-
qqOpenId=https://graph.qq.com/oauth2.0/me
55-
qqUserInfo=https://graph.qq.com/user/get_user_info
56-
57-
### TODO 微信和微博登录,主要是我这边忘记了以前注册的个人开发者信息,当前没开发,后续会开发出来 ####
2+
######## casdoor ########
3+
# 先部署casdoor
4+
5+
casdoorOrganization =
6+
casdoorApplication = "bookstack"
7+
casdoorEndpoint = http://localhost:8000
8+
clientId =
9+
clientSecret =
10+
redirectUrl = http://localhost:8181/login/callback

0 commit comments

Comments
 (0)