0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-30 20:33:54 -05:00
Commit graph

1306 commits

Author SHA1 Message Date
Gao Sun
11292d4347
refactor(core): ensure getting the latest data in live preview 2023-03-17 13:59:58 +08:00
Gao Sun
db1de6ce4c
refactor(core): honor no-cache header for cached data 2023-03-17 13:59:58 +08:00
Gao Sun
ae389c0a7a
refactor(core): add cache class and invalidate cache after onboarding 2023-03-17 13:59:58 +08:00
Gao Sun
dd91ebddfa
refactor: cache well-known data 2023-03-17 13:59:53 +08:00
wangsijie
f247ce5f86
feat(core): remove unselected demo social connectors (#3454) 2023-03-17 12:38:57 +08:00
Charles Zhao
7b394f77c5
feat(console): initials avatar (#3372) 2023-03-16 08:57:23 +00:00
renovate[bot]
565a0aead2
chore(deps): update dependency @silverhand/essentials to v2.4.1 (#3421)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-15 21:36:02 +08:00
wangsijie
76b49de1f0
feat(core,console): display demo connectors (#3425) 2023-03-15 17:09:26 +08:00
Gao Sun
4ef49ed93c
Merge pull request #3391 from logto-io/gao-use-env-to-set-pg-pool
refactor: support setting pool sizes by env variable
2023-03-15 16:43:47 +08:00
Darcy Ye
4fc119804c
chore: send testing sms/email using Generic template type (#3403) 2023-03-15 16:43:31 +08:00
wangsijie
0f2d5d56a1
feat(cloud): add demo connector configs on tenant create (#3422) 2023-03-15 16:26:36 +08:00
wangsijie
63938d6d4b
feat(cli,core,shared): install demo connectors only in cloud (#3414) 2023-03-15 15:24:31 +08:00
Gao Sun
b8906bd49b
refactor: fix code and release workflow 2023-03-14 23:14:22 +08:00
Gao Sun
8ab8622131
refactor(core): return early if no hook found 2023-03-14 23:02:45 +08:00
Gao Sun
9c48f98fa1
refactor: support setting pool sizes by env variable 2023-03-14 23:02:44 +08:00
wangsijie
2bd5f36fc3
refactor(core,toolkit): extract connector loading code to toolkit (#3400) 2023-03-14 20:26:42 +08:00
Gao Sun
1d1cd46ccf
Merge pull request #3383 from logto-io/gao-optimize-tenant-disposal
refactor(core): optimize tenant disposal
2023-03-14 20:05:56 +08:00
Gao Sun
7366bfee2b
Merge pull request #3380 from logto-io/gao-add-response-guard
refactor(core): add response and status guard for hooks apis
2023-03-14 20:04:05 +08:00
simeng-li
0978db5790
fix(test): remove jest-matcher-specific-error (#3402) 2023-03-14 09:31:48 +00:00
renovate[bot]
50aaf4db40
chore(deps): update dependency @types/koa__cors to v4 (#3392)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-14 15:32:09 +08:00
wangsijie
47881b6d6e
feat(schemas): add service logs table (#3390) 2023-03-14 15:15:45 +08:00
Gao Sun
6171082825
refactor(core): store tenant promise in pool
when multiple concurrency requests for the same tenant arrives
it would create a lot of promises for the same tenant which
is unexpected. directly store the tenant creating promise to
avoid it.
2023-03-14 15:06:02 +08:00
Gao Sun
69d0597315
refactor(core): add response and status guard for hooks apis 2023-03-14 14:54:27 +08:00
Gao Sun
172cf16cc3
refactor(core): fix koa-guard for configs with body
by enabling response and status check.
2023-03-14 14:54:26 +08:00
Gao Sun
0b45c8f487
refactor: fix schema types (#3379)
by separating CreateSchema and Schema. also no need for explicitly
set generic type for database builders like `buildInsertIntoWithPool()`.
2023-03-14 12:45:13 +08:00
simeng-li
57eb6ee452
feat(schemas,ui): add custom content slot (#3369) 2023-03-14 03:06:01 +00:00
Gao Sun
9db5729cfd
refactor(core): optimize tenant middleware function 2023-03-13 15:52:38 +08:00
Gao Sun
3e9ba19fa2
refactor(core): optimize tenant disposal 2023-03-13 15:44:01 +08:00
Xiao Yijun
b1b5200876
feat(console): inspire me (#3360) 2023-03-13 13:58:58 +08:00
Gao Sun
fa85b7d0eb
refactor: remove withtyped in core (#3375)
Keeping withtyped will introduce an additional database pool per tenant,
which is not good for performance and it should be more like all-or-nothing choice.
So remove it for core, but keep it in cloud.
2023-03-13 04:01:14 +00:00
Gao Sun
dfc1f20d27
refactor(core)!: move phrases api to well-known path (#3374) 2023-03-13 03:43:27 +00:00
Gao Sun
5784cfeb18
feat(schemas,core): add sessionNotFoundRedirectUrl tenant config (#3365) 2023-03-13 03:36:10 +00:00
Charles Zhao
9896390065
fix(core,schemas): remove sessionId usage from verification status table (#3345) 2023-03-13 11:20:52 +08:00
Gao Sun
f9c00f6dc5
Merge pull request #3373 from logto-io/gao-end-connection-when-dispose
refactor(core): update cache size and end pool when tenant disposes
2023-03-13 11:20:07 +08:00
Gao Sun
5a5f14e00c
Merge pull request #3363 from logto-io/gao-disable-index-cache
refactor(core,cloud): disable cache for index files
2023-03-13 11:19:28 +08:00
Gao Sun
e191beb29f
Merge pull request #3361 from logto-io/gao-fix-api-issues
refactor(core): fix api issues
2023-03-13 11:19:11 +08:00
Gao Sun
d32904d538
refactor(core): update cache size and end pool when tenant disposes 2023-03-13 00:42:37 +08:00
Gao Sun
533504ab4d
refactor(core): add etag to all GET APIs 2023-03-11 18:08:19 +08:00
Gao Sun
844d6d2e8c
refactor(core,cloud): disable cache for index files 2023-03-11 17:11:05 +08:00
Gao Sun
6b12d345a7
refactor(cloud): send compressed spa file when possible 2023-03-11 15:24:26 +08:00
Gao Sun
51ee250536
refactor(core): fix api issues 2023-03-11 13:44:43 +08:00
Gao Sun
aba5c42d6a
refactor(core,ui,console): compress response when possible 2023-03-11 00:30:47 +08:00
Xiao Yijun
0971f99e98
feat(console): image uploader (#3323) 2023-03-10 16:35:25 +08:00
simeng-li
394637f200
refactor(core): refactor backend password regex rule (#3346) 2023-03-10 13:41:54 +08:00
Gao Sun
310c543f93
Merge pull request #3333 from logto-io/gao-log-5603-hide-role-for-user-tenant
refactor: hide internal roles for user tenants
2023-03-09 12:41:34 +08:00
Xiao Yijun
105390f004
refactor: remove branding style config (#3326) 2023-03-09 11:23:06 +08:00
Gao Sun
c5da152ddc
refactor: hide internal roles for user tenants
introduce internal roles which name starts with #internal:
with RLS policies to make them read-only.
2023-03-09 00:07:33 +08:00
Charles Zhao
32dff20633
fix(core): user should be able to set password even if they do not have one (#3331) 2023-03-08 20:34:17 +08:00
Charles Zhao
4675ce6dbc
fix(core): should not guard input when verifying password (#3329) 2023-03-08 19:27:42 +08:00
Charles Zhao
1f0bc8f3f4
refactor(console): polish code by improving data types and API routes (#3324) 2023-03-08 08:28:33 +00:00
Charles Zhao
01735d1647
refactor(console,core,phrases): improve error handling in ac profile (#3317) 2023-03-08 16:00:11 +08:00
Charles Zhao
43470c41f1
fix(core,schemas): add new verification status table (#3312) 2023-03-08 15:21:59 +08:00
Gao Sun
56ffba151b
fix: should return demo app data when query api (#3322)
Co-authored-by: Charles Zhao <charleszhao@silverhand.io>
2023-03-08 03:34:40 +00:00
Gao Sun
1ca42e0573
Merge pull request #3316 from logto-io/gao-add-cloud-api-tests
test(cloud): init cloud unit tests
2023-03-08 11:24:18 +08:00
Gao Sun
27db553cb4
Merge pull request #3311 from logto-io/gao-use-url-class
refactor: use URL class
2023-03-08 11:04:39 +08:00
simeng-li
05ada94f95
feat(core,console,schemas,phrases): add privacy policy url (#3315) 2023-03-08 10:56:26 +08:00
Gao Sun
af4276e08e
test(cloud): init api tests 2023-03-08 10:49:51 +08:00
Gao Sun
3287c2c232
refactor: use URL class 2023-03-08 10:47:10 +08:00
wangsijie
3c0c82a4bf
feat(core): add s3 storage provider (#3320) 2023-03-08 10:14:28 +08:00
wangsijie
13fcf6f3c2
feat(core,console): handle connector target confict (#3251) 2023-03-07 16:14:23 +08:00
wangsijie
f25a9d343c
feat(core,phrases,schemas): upload user assets with azure storage (#3289) 2023-03-07 06:00:12 +00:00
renovate[bot]
4eb2d14762
chore(deps): update dependency @silverhand/essentials to v2.4.0 (#3284)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-07 04:25:50 +00:00
simeng-li
3184e36773
feat(ui): implement lite mode set password form (#3282) 2023-03-07 02:55:29 +00:00
Charles Zhao
88cb4590ba
fix(console): admin user should be able to link google account to profile (#3297) 2023-03-06 16:48:50 +08:00
Gao Sun
ea66dcbf2f
Merge pull request #3285 from logto-io/gao-allow-admin-to-create-tenant
refactor: allow admin to create tenants
2023-03-06 13:54:25 +08:00
Charles Zhao
3996ac4107
feat(console): link social account in ac profile page (#3288) 2023-03-06 11:21:24 +08:00
simeng-li
6aab01e56c
feat(ui): add interactionMode OIDC param (#3280) 2023-03-06 10:08:57 +08:00
Charles Zhao
963526ab0e
fix(core): check identifier collision before updating admin tenant user (#3292) 2023-03-05 23:04:36 +08:00
Gao Sun
08e7b6c6c2
refactor: allow admin to create tenants 2023-03-04 14:52:02 +08:00
Gao Sun
afe39f6f46
refactor: fix cloud dev (#3281) 2023-03-03 11:04:22 +00:00
Gao Sun
0a3d4bb345
Merge pull request #3274 from logto-io/gao-seed-for-multi-tenancy
refactor: seed data for multi-tenancy
2023-03-03 16:45:02 +08:00
Gao Sun
a852114caf
Merge pull request #3269 from logto-io/gao-support-path-based-multi-tenancy
feat(core): support path-based multi-tenancy
2023-03-03 16:13:05 +08:00
Charles Zhao
c3daeebe4d
feat(console): allow linking email via verification code in profile (#3275) 2023-03-03 14:26:34 +08:00
Charles Zhao
84adbf66df
Merge pull request #3252 from logto-io/charles-log-5541-mainflow-like-form-ui-for-change-password
feat(console): add mainflow like modal style for change password
2023-03-03 14:18:23 +08:00
Gao Sun
a76ce24bee
refactor: seed data for multi-tenancy 2 2023-03-03 14:11:19 +08:00
Charles Zhao
ae9edd3ebc
feat(console): add mainflow like modal style for change password 2023-03-02 22:46:11 +08:00
Gao Sun
9775db7af8
refactor: seed data for multi-tenancy 2023-03-02 22:25:13 +08:00
Gao Sun
a6d4494c0e
chore(core): add comments 2023-03-02 17:14:41 +08:00
Gao Sun
a8355eb6a3
refactor(core): fix segment matching for path-based 2023-03-02 16:45:48 +08:00
Gao Sun
d29432f45d
feat(core): support path-based multi-tenancy 2023-03-02 13:20:21 +08:00
Gao Sun
07e04eac55
refactor(core): fix etag 2023-03-02 00:44:33 +08:00
Gao Sun
2747a1064e
chore(core): add comments 2023-03-02 00:33:03 +08:00
Gao Sun
303e086df3
refactor: optimize tenant requests 2023-03-01 23:46:30 +08:00
Gao Sun
44909140bf
feat: create tenant for new users (#3255) 2023-03-01 20:55:26 +08:00
simeng-li
6246fc58ba
refactor(core,console): refactor AC 403 flow (#3235) 2023-03-01 10:24:39 +00:00
Charles Zhao
af9cd0d164
fix(core): error invalid credentials should return 401 instead of 400 (#3254) 2023-03-01 16:56:25 +08:00
Charles Zhao
e8a7094e37
feat(console): allow editing basic userinfo in profile page 2023-02-28 18:23:52 +08:00
Gao Sun
bd158a46fe
refactor(core): fix CORS (#3246) 2023-02-28 09:20:41 +00:00
Gao Sun
75b6d65b3e
Merge pull request #3227 from logto-io/gao-fix-local-cors
fix(core): allow localhost CORS when only one endpoint available
2023-02-28 14:15:46 +08:00
simeng-li
cc4c4dcaa5
style(core): fix power by logto font size (#3242) 2023-02-28 13:54:58 +08:00
Gao Sun
d61cd795ac
refactor(core): add unit tests 2023-02-27 15:12:12 +08:00
Xiao Yijun
13f877ca4d
refactor(console): get-started tasks (#3208) 2023-02-27 10:15:55 +08:00
Gao Sun
237df1721c
release: version core packages 2023-02-26 15:03:37 +08:00
Gao Sun
54512c2603
fix(core): allow localhost CORS when only one endpoint available 2023-02-26 14:59:31 +08:00
silverhand-bot
cda2c821cd
release: version core packages (#3225)
Co-authored-by: Gao Sun <gao@silverhand.io>
2023-02-25 23:15:42 +08:00
Murat Gözel
1db6177f3a
feat(core): added a new endpoint to replace user roles (#3203) 2023-02-24 17:55:55 +08:00
simeng-li
c06e2d0985
refactor(core): throw registered social email or phone info (#3199) 2023-02-24 16:05:06 +08:00
simeng-li
86b796e989
fix(core): should not block social email/phone identifiers by SIE (#3201) 2023-02-24 16:04:43 +08:00
Charles Zhao
9311f4cf93
feat(core): provide /me APIs for user password and verification code in cloud AC (#3192) 2023-02-24 16:01:14 +08:00
Charles Zhao
586cc96113
feat(cloud): new APIs for social linking/unlinking in cloud AC (#3184) 2023-02-24 15:44:15 +08:00
Gao Sun
54ef69d4f4
refactor: filter out suspended users in hasActiveUsers() 2023-02-24 13:17:37 +08:00
simeng-li
ab4b98d14d
feat(core): update the OIDC post signout page (#3183) 2023-02-24 02:20:53 +00:00
simeng-li
af66760a42
fix(core): fix empty error message (#3202) 2023-02-24 10:17:33 +08:00
simeng-li
1ae64f41cb
fix(core): mount OIDC after all middlewares (#3181) 2023-02-24 10:11:51 +08:00
Gao Sun
720d1ecb33
refactor: fix cloud env (#3186)
Co-authored-by: Charles Zhao <charleszhao@silverhand.io>
2023-02-23 03:38:59 +00:00
Gao Sun
09d2dac1ea
refactor: move admin console app to database (#3185) 2023-02-22 14:35:17 +00:00
Darcy Ye
5c7e20bfd4
fix(core): should throw error when multiple connector factories have same id (#3170) 2023-02-22 14:19:16 +08:00
Gao Sun
1c2766be89
refactor: fix cloud env (#3179) 2023-02-22 12:38:30 +08:00
Gao Sun
6858f3c8dc
refactor: move console sie to database (#3171) 2023-02-21 21:24:43 +08:00
simeng-li
03099debbb
fix(ui): prevent infinite getPhrase api call (#3160) 2023-02-21 14:22:22 +08:00
Gao Sun
e3f88f5250
refactor: remove demo app db entity (#3165) 2023-02-21 03:45:06 +00:00
Gao Sun
1ef5519e75
feat: custom css (#3155) 2023-02-21 10:55:44 +08:00
Darcy Ye
a13d27a018
feat: enabled connector db read and write (#3127) 2023-02-20 18:54:02 +08:00
Gao Sun
0f3e256a87
Merge pull request #3148 from logto-io/gao-post-tenants
feat(cloud): `POST /tenants`
2023-02-20 14:38:15 +08:00
simeng-li
1c58d4ee22
Merge pull request #3150 from logto-io/simeng-log-4166-remove-unnecessary-querying-before
refactor(core): remove duplicate findEntityById query before delete
2023-02-20 14:11:02 +08:00
simeng-li
aa1cd52069
refactor(core): remove duplicate findEntityById query before delete
remveo duplication findEntityById query before delete
2023-02-20 11:37:39 +08:00
Gao Sun
76a04d97b3
feat(cloud): POST /tenants 2023-02-20 00:27:12 +08:00
Gao Sun
12377665b4
refactor(cloud): implement request auth 2023-02-19 11:31:16 +08:00
Gao Sun
ed4894a19f
feat: init cloud 2023-02-18 13:34:52 +08:00
Gao Sun
f339e86591
refactor: update tsconfig 2023-02-17 13:41:05 +08:00
Gao Sun
ed4db56254
chore: upgrade configs 2023-02-16 23:49:03 +08:00
simeng-li
3b0bee717a
fix(core): mask password in audit log (#3130) 2023-02-16 08:45:34 +00:00
Gao Sun
016833905d
refactor(core): optimize tenant not found error (#3128) 2023-02-16 15:29:28 +08:00
Gao Sun
442ab77a39
refactor(core): expose all headers in CORS (#3123) 2023-02-16 03:16:22 +00:00
Gao Sun
ff485db30d
Merge pull request #3100 from logto-io/gao-add-tests
test(core): add tests
2023-02-15 23:53:25 +08:00
Gao Sun
3c39c618a1
refactor: update per review 2023-02-15 23:30:27 +08:00
Gao Sun
40173bb5e0
Merge branch 'master' into gao-add-admin-tenant 2023-02-15 15:00:04 +08:00
Gao Sun
c137768472
refactor: utilities -> utils (#3106) 2023-02-15 10:26:22 +08:00
simeng-li
dbad0ed8a0
fix(core): user claims hot fix (#3109) 2023-02-15 10:13:25 +08:00
simeng-li
d4182efc8b
refactor(ui): refactor the register flow (#3083) 2023-02-14 15:45:15 +08:00
Gao Sun
2b7da7b228
refactor(core): fix rls error alert message (#3103) 2023-02-14 10:34:16 +08:00
Darcy Ye
84bb5b29f0
feat(core): enable creating a new connector with specified id (#3099) 2023-02-13 15:13:12 +08:00
Gao Sun
2c6d2a6b1c
Merge pull request #3075 from logto-io/gao-use-rls
refactor: use RLS
2023-02-13 14:52:15 +08:00
Gao Sun
643d418bb1
test(core): add unit tests 2023-02-12 23:37:47 +08:00
Gao Sun
7a7d7f9f41
refactor: add alteration scripts 2023-02-12 18:43:02 +08:00
Gao Sun
c225719d70
refactor(core,console): update well-known for endpoints 2023-02-12 14:28:57 +08:00
Gao Sun
10825ee3ab
refactor!: remove hideAdminUser param in user search 2023-02-11 16:27:30 +08:00
Gao Sun
0481a450be
refactor: decouple admin tenant and user tenant 2023-02-11 14:38:16 +08:00
Gao Sun
dd5b3037a8
refactor!: adjust packages to adapt admin tenant 2023-02-10 19:57:25 +08:00
wangsijie
111e2973c2
feat(console): connector config form (#3074) 2023-02-10 16:59:32 +08:00
Gao Sun
2af6fd114a
refactor!: add admin tenant 2023-02-10 13:06:52 +08:00
Darcy Ye
98eb15e205
refactor(core)!: merge SAML assertion handler API to authn API (#3082) 2023-02-10 11:26:47 +08:00
Gao Sun
6b09da2f5d
refactor: fix alteration 2023-02-09 18:31:14 +08:00
Darcy Ye
2a0ec7f78c
refactor: update connector interfaces (#3080) 2023-02-09 15:39:50 +08:00
Darcy Ye
eea02cca70
refactor(core): move connector session read/write to social verification (#3072) 2023-02-09 09:09:18 +08:00
Gao Sun
99837b4e48
refactor: use RLS 2023-02-08 18:58:45 +08:00
Darcy Ye
3a5ac1edc9
fix(core): should validate config when creating a new connector instance (#3068) 2023-02-08 06:35:03 +00:00
Gao Sun
1e8c00c014
refactor(core): init domain-based multi-tenancy env 2023-02-07 19:07:59 +08:00
Gao Sun
5e6b679fef
refactor(core): support localhost disabling 2023-02-06 18:44:34 +08:00
Gao Sun
639b5c836a
refactor(core)!: separate admin console server 2023-02-06 17:42:22 +08:00