DarkSky
9365958a02
feat(server): team quota ( #8955 )
2024-12-09 18:51:54 +09:00
forehalo
8b0afd6eeb
refactor(server): auth ( #7994 )
2024-09-03 09:03:39 +00:00
forehalo
0ba516866f
fix(server): change password with token should be public ( #7855 )
2024-08-14 03:34:35 +00:00
forehalo
dddbfe6473
feat(server): setup api for selfhost deployment ( #7569 )
2024-07-23 10:39:34 +00:00
darkskygit
145872b9f4
chore: refresh unnamed user ( #7544 )
2024-07-19 04:01:39 +00:00
darkskygit
df73b6ddc7
feat: revoke token after sensitive operations ( #6993 )
...
fix #6914
2024-05-20 06:38:48 +00:00
forehalo
d657f4091a
fix(server): do not allow registration through gql ( #6775 )
2024-05-06 11:11:57 +00:00
forehalo
a14194c482
fix(server): blob controller permission ( #6746 )
2024-04-30 03:47:00 +00:00
liuyi
e53d5e2e3d
chore(server): clean up throttler ( #6326 )
2024-04-17 16:32:26 +08:00
forehalo
54c06777a6
fix(server): always set new session cookie ( #6323 )
2024-03-26 09:56:39 +00:00
forehalo
1a1af83375
test(server): auth tests ( #6135 )
2024-03-26 02:24:17 +00:00
liuyi
fb3a0e7b8f
refactor(server): auth ( #5895 )
...
Remove `next-auth` and implement our own Authorization/Authentication system from scratch.
## Server
- [x] tokens
- [x] function
- [x] encryption
- [x] AuthController
- [x] /api/auth/sign-in
- [x] /api/auth/sign-out
- [x] /api/auth/session
- [x] /api/auth/session (WE SUPPORT MULTI-ACCOUNT!)
- [x] OAuthPlugin
- [x] OAuthController
- [x] /oauth/login
- [x] /oauth/callback
- [x] Providers
- [x] Google
- [x] GitHub
## Client
- [x] useSession
- [x] cloudSignIn
- [x] cloudSignOut
## NOTE:
Tests will be adding in the future
2024-03-12 10:00:09 +00:00
liuyi
e516e0db23
refactor(server): plugin modules ( #5630 )
...
- [x] separates modules into `fundamental`, `core`, `plugins`
- [x] optional modules with `@OptionalModule` decorator to install modules with requirements met(`requires`, `if`)
- [x] `module.contributesTo` defines optional features that will be enabled if module registered
- [x] `AFFiNE.plugins.use('payment', {})` to enable a optional/plugin module
- [x] `PaymentModule` is the first plugin module
- [x] GraphQLSchema will not be generated for non-included modules
- [x] Frontend can use `ServerConfigType` query to detect which features are enabled
- [x] override existing provider globally
2024-01-22 07:40:28 +00:00
DarkSky
0c2d2f8d16
feat: struct type feature config ( #5142 )
2023-12-14 09:50:52 +00:00