lejianwen
|
323364b24e
|
feat(register): Register status can be set (#223)
|
2025-05-25 17:03:13 +08:00 |
|
lejianwen
|
7410b539a0
|
style(service): refactor global dependencies to use local variables
|
2025-02-26 19:15:38 +08:00 |
|
lejianwen
|
49cf954d4a
|
fix(config)!: Token expire time (#145)
将配置中的过期时间单位统一为time.Duration,可以设置为`h`,`m`,`s`
|
2025-02-17 10:49:59 +08:00 |
|
lejianwen
|
99db5f7190
|
fix(admin): Admin web title
|
2025-02-12 21:10:07 +08:00 |
|
lejianwen
|
18eff791b2
|
style: Module name
|
2025-02-12 19:46:39 +08:00 |
|
lejianwen
|
472524f836
|
style: Module name
|
2025-02-12 16:07:51 +08:00 |
|
Tao Chen
|
8a5b20685c
|
fix: When OIDC and LDAP work togethar (#132 #134)
* fix OIDC create user if LDAP enable
* `newUser.GroupId = 1` for ldap
* fix
|
2025-02-10 10:08:49 +08:00 |
|
lejianwen
|
01f697d279
|
fix(api): Add Default Token Expire (#113)
|
2025-02-03 13:18:08 +08:00 |
|
Tao Chen
|
ae32915565
|
feat(ldap): Add LDAP
* rename: Admin to AdminGroup
* update
* cleanup
* tmp save group mapping
* add enableControl(not-test)
* verify username exist before create(for LDAP)
* add getAllGroupsDn()
* rename
* adminGroup
* enable TLS Verify
* init for ldap
---------
Co-authored-by: Tao Chen <iamtaochen@outlook.com>
|
2025-02-02 23:59:52 +08:00 |
|
lejianwen
|
d9e2e247ea
|
feat(api): Add api token expire
Resolves #109
|
2025-01-21 18:23:28 +08:00 |
|
lejianwen
|
a951b982b3
|
fix: Jwt
|
2025-01-15 20:26:26 +08:00 |
|
lejianwen
|
f41b9d5887
|
feat!: Add JWT
- `RUSTDESK_API_JWT_KEY`如果设置,将会启用JWT,token自动续期功能将失效
- 此功能是为了server端校验token的合法性
|
2025-01-15 19:25:28 +08:00 |
|
lejianwen
|
5082ab1893
|
refactor(admin): Move Admin Web Route to user model
|
2024-12-27 19:27:33 +08:00 |
|
lejianwen
|
b2b7f60fd5
|
add batch delete user token
|
2024-12-06 10:36:27 +08:00 |
|
ljw
|
07450416ed
|
fix #52 & add auto refresh token #53
|
2024-11-07 10:46:00 +08:00 |
|
Tao Chen
|
ab30b3407b
|
add error information
|
2024-11-06 15:06:15 +08:00 |
|
Tao Chen
|
7a4c735803
|
fix: cannot delete user
|
2024-11-06 14:36:12 +08:00 |
|
ljw
|
d4d39eecaa
|
up oauth re
|
2024-11-05 11:48:35 +08:00 |
|
Tao Chen
|
f17d891302
|
fix: delete check
|
2024-11-03 22:23:24 +08:00 |
|
Tao Chen
|
51623436b0
|
fix: call us.IsAdmin(u) to check admin
|
2024-11-03 21:59:17 +08:00 |
|
Tao Chen
|
120ab132a9
|
fix: last admin shouldn't be deleted, disabled or demoted
|
2024-11-03 17:19:05 +08:00 |
|
Tao Chen
|
60eaaf390a
|
add err for RegisterByOauth
|
2024-11-03 16:49:03 +08:00 |
|
Tao Chen
|
14beef72fc
|
fix: Email of Register
|
2024-11-03 05:07:17 +08:00 |
|
Tao Chen
|
91a33fe7f6
|
fix: RegisterByOauth without Email
|
2024-11-03 04:35:39 +08:00 |
|
Tao Chen
|
d646469f71
|
set user_id=0 at peers, when the user is deleted
|
2024-11-02 08:24:07 +08:00 |
|
Tao Chen
|
4f616ffff1
|
When login, peer doesn't exist, it should create
|
2024-11-02 08:19:44 +08:00 |
|
Tao Chen
|
64400fba61
|
delete the token when delete a peer
|
2024-11-02 08:02:03 +08:00 |
|
Tao Chen
|
75b997dcc4
|
add DeviceId to userToken
|
2024-11-02 05:42:47 +08:00 |
|
Tao Chen
|
853063c59b
|
logout should unbind uuid and uid of peer
|
2024-11-02 05:07:41 +08:00 |
|
Tao Chen
|
7707cc116f
|
re-construct oauth
|
2024-11-02 04:01:28 +08:00 |
|
ljw
|
273ac6d1a8
|
add remove user token #34
|
2024-10-31 22:29:12 +08:00 |
|
Tao Chen
|
0c974c4113
|
Merge branch 'master' into resetEmptyPassWD
|
2024-10-31 16:35:32 +08:00 |
|
Tao Chen
|
b36aa6f917
|
add IsPasswordEmpty...
|
2024-10-31 16:22:42 +08:00 |
|
ljw
|
47f9ad8274
|
add register
|
2024-10-31 15:14:30 +08:00 |
|
ljw
|
0a36d44cec
|
up del user
|
2024-10-30 19:34:56 +08:00 |
|
Tao Chen
|
05b20d47db
|
modify delete user
|
2024-10-30 16:33:01 +08:00 |
|
Tao Chen
|
0dcc21260e
|
delete user from user_thirds, too
|
2024-10-30 15:59:33 +08:00 |
|
乐
|
b7de2ccadd
|
Merge pull request #30 from IamTaoChen/oidc
Add General OIDC Login
|
2024-10-30 14:40:10 +08:00 |
|
Tao Chen
|
fe910c37cf
|
fix: spelling
|
2024-10-29 23:00:17 +08:00 |
|
ljw
|
46a76853c3
|
fix oauth register #26 #23
|
2024-10-29 15:31:27 +08:00 |
|
Tao Chen
|
fee2808bca
|
try add oidc
|
2024-10-29 11:51:01 +08:00 |
|
ljw
|
5bf4bbe45f
|
add address book name &
add share address book
|
2024-10-28 14:51:07 +08:00 |
|
ljw
|
f64022e411
|
add conn log
|
2024-10-18 15:05:58 +08:00 |
|
ljw
|
caef3897a0
|
add login fail warn &
add web client on/off &
up admin peer filter &
upgrade web client
|
2024-10-14 10:43:29 +08:00 |
|
ljw
|
a1d495f2db
|
fix group peers
|
2024-09-24 19:35:20 +08:00 |
|
ljw
|
1e3403e3c5
|
add google oauth
|
2024-09-20 12:13:15 +08:00 |
|
ljw
|
a4b413dadb
|
add oauth loginlog & fix bugs
|
2024-09-19 10:44:49 +08:00 |
|
ljw
|
c53df223d1
|
first
|
2024-09-13 15:57:29 +08:00 |
|