Liu
26acece8af
feat: add all other missing objects to init_data ( #1407 )
...
* Add all other missing objects to init_data.json
* Format golang code
* feat: add all other missing objects to init_data
* feat: add all other missing objects to init_data
2022-12-18 01:49:42 +08:00
Gucheng Wang
c0d9969013
Add description to product
2022-12-16 23:35:30 +08:00
imp2002
d668022af0
feat: fix length of policy and [policy_define]
in model
inconsistent ( #1400 )
2022-12-15 20:42:55 +08:00
Yaodong Yu
e227875c2b
feat: add post methed for saml response ( #1399 )
2022-12-13 22:32:45 +08:00
Yaodong Yu
a51f0d7c08
feat: init score in organization ( #1388 )
...
* feat: init score in organization
* Update OrganizationEditPage.js
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2022-12-10 22:27:12 +08:00
Mr Forest
1bb3d2dea9
feat: refactor backend i18n ( #1373 )
...
* fix: handle the dataSourceName when DB changes
* reduce duplication of code
* feat: refactor translation error message
* feat: use json intsead of ini file
* remove useless translation
* fix translate problems
* remove useless addition
* fix pr problems
* fix pr problems
* fix split problem
* use gofumpt to fmt code
* use crowdin to execute backend translation
* fix pr problems
* refactor: change translation file structure same as frontend
* delete useless output
* update go.mod
2022-12-07 13:13:23 +08:00
Gucheng Wang
96566a626b
Increase Detail field size
2022-12-07 01:53:03 +08:00
Gucheng Wang
30b7fd963f
Reduce Resource key size
2022-12-06 11:30:42 +08:00
imp2002
812c44e070
feat: add and load policy within a specific permission ( #1357 )
...
* fix: add and load policy with a specific permission
* fix: use a clear variable name
2022-12-05 17:07:10 +08:00
imp2002
78e45d07cf
fix: support RBAC With Domains/Tenants ( #1333 )
...
* feat: support RBAC With Domains/Tenants
* fix: add verify for `UpdatePermission`
* Update permission.go
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2022-12-05 16:08:17 +08:00
Yaodong Yu
0856977b92
feat: update to antd 5.0 ( #1362 )
...
* feat: update to ant5.X
* fix: incompatible styles
* fix: adjust the style
2022-12-04 23:05:30 +08:00
Mr Forest
27bd771fed
feat: handle the dataSourceName when DB changes ( #1352 )
...
* fix: handle the dataSourceName when DB changes
* reduce duplication of code
2022-12-02 22:20:18 +08:00
WangGuan
b895926754
feat: use another filename when uploading a duplicated file instead of replacing it ( #1329 )
...
* fix: upload a file with the same name, not replace
* Update resource.go
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2022-11-27 17:32:15 +08:00
Yaodong Yu
b10fb97c92
feat: finish policy list management ( #1317 )
2022-11-25 16:02:20 +08:00
Yaodong Yu
b337b908ea
feat: fix the bug that admin cannot upload avatar for other users ( #1323 )
2022-11-25 09:36:47 +08:00
Mr Forest
84a03f6c8e
feat: add webhook for add/update org/provider ( #1316 )
2022-11-24 00:29:15 +08:00
会思考的下丘脑
56ff06bbea
feat: add parameter v0 for Casbin APIs ( #1315 )
2022-11-23 22:39:17 +08:00
Yaodong Yu
7e756b8ee2
feat: manager applications in organization scope ( #1290 )
...
* feat: manager applications in organization scope(front end)
* fix: application can use own organization and admin provider
* fix: improve methed to get provider
* fix: modify provider methods by convention
2022-11-21 01:17:55 +08:00
Yaodong Yu
19ba37e0c2
feat: can specify available UI languages for an organization ( #1306 )
2022-11-19 22:11:19 +08:00
Mr Forest
b98ce19211
feat: fix bug in GetDefaultApplication() that caused login error for other orgs ( #1299 )
...
* fix:fix bug in GetDefaultApplication
* fix:fix bug in GetDefaultApplication
2022-11-16 00:39:05 +08:00
imp2002
f115843fbb
feat: fix verification code send time's limit logic ( #1292 )
2022-11-13 22:00:48 +08:00
Mr Forest
aa6a4dc74f
feat: support login by following wechat official account ( #1284 )
...
* show QRcode when click WeChat Icon
* update how to show qrcode
* handle wechat scan qrcode
* fix api problems
* fix url problems
* fix problems
* modify get frequency
* remove useless print
* fix:fix PR problems
* fix: fix PR problems
* fix:fix PR problem
* fix IMG load delay problems
* fix:fix provider problems
* fix test problems
* use gofumpt to fmt code
* fix:delete useless variables
* feat:add button for follow official account
* fix:fix review problems
* use gofumpt to fmt code
* fix:fix scantype problems
* fix Response problem
* use gofumpt to format code
2022-11-13 15:05:15 +08:00
cofecatt
462a82a3d5
fix: Add distinctions between access_token and refresh_token ( #1280 )
2022-11-13 13:00:25 +08:00
cofecatt
770ae47471
feat: fix memory leak problem ( #1257 )
2022-11-06 01:43:27 +08:00
Yaodong Yu
8d686411ee
feat: support add providers inside the Organization scope ( #1250 )
...
* feat: support add providers inside the Organization scope
Signed-off-by: magicwind <2814461814@qq.com>
* Update ProviderListPage.js
* fix: gloabal admin can see all providers
* fix: table fixed column warning
* fix: edit application page can get all providers
Signed-off-by: magicwind <2814461814@qq.com>
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2022-11-04 21:31:08 +08:00
Yaodong Yu
ce722897f1
feat: support prefix path for storage files ( #1258 )
2022-11-04 21:08:39 +08:00
Mr Forest
a8381e875b
feat: change all occurrences when a object name is changed ( #1252 )
2022-11-02 00:17:38 +08:00
Ke Wang
4c81fd7d16
feat: fix generating wrong x.509 private key file header ( #1253 )
...
According to the [official x509 documentation](https://pkg.go.dev/crypto/x509#MarshalPKCS1PrivateKey ), the private key generated using `x509.MarshalPKCS1PrivateKey` starts with `-----BEGIN RSA PRIVATE KEY-----` instead of `-----BEGIN PRIVATE KEY-----`. Otherwise, it will not be parsed by most tools (like OpenSSL, [jwt.io](https://jwt.io/ ), etc.) because it does not conform to the specification.
2022-11-01 22:19:38 +08:00
Bingchang Chen
9d5b019243
fix: nil error if init data is empty ( #1247 )
2022-10-29 20:04:43 +08:00
wenxuan70
25d56ee8d5
feat: allow captcha to be enabled when logging in ( #1211 )
...
* Fix bug in GetAcceptLanguage()
* feat: allow captcha to be enabled when logging in
* feat: when the login password is wrong, enable captcha
* feat: Restrict captcha from frontend
* fix: modify CaptchaModal component
* fix: modify the words of i18n
* Update data.json
Co-authored-by: Gucheng Wang <nomeguy@qq.com>
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2022-10-28 13:38:14 +08:00
Mr Forest
d86f3c88c7
feat: support i18n in backend err messages ( #1232 )
...
* feat: support i18n in backend err messages
* use gofumpt to fmt code
* fix review problems
* support auto generate err message
* delete beego/i18n moudle
* fix Github action test problems
* fix review problems
* use gofumpt to format code
* use gofumpt to fmt code
2022-10-23 15:16:24 +08:00
Yaodong Yu
b0f572c51a
feat: add left-side image and improve login page ( #1226 )
2022-10-22 21:43:41 +08:00
cofecatt
19d351d157
feat: allow non-ASCII characters in username ( #1235 )
2022-10-22 20:46:50 +08:00
Yaodong Yu
6a1ec51978
feat: fix SSRF when download avatar ( #1193 )
2022-10-20 14:47:08 +08:00
Gucheng
146aec9ee8
feat: skip username restriction for new users coming from OAuth providers. ( #1225 )
2022-10-17 18:01:01 +08:00
Mr Forest
50a52de856
feat: support database version control ( #1221 )
...
* feat: support Database version control
* Update adapter.go
* fix review problems
* Update adapter.go
Co-authored-by: Yang Luo <hsluoyz@qq.com>
2022-10-15 17:20:20 +08:00
cofecatt
23f3fe1e3c
feat: update code format ( #1214 )
...
* feat: doc
* feat: doc
* Update model.go
Co-authored-by: Gucheng <85475922+nomeguy@users.noreply.github.com>
2022-10-12 11:42:14 +08:00
cofecatt
59ff5e02ab
fix: Add support for including underscores for username ( #1210 )
...
* fix: Add support for including underscores for username
* Update check.go
Co-authored-by: Yang Luo <hsluoyz@qq.com>
2022-10-11 19:39:19 +08:00
cofecatt
4c7f6fda37
fix: Add restriction to username when signing up ( #1203 )
2022-10-10 19:58:02 +08:00
Gucheng Wang
44ad88353f
Add error to GetDefaultApplication()
2022-10-09 10:39:33 +08:00
q1anx1
645c631db9
fix: fix the delete file vulnerability issue ( #1174 )
2022-10-01 00:33:27 +08:00
Gucheng Wang
04709f731b
Update beego to v1.12.11
2022-09-29 19:45:17 +08:00
WangGuan
ceabbe27b4
feat: remove p_type in table permission_rule ( #1165 )
2022-09-27 22:50:27 +08:00
Gucheng Wang
7393b90155
Add enableAutoSignin to application
2022-09-27 20:06:46 +08:00
Yang Luo
116420adb2
feat: revert "feat: fix openid address format" ( #1158 )
...
This reverts commit a447d64bf217d260eb28d7112c167549467cc9c2.
2022-09-25 09:58:45 +08:00
Mr Forest
07c1e3b836
feat: support simple LDAP server ( #1155 )
...
* feat:Support simple ldap server
* fix:fix review problems
* fix:fix review problems
2022-09-24 21:48:29 +08:00
Taoning Ge
a447d64bf2
fix: openid address format ( #1157 )
2022-09-24 15:34:11 +08:00
Gucheng Wang
575a248c41
Add TestGetEmailsForUsers()
2022-09-22 20:51:50 +08:00
Gucheng Wang
084a5c3e6b
Show logs to org admin
2022-09-18 16:16:45 +08:00
Gucheng Wang
e1331f314d
Add RequireSignedInUser()
2022-09-18 15:43:49 +08:00