Darcy Ye
7c2af46cf6
chore(test): complete custom phrase API guard and add ITs ( #3772 )
2023-04-28 03:41:00 +00:00
Darcy Ye
64a01f18d8
chore(test): add SIE API guard ( #3774 )
2023-04-28 11:12:57 +08:00
silverhand-bot
4bba658d7b
release: version packages ( #3751 )
2023-04-27 19:11:20 +08:00
wangsijie
e2ce5df9d2
refactor: use transaction to create user ( #3748 )
2023-04-25 10:53:42 +08:00
Darcy Ye
632b8b1d84
refactor(schemas,core,console): use JsonObject instead of ArbitraryObject ( #3730 )
2023-04-24 11:11:27 +08:00
Gao Sun
368d2f3efb
chore(deps): update dependency i18next to v22
2023-04-21 18:21:09 +08:00
silverhand-bot
dd24aafc17
release: version packages ( #3728 )
2023-04-20 17:04:15 +00:00
wangsijie
2ad86d55b3
fix(core): use client s3 sdk ( #3715 )
2023-04-20 15:20:05 +08:00
silverhand-bot
666c4eaaa7
release: version packages ( #3722 )
2023-04-19 22:34:00 +08:00
Gao Sun
352807b16a
feat: setting cloud role name for AppInsights in React ( #3721 )
...
* feat: setting cloud role name for AppInsights in React
* refactor: simplify service role names
2023-04-19 12:39:37 +00:00
Gao Sun
afdbcb39d6
refactor(core,cloud): add ApplicationInsights URL to CSP directive ( #3710 )
2023-04-19 13:48:20 +08:00
Darcy Ye
3e5b8dd796
fix(connector,phrases): cloud sms/email connectors error message ( #3699 )
2023-04-19 11:07:45 +08:00
silverhand-bot
85889031d0
release: version packages ( #3705 )
2023-04-18 21:13:31 +08:00
Darcy Ye
2e036eae1f
refactor(core): reorg connector routes and UTs ( #3700 )
2023-04-18 06:08:52 +00:00
Gao Sun
020a811016
refactor(core): improve cache behavior ( #3706 )
2023-04-18 12:20:07 +08:00
Gao Sun
c55ff367c7
chore: specify versions for workspace protocol ( #3707 )
2023-04-17 10:10:14 +00:00
Xiao Yijun
c5eb3a2ba7
feat(console): create user by multiple identifiers ( #3694 )
2023-04-14 09:48:49 +00:00
Charles Zhao
6b1948592a
feat(core): provide management API to detect if user has password ( #3698 )
...
* feat(core): provide management API to detect if user has password
* chore: add changeset
* chore: add response status to koa guard
Co-authored-by: Gao Sun <gao@silverhand.io>
---------
Co-authored-by: Gao Sun <gao@silverhand.io>
2023-04-14 12:22:33 +08:00
Gao Sun
83367569fa
refactor: align console log ( #3684 )
...
add a shared ConsoleLog class for unified console logging.
2023-04-10 17:48:19 +00:00
Gao Sun
7f6822893c
Merge pull request #3681 from logto-io/gao-add-cache-tests
...
test(core): add cache tests
2023-04-11 00:09:42 +08:00
Gao Sun
1df4c91102
Merge pull request #3679 from logto-io/gao-implement-central-cache
...
feat: central cache
2023-04-11 00:07:34 +08:00
simeng-li
764d0dd5ac
chore(core,cloud): add cloud route security headers ( #3674 )
...
* chore(core,cloud): add cloud route security headers
add cloud routes security headers
* chore(core,cloud): only allow ws on dev environment
only allow ws on dev environment
* refactor(core,cloud): update using helmetjs package
update using helmetjs package
* chore(core): fix comment
fix comment
2023-04-10 10:23:07 +08:00
Charles Zhao
7af8e9c9b1
feat(core): add management API to verify user password ( #3680 )
...
* feat(core): add management API to verify user password
* chore: add changeset
2023-04-09 22:01:35 +08:00
renovate[bot]
901ef8ecd6
chore(deps): update silverhand configs monorepo packages to v3.0.1 ( #3683 )
...
Co-authored-by: Gao Sun <gao@silverhand.io>
2023-04-07 16:17:14 +00:00
Gao Sun
8deb493d14
test: add integration test
2023-04-07 23:39:03 +08:00
Gao Sun
45cc8f4fb0
test(core): add cache tests
2023-04-07 17:41:22 +08:00
Gao Sun
1548e0732f
chore: add comments and refactor
2023-04-07 14:36:25 +08:00
Gao Sun
4a64d267b6
feat: implement central cache
...
with Redis as the default choice.
2023-04-07 14:29:35 +08:00
Gao Sun
5d68e313c2
refactor: fix tests
2023-04-07 00:58:13 +08:00
Gao Sun
aa203308f0
refactor: reorg packages
...
update `@logto/shared` to a non-business package
and put business components into `@logto/*kit`.
2023-04-04 16:28:48 +08:00
Gao Sun
94e03f2768
Merge pull request #3661 from logto-io/gao-add-spa-as-dependency
...
refactor(core): add single-page apps as dependencies
2023-04-03 17:02:52 +08:00
Gao Sun
ca11392512
refactor: conditional import app insights sdk ( #3664 )
2023-04-03 16:49:02 +08:00
Gao Sun
0e49e43245
refactor: update title in main flow and report pv for console sign-in ( #3651 )
2023-04-03 07:40:56 +00:00
simeng-li
1c431e7a59
feat(core): apply standard security headers 1/2 ( #3590 )
...
* feat(core): add some basic security headers
add some basic security headers
* chore(core): add some comments
add some comments
* chore(core): update the refererPolicy configs
update the refererPolicy configs
* chore(core): update helmet middleware
update helmet middleware
* feat(core): add csp headers to the mainflow and ac http requests 2/2 (#3613 )
* feat(core): add csp headers to the mainflow requests
add csp headers to the mainflow requests
* chore(core): add ui and console security headers
add ui and console security headers
* fix(core): remove unused middleware
remove unused middleware
* fix(ui): set terms iframe sandbox
set terms iframe sandbox allow same origin
* fix(core): update security headers middleware
update security headers middleware
* chore(core): add changesets
* chore(core): address rebase conflict
address rebase conflict
2023-04-03 10:24:50 +08:00
Gao Sun
1e5b68423a
refactor(core): add single-page apps as dependencies
2023-04-02 17:40:07 +08:00
silverhand-bot
ad13427c37
release: version core packages ( #3644 )
2023-03-30 19:44:40 +08:00
Gao Sun
1f594ddc1a
Merge pull request #3641 from logto-io/gao-add-zh-hk-tw-translation
...
feat(phrases): add zh-HK and zh-TW translation
2023-03-30 14:17:14 +08:00
Gao Sun
ae0185cab0
refactor: fix test
2023-03-30 13:59:02 +08:00
Gao Sun
c200169886
refactor: add app insights package ( #3637 )
...
* refactor: add app insights package
* refactor: fix dependencies
2023-03-30 13:36:46 +08:00
Gao Sun
f5837b4af3
refactor(phrases): align file structure
2023-03-29 18:17:51 +08:00
Gao Sun
362f6a5863
refactor(phrases): fix type issue
2023-03-29 18:00:39 +08:00
renovate[bot]
93bc915609
chore(deps): update silverhand configs monorepo packages to v3.0.0 ( #3585 )
...
* chore(deps): update silverhand configs monorepo packages to v3.0.0
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Gao Sun <gao@silverhand.io>
2023-03-24 16:28:36 +00:00
Gao Sun
29be040668
refactor: report all errors and user id ( #3580 )
...
to ApplicationInsights for better error analyzing.
2023-03-22 19:35:18 +08:00
Gao Sun
296cad8fc5
release: version packages
2023-03-22 16:25:32 +08:00
silverhand-bot
a43e72d177
release: version core packages ( #3578 )
2023-03-22 14:58:19 +08:00
renovate[bot]
11e302b2fa
chore(deps): update dependency typescript to v5 ( #3463 )
...
* chore(deps): update dependency typescript to v5
* refactor: fix build
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Gao Sun <gao@silverhand.io>
2023-03-21 19:37:51 +08:00
renovate[bot]
9633256682
fix(deps): update dependency lru-cache to v8 ( #3368 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-21 19:36:55 +08:00
Gao Sun
959d1f02dd
refactor: use caret range for workspace dependencies ( #3566 )
2023-03-21 19:33:08 +08:00
silverhand-bot
2f69933d51
release: version core packages ( #3564 )
2023-03-21 17:56:06 +08:00
Gao Sun
03ac35e755
fix(core): use unprefixed fields for query ( #3563 )
2023-03-21 07:46:50 +00:00
Gao Sun
28e9fa4290
release: core v1.0.0 ( #3554 )
...
* chore: move changesets
* release: core v1.0.0
* chore: update workflow
2023-03-20 23:57:04 +08:00
Gao Sun
d0a5537b31
refactor(core): reduce cache ttl to 5s ( #3516 )
2023-03-20 09:30:45 +08:00
Darcy Ye
0bfd8509fb
fix(console,core,toolkit): passwordless connector sender tester ( #3492 )
2023-03-19 14:35:38 +00:00
Darcy Ye
ad3611f5a0
refactor(schemas,core,toolkit): remove connector db storage and disable access ( #3505 )
2023-03-19 11:45:13 +00:00
Gao Sun
43ed97a014
refactor: fix application insights role names ( #3498 )
2023-03-19 13:38:34 +08:00
Gao Sun
5a2f3c3461
refactor(core,ui): fix cache issue when sign in to live preview ( #3495 )
2023-03-19 03:39:16 +00:00
Gao Sun
74e1c8132f
Merge pull request #3467 from logto-io/gao-track-exception
...
refactor(cloud,core): report exception to Application Insights
2023-03-19 10:50:36 +08:00
Gao Sun
79bed6e23a
refactor: update banner style ( #3478 )
2023-03-19 02:44:18 +00:00
Gao Sun
d27499c553
refactor(cloud,core): report exception to Applicaiton Insights
...
when status code >= 500 or other unhandled expcetions occurred.
2023-03-19 10:40:17 +08:00
Gao Sun
97985da522
refactor(core,console,phrases): fix connector error handling and phrases ( #3488 )
2023-03-18 20:57:05 +08:00
Gao Sun
169c4450eb
refactor: use essentials tryThat and trySafe
2023-03-18 13:02:51 +08:00
renovate[bot]
fa3c13a68d
chore(deps): update dependency @silverhand/essentials to v2.5.0
2023-03-17 18:41:13 +00:00
Gao Sun
c7bbdb40a0
Merge pull request #3430 from logto-io/gao-cache-well-known-data
...
refactor: cache well-known data
2023-03-17 15:36:41 +08:00
Gao Sun
680b555c70
refactor(core): fix test
2023-03-17 15:24:52 +08:00
Xiao Yijun
3404684a61
refactor(console): update get-started tasks ( #3439 )
2023-03-17 14:19:29 +08:00
Gao Sun
e0fad2dccd
refactor: implement ttl cache
2023-03-17 13:59:59 +08:00
Gao Sun
1256711bcc
refactor(core): set server timeout
2023-03-17 13:59:59 +08:00
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