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

2282 commits

Author SHA1 Message Date
simeng-li
f94fb519f4
feat(core): add get available sso connectors endpoint (#6224)
feat(core): implement get sso connectors
implement get sso connectors endpoint
2024-07-15 18:32:42 +08:00
wangsijie
c5897b3893
refactor(core): remove subject token api prefix (#6235) 2024-07-15 15:36:14 +08:00
Gao Sun
dd4ae57a98
Merge pull request #6241 from logto-io/gao-upgrade-zod 2024-07-15 10:49:13 +08:00
Gao Sun
c2bcdb7c20
Merge pull request #6240 from logto-io/gao-upgrade-packages 2024-07-15 10:47:38 +08:00
simeng-li
5bae495cc9
feat(core,schemas): implement the sie settings guard (#6215)
* feat(core,schemas): implement the sie settings guard

implement the sie settings guard

* fix(test): fix integration test

fix integration test

* test(core): add sie guard ut

add sie guard ut

* chore(core): add some comment

add some comment

* refactor(core): rename the sign-in-experience-settings class

rename the sign-in-experience-settings class
2024-07-15 09:53:50 +08:00
Gao Sun
f96277b410
refactor: patch type issues 2024-07-13 21:30:35 +08:00
Gao Sun
e3109af026
chore(deps): upgrade zod 2024-07-12 20:56:01 +08:00
Gao Sun
dbf9b2b04b
chore(deps): upgrade packages 2024-07-12 20:53:42 +08:00
Gao Sun
d203c8d2ff
refactor: experience ssr (#6229)
* refactor: experience ssr

* refactor: fix parameter issue
2024-07-12 19:00:36 +08:00
simeng-li
dcb62d69d4
feat(core,schemas): introduce new PUT experience API (#6212)
* feat(core,schemas): introduce new PUT experience API

introduce new PUT experience API

* fix(core): fix some comments

fix some comments
2024-07-12 10:16:43 +00:00
wangsijie
608349e8ea
refactor(core): refactor organizations in grants (#6208) 2024-07-12 06:19:38 +00:00
Gao Sun
ba875b417c
refactor: fix third-party app experience branding (#6223) 2024-07-12 06:04:43 +00:00
wangsijie
f9d6137048
feat(core): handle dpop and client certificate for token exchange (#6199) 2024-07-12 14:03:21 +08:00
simeng-li
9c05106d88
feat(core,schemas): implement backup codes verification (#6207)
implement the backup code verification flow
2024-07-11 10:07:27 +08:00
simeng-li
be410acbbb
feat(core): implement TOTP verification routes (#6201)
* feat(core): implmenent totp verification routes

implement totp verification routes

* fix(core): update comments

update comments
2024-07-10 19:14:51 +08:00
Gao Sun
5f8eb518b5
Merge pull request #6196 from logto-io/gao-app-logo-and-color
feat: support app-level branding
2024-07-10 14:17:59 +08:00
Gao Sun
ee0e3b8bd0
refactor(core): update cache key 2024-07-10 14:03:18 +08:00
wangsijie
55ff41e29b
feat(core): add quota guard for subject tokens (#6205) 2024-07-09 16:20:55 +08:00
simeng-li
addb528652
feat(core): implement enterprise sso verification flow (#6198)
implement the enterprise sso verification flow
2024-07-09 14:59:52 +08:00
simeng-li
d7fa9f5900
refactor(core): refactor the sso interaction handlers (#6186)
refactor(core): revert the sso utils input refactor

revert the sso utils input refactor
2024-07-09 13:51:33 +08:00
renovate[bot]
0ca307cb5f
fix(deps): update dependency lru-cache to v11 (#6203)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-09 13:25:53 +08:00
Gao Sun
4a8b7c0648
feat: support app-level branding 2024-07-08 16:52:15 +08:00
wangsijie
1557c34134
feat(core): add subject token context to jwt customizer (#6185) 2024-07-08 07:35:00 +00:00
wangsijie
4c6fb767f0
feat(core): actor token (#6171) 2024-07-08 13:23:38 +08:00
Gao Sun
1340f3bc5d
Merge pull request #6193 from logto-io/gao-remove-unused-param
refactor(core, experience): remove `no_cache` param
2024-07-08 13:16:50 +08:00
Gao Sun
51be195e51
Merge pull request #6192 from logto-io/gao-support-org-logo-for-sie
feat: organization logo
2024-07-08 13:15:54 +08:00
simeng-li
07316cf0b9
refactor(core): refactor identifyUser method (#6154)
refactor(core): refactor the user identification flow

refactor the user identification flow
2024-07-08 10:09:40 +08:00
Gao Sun
a6f96f1d8d
refactor(core, experience): remove no_cache param 2024-07-08 09:03:45 +08:00
Gao Sun
3a839f6d60
feat: organization logo 2024-07-07 21:40:26 +08:00
silverhand-bot
1fa9f85e14
release: version packages (#5987) 2024-07-06 09:07:56 +08:00
simeng-li
d16bc9b2e5
feat(core,schemas): implement social verification experience API endpoints (#6150)
feat(core,schemas): implement the social verification flow

implement the social verificaiton flow
2024-07-05 16:36:40 +08:00
simeng-li
d85cd323ae
feat(core): implement verification code verification API (#6001)
* feat(core,schemas): implement the verification code flow

implement the verification code flow

* chore(core): fix rebase issue

fix rebase issue
2024-07-05 11:47:59 +08:00
simeng-li
aec2cf4f5b
feat(core): implement new experience API routes (#5992)
* feat(core): implement new interaction-session management flow

implement a new interaction-session management flow for experience api use

* feat(core): implement password sign-in flow

implement password sign-in flow

* test(core,schemas): add sign-in password tests

add sign-in password tests

* chore(core): update comments

update comments

* refactor(core): rename the password input value key

rename the password input value key

* refactor(core,schemas): refactor the experience API

refactor the exerpience API structure

* chore(test): add devFeature test

add devFeature test

* refactor(core): rename the path

rename the path

* refactor(core,schemas): refactor using the latest API design

refactor using the latest API design

* chore(test): replace using devFeature test statement

replace using devFeature test statement

* fix(core): fix lint error

fix lint error

* refactor(core): refactor experience API implementations

refactor experience API implementations

* refactor(core): replace with switch

replace object map with switch

* refactor: apply suggestions from code review

* refactor(core): refactor the interaction class
 refactor the interaction class

* refactor(core): update the user identification logic

update the user identification logic

---------

Co-authored-by: Gao Sun <gao@silverhand.io>
2024-07-05 11:02:36 +08:00
wangsijie
504f5b2a99
feat(core): handle oidc scopes for token exchange (#6147)
* feat(core,schemas): token exchange grant

* feat(core): third-party applications are not allowed for token exchange

* feat(core,schemas): token exchange grant

* feat(core): organization token for token exchange flow

* feat(core): handle oidc scopes for token exchange
2024-07-03 08:32:57 +00:00
Gao Sun
de9ee8962a
fix(core): issue organization_id claim for client credentials (#6170) 2024-07-03 14:40:42 +08:00
Charles Zhao
17921b5138
feat(schemas): custom ui assets db update (#6010) 2024-07-03 06:27:03 +00:00
Mostafa Moradian
d60f6ce48e
feat: add operationId to HTTP methods on paths (#6108)
* feat: add operationId to HTTP methods on paths

* refactor(core): strictly handle routes for building operation id

* chore: add changeset

* refactor: reorg code

* refactor: use get as verb for singular items

---------

Co-authored-by: Gao Sun <gao@silverhand.io>
2024-07-03 05:19:59 +00:00
wangsijie
8b63652c8e
feat(core): organization token for token exchange flow (#6106)
* feat(core,schemas): token exchange grant

* feat(core): third-party applications are not allowed for token exchange

* feat(core,schemas): token exchange grant

* feat(core): organization token for token exchange flow
2024-07-02 13:54:42 +08:00
wangsijie
2ce6ba3447
feat(core): third-party applications are not allowed for token exchange (#6100)
* feat(core,schemas): token exchange grant

* feat(core): third-party applications are not allowed for token exchange
2024-07-02 10:47:19 +08:00
Gao Sun
dd69c1c4f6
refactor: fix mermaid in production (#6149)
Use dynamic CDN import to use Mermaid as Parcel has issues on handling the
static import in production.
2024-07-01 18:06:38 +08:00
wangsijie
685a97476a
feat(core,schemas): token exchange grant (#6057) 2024-07-01 16:36:34 +08:00
Gao Sun
87615d58ce
chore: launch m2m app for organizations (#6129)
* chore: launch m2m app for organizations

* chore: add changeset
2024-07-01 14:55:47 +08:00
Gao Sun
b1e7f62f79
refactor(core): update grant comments (#6120) 2024-06-27 18:50:51 +08:00
Gao Sun
b590e64f59
feat(core): issue organization token via client credentials (#6098)
* feat(core): issue organization token via client credentials

* refactor: fix tests
2024-06-26 16:18:12 +08:00
Xiao Yijun
75c0468abe
refactor: handle potential errors during ky requests in koa-auth middleware (#6112) 2024-06-26 15:22:41 +08:00
Darcy Ye
b52609a1ed
feat(core): add hasPassword field to custom JWT user context (#6096) 2024-06-25 14:58:25 +08:00
Mostafa Moradian
d123d46ebc
fix: include tenantId and its root param in responses (#6092)
* fix: include tenantId and its root param in responses

* refactor: use shared object

---------

Co-authored-by: Gao Sun <gao@silverhand.io>
2024-06-25 02:24:56 +00:00
Gao Sun
dfa0135b6a
refactor: add brief intro in swagger.json (#6102) 2024-06-25 10:24:17 +08:00
Gao Sun
581ecd9cd0
Merge pull request #6090 from logto-io/gao-organization-m2m-apps
feat(console): m2m pages in organizations
2024-06-24 18:45:13 +08:00
Gao Sun
88ee906b75
refactor(core): fork client credentials grant 2024-06-23 22:33:06 +08:00
Gao Sun
a43434c42f
Merge pull request #6089 from mostafa/fix-oas-validation-errors
fix: generate valid OpenAPI spec
2024-06-23 14:12:20 +08:00
Gao Sun
d51e839cdb
refactor: add changeset and improve code 2024-06-23 13:47:10 +08:00
Gao Sun
ca22bc6ae9
feat(console): m2m pages in organizations 2024-06-23 11:31:24 +08:00
Gao Sun
58f3eeae64
Merge pull request #6087 from logto-io/gao-org-app-role-apis
feat(core): update application organization role apis
2024-06-23 11:13:45 +08:00
Gao Sun
1620bbd718
Merge pull request #6086 from logto-io/gao-org-app-apis
feat(core): add organization - application apis
2024-06-23 11:02:19 +08:00
Gao Sun
9b361011e7
refactor: update status code 2024-06-23 10:47:44 +08:00
Gao Sun
cbab5af58f
Merge pull request #6083 from logto-io/gao-update-org-app-fetch
refactor(core): return roles in organization app get api
2024-06-23 10:35:22 +08:00
Gao Sun
097dfcac89
refactor: filter whole supplement document if needed (#6085) 2024-06-23 10:33:28 +08:00
Mostafa Moradian
e24ff76c1f
fix: update mocks and docstrings 2024-06-22 23:33:13 +02:00
Mostafa Moradian
0a194c6752
fix: change special character to fix root paramter naming issue
feat: add customParameters function for fixing tenantId error on `/api/.well-known/endpoints/{tenantId}`
2024-06-22 19:19:00 +02:00
Gao Sun
754d0e1340
feat(core): update application organization role apis 2024-06-22 23:17:05 +08:00
Gao Sun
12cd49f903
feat(core): get application organizations api 2024-06-22 23:16:38 +08:00
Gao Sun
b839f6c46f
refactor(core): return roles in organization app get api 2024-06-22 22:58:44 +08:00
wangsijie
b1a12fb375
feat(core): issue subject tokens (#6045) 2024-06-22 02:31:27 +00:00
Gao Sun
0f39d39f7a
refactor(core): reorg organization routes 2024-06-21 21:47:52 +08:00
Gao Sun
fae11359b2
refactor(core): update naming and fix typos 2024-06-21 20:13:52 +08:00
Gao Sun
ec95536b84
Merge pull request #6071 from logto-io/gao-org-app-role-apis
feat(core): organization app role apis
2024-06-21 20:00:06 +08:00
Gao Sun
c51eab1bc4
Merge pull request #6069 from logto-io/gao-org-jit-sso-impl
feat(core): organization jit sso
2024-06-21 16:39:33 +08:00
Darcy Ye
651a027b49
chore(core): add dev feature tag for openapi.json (#6025)
chore(core): add dev feature tag for openapi.json to indicate operation should not show up in swagger.json
2024-06-21 16:09:21 +08:00
Gao Sun
2cf30d2f03
feat(core): organization jit sso 2024-06-21 13:56:08 +08:00
Gao Sun
c1ffadeff6
Merge pull request #6067 from logto-io/gao-org-jit-sso
feat(core): organization jit sso apis
2024-06-21 09:54:33 +08:00
Gao Sun
07da7918e2
feat(core): init organization app role apis 2024-06-20 14:16:55 +08:00
Gao Sun
0d8263682d
feat(core): organization jit sso apis 2024-06-20 11:35:04 +08:00
Gao Sun
32270d1d7e
Merge pull request #6065 from logto-io/gao-reorg-org-api-docs
refactor(core): reorg organization users api docs
2024-06-20 10:12:29 +08:00
Gao Sun
5362772f6d
Merge pull request #6064 from logto-io/gao-init-org-app-apis
feat(core): init organization app apis
2024-06-20 09:58:09 +08:00
Gao Sun
e83e94f822
Merge pull request #6055 from logto-io/gao-refactor-relation-queries
refactor(core): update relation queries
2024-06-20 09:57:25 +08:00
Gao Sun
4d879fc358
refactor(core): reorg organization users api docs 2024-06-19 22:29:59 +08:00
Gao Sun
6dd2565dca
feat(core): init organization app apis 2024-06-19 22:29:44 +08:00
Gao Sun
97efe1e734
refactor: fix google one tap issues (#6054) 2024-06-19 14:24:19 +08:00
Gao Sun
b543356bb3
refactor(core): update relation queries 2024-06-19 14:21:15 +08:00
Gao Sun
71ba7c4cc6
feat(core): jit organization roles (#6049) 2024-06-19 11:07:45 +08:00
Xiao Yijun
1bdfb4374c
feat(schemas): add agree_to_terms_policy for sie table (#6036) 2024-06-18 21:47:21 +08:00
simeng-li
d210f4f2e4
test(core): implement sso related integration tests (#6041)
* test(core): implement sso related integration tests

implement sso related integration tests

* chore(core): remove unnecessary comments

remove unnecessary comments
2024-06-18 02:16:27 +00:00
Gao Sun
d9119b56ec
Merge pull request #6031 from logto-io/gao-google-one-tap-core 2024-06-18 09:59:32 +08:00
Gao Sun
4118669c91
Merge pull request #6027 from logto-io/gao-update-changeset
chore: update changeset
2024-06-17 11:53:21 +08:00
Gao Sun
59fe21aec7
Merge pull request #6026 from logto-io/gao-org-jit-roles-tests
refactor: add organization jit role api tests
2024-06-17 11:52:40 +08:00
Gao Sun
4266ac8c06
Merge pull request #6024 from logto-io/gao-org-jit-roles
feat(core,console): organization jit roles
2024-06-17 11:51:54 +08:00
Gao Sun
b286dd314a
Merge pull request #6003 from logto-io/gao-org-mfa
feat(core,console): organization mfa requirement
2024-06-17 10:44:46 +08:00
Gao Sun
552a3e59db
chore: add tests 2024-06-16 22:02:13 +08:00
Gao Sun
942780fcfa
feat(core): google one tap 2024-06-16 14:31:33 +08:00
Gao Sun
320b720c46
refactor: rename method 2024-06-15 11:22:06 +08:00
Gao Sun
aefe5cbacb
chore: update changeset 2024-06-14 22:54:32 +08:00
Gao Sun
b25bca3aa2
refactor: add organization jit role api tests 2024-06-14 22:44:03 +08:00
Gao Sun
7d6e8dcf9a
Merge pull request #5999 from logto-io/gao-remove-dev-features-guard
chore(console,core): launch organization jit
2024-06-14 14:58:57 +08:00
Gao Sun
3ea37c5275
feat(core,console): organization jit roles 2024-06-14 14:50:33 +08:00
Gao Sun
752059d6b1
Merge pull request #6002 from logto-io/gao-enable-backchannel-logout
feat(core,console): enable backchannel logout
2024-06-14 11:10:42 +08:00
Gao Sun
8306cc4263
Merge pull request #5998 from logto-io/gao-console-jit
feat(console): implement organization jit ui
2024-06-14 10:55:34 +08:00
simeng-li
930f23e363
fix(core): prevent uncaught promise rejection (#6009)
* fix(core): prevent uncaught promise rejection

prevent uncaught promise rejection crashing the app

* refactor(core): remove inline await

remove inline await statement

* chore(core): update comment

update comment
2024-06-12 07:05:42 +00:00
Gao Sun
136320584f
feat: automatic social account linking (#5881)
* feat: automatic social account linking

* chore: add integration tests

* chore: add changeset
2024-06-08 20:23:57 +08:00
Gao Sun
75ab459c0a
feat(core,console): organization mfa requirement 2024-06-08 14:15:07 +08:00
Gao Sun
efa884c409
chore(console,core): launch organization jit 2024-06-08 10:22:38 +08:00
Gao Sun
f28a083ed0
feat(core,console): enable backchannel logout 2024-06-07 22:12:24 +08:00
Gao Sun
fc1699631c
feat(console): implement organization jit ui 2024-06-07 15:00:06 +08:00
Gao Sun
afb1091603
refactor: fix tests 2024-06-06 19:09:40 +08:00
Gao Sun
ab4867d310
refactor(core): trigger organization membership updated hook from jit 2024-06-06 18:11:49 +08:00
Gao Sun
d4cb91e6c9
feat(core): implement organization jit provisioning 2024-06-06 14:30:29 +08:00
Gao Sun
be9d94d4fd
refactor: fix tests 2024-06-06 14:30:05 +08:00
Gao Sun
f6dbb0aad1
chore: add api docs 2024-06-06 13:37:43 +08:00
Gao Sun
b85ecb6c93
feat(core): organization email domains apis 2024-06-06 10:33:33 +08:00
Gao Sun
ce911309da
refactor(core): reorg organization queries 2024-06-05 18:25:18 +08:00
Gao Sun
ec6f1d39d8
refactor(core): reorg organization routes 2024-06-05 18:17:39 +08:00
simeng-li
7a279be1fc
refactor(core,schemas): add user detail payload to User.Deleted webhook event (#5986)
* refactor(core,schemas): add user detail payload to User.Deleted DataHook event

add user detail data payload to the User.Deleted DataHook event

* fix(core): fix unit test

fix unit test
2024-06-04 11:09:27 +00:00
Gao Sun
8669149a08
refactor(core): optimize redis error handling (#5965) 2024-06-04 09:46:35 +08:00
Gao Sun
123ecaec47
refactor(core): try to fix uncaught exception (#5982) 2024-06-03 12:26:01 +00:00
simeng-li
a495ab00ba
feat(core): report oidc exceptions to the appInsights (#5978)
report oidc exceptions to the appInsights
2024-06-03 18:58:56 +08:00
Charles Zhao
14515f2c44
fix(core): profile avatar upload should not return 400 error (#5974) 2024-06-03 17:45:42 +08:00
renovate[bot]
914555e683
chore(deps): update dependency @logto/cloud to v0.2.5-a7eedce (#5847)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-03 04:16:04 +00:00
silverhand-bot
0decba0308
release: version packages (#5868) 2024-05-31 23:48:43 +08:00
Gao Sun
a0b19513bb
feat(console): show version number for oss (#5950) 2024-05-31 18:05:20 +08:00
simeng-li
0c70d65c7b
feat(core,toolkit): add new sso_identities claim (#5955)
* feat(core,toolkit): add new sso_identities claim

add new sso_identities claim to the userinfo endpoint

* chore: update changeset

update changeset

* chore: update comments

update comments

* refactor(core): use findUserSsoIdentites query method in user library

use findUserSsoIdentites query method in user library
2024-05-31 06:31:26 +00:00
Gao Sun
3927e6644c
refactor: update naming (#5951)
replace all "mainFlow" with "experience"
2024-05-31 03:40:40 +00:00
Charles Zhao
4b75860233
docs(core): remove pagination from get organization invitation api docs (#5934) 2024-05-30 10:30:22 +08:00
Charles Zhao
558986d28d
fix(core,console): update invalid documentation links in console and core (#5937)
fix(core,console): update invalid documentation links in console and core cli
2024-05-30 10:17:42 +08:00
simeng-li
458746c9ac
fix(core): fix azure oidc sso connector authorization error (#5912)
* fix(core): fix azure oidc sso connector authorization error

fix azure oidc sso connector authorization error

* chore: add changeset

add changeset

* chore: update changeset

update changeset

* fix(core): dynamicly verify multi-tenant azure oidc issuer

dynamicly verify multi-tenant azure oidc issuer
2024-05-29 13:30:56 +08:00
Gao Sun
c7aba27dac
refactor(core): use jwks response from oidc for admin tenant keys (#5935) 2024-05-29 13:27:14 +08:00
Gao Sun
06ac416750
chore(deps): upgrade @logto/cloud 2024-05-28 19:02:46 +08:00
Gao Sun
f7e1176554
chore(deps): upgrade @logto/cloud 2024-05-28 16:13:44 +08:00
simeng-li
b5104d8c19
feat(console,core): remove DataHook devFeature guard (#5898)
* feat(console,core): remove DataHook devFeature guard

remove DataHook devFeature guard

* chore: add changeset

add changeset

* chore: update changesets

update changesets
2024-05-22 11:20:09 +08:00
Gao Sun
38811e1099
refactor: remove internal role policies (#5904)
* refactor: remove internal role policies

* refactor: remove unused tests
2024-05-21 21:44:24 +08:00
Gao Sun
e762d64120
refactor(core): report forwarded headers (#5907) 2024-05-21 19:00:00 +08:00
simeng-li
330c6bd6eb
feat(core): update test hook payload (#5883)
update test hook payload to be dynamic based on InteractionHook or DataHook event
2024-05-17 09:40:44 +00:00
simeng-li
88f568f3c5
feat(core): add suctom scopes.updated hook events (#5880)
* feat(core): add suctom scopes.updated hook events

add scopes.updated hook event to role creation api

* chore(core): add dev feature guard

add dev feature gurad

* feat(core): fetch scopes details and return to the hook

fetch scopes details and return to the hook

* refactor(core): mark deprecated body of roles/:id/scopes api

mark deprecated body of roles/:id/scopes api

* fix(test): fix unit test

fix unit test
2024-05-17 17:25:31 +08:00
simeng-li
a1091aee20
refactor(core,schemas): move webhook event payload type definition to schemas (#5878)
move webhook event payload type definition to schemas
2024-05-17 16:25:19 +08:00
Gao Sun
76fd33b7ed
feat: default user role (#5872)
* feat: default user role

* chore: add tests and changeset

* refactor: show warning for deprecated env

* chore: fix tests
2024-05-17 16:02:05 +08:00
renovate[bot]
1b2359be59
chore(deps): update dependency sinon to v18 (#5870)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-16 16:43:26 +08:00
simeng-li
5e7bee1c8c
refactor(core,schemas,test): rename DataHook data update event name (#5876)
rename the DataHook Schema data update event name
2024-05-16 06:40:59 +00:00
simeng-li
5462ab4765
feat(core): trigger user create DataHook event on user registration (#5837)
* feat(core): trigger user data hook event on interaction api call

trigger user data hook event on interaction api call

* chore(core): refine comments

refine comments

* fix(core): fix the interactionHookMiddleware

fix the interactionHookMiddleware

* test(core): add integration tests

add integration tests for interaction hooks

* chore(test): remove legacy test

remove legacy test
2024-05-15 11:17:46 +08:00
silverhand-bot
7b5a4e3fb4
release: version packages (#5684) 2024-05-14 20:27:55 +08:00
wangsijie
5660c54cb5
fix(core): should sign out user after deletion or suspension (#5857)
fixed #5572
2024-05-14 08:10:31 +00:00
wangsijie
1c414f1889
fix(core): fix consent scopes filter rule for non-3rd-party app (#5859) 2024-05-14 15:24:49 +08:00
Gao Sun
304d948511
refactor(core): update first admin user preconditions (#5858) 2024-05-14 14:12:07 +08:00
simeng-li
f020c5984c
fix(core): add devFeature guard for DataHooks (#5861)
fix(core): add devFeature guard

add devFeature guard
2024-05-14 14:05:52 +08:00
wangsijie
062d21764c
chore(core): add custom domain host to app insights (#5852) 2024-05-13 13:04:18 +00:00
simeng-li
5acd7ef8cb
refactor(core, schemas): update interaction webhook middleware using contextManager (#5834)
* feat(core): update interaction webhook middleware using contextManager
updaet interaction webhook middleware using contextManager

* fix(test): fix ut

fix ut

* refactor(core, schemas): refactor DataHook context structure

refactor DataHook context structure

* fix(core): fix demo-app application not found error

fix demo-app application not found error

* chore(core): update comments

update comments
2024-05-13 16:49:09 +08:00
simeng-li
e7a642028d
feat(schemas): define data hook events (#5828)
* feat(schemas): define data hook events

define data hook events

* fix(schemas,core): fix the type error

fix the type error

* fix(core): fix unit test

fix unit test

* feat(test): add integration tests for DataHooks

add integration tests for DataHooks

* fix(test): fix ut of management api hook middleware
fix ut of the management api hook middleware

* refactor(test,core,schemas): refactor some DataHook definiations

refactor some DataHook definitations

* chore(test): remove upper scope describe wrap

remove upper scope describe wrap

* fix(test): fix tests

fix tests

* refactor(schemas): rename the info.update events

rename the info.update events

* refactor(schemas): rename

rename

* refactor(core,schemas): refactor DataHook code

refactor DataHook code to address some code review comments

* fix(test): fix ut

fix ut

* fix(schemas): update DataHookEventPayload type

update DataHookEventPayload type

* chore(schemas): update comments

update comments
2024-05-13 16:11:50 +08:00
wangsijie
e388c66a2e
chore(core,schemas): remove feature guard of organization api resource (#5743) 2024-05-13 06:26:34 +00:00
wangsijie
0fc9f83b7e
fix(core): filter scopes for 3rd-party app (#5845) 2024-05-13 11:05:30 +08:00
renovate[bot]
b7d950b40c
fix(deps): update dependency @simplewebauthn/server to v10 (#5705)
* fix(deps): update dependency @simplewebauthn/server to v10

* fix(core): update code to support @simplewebauthn/server v10

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: wangsijie <wangsijie@silverhand.io>
2024-05-13 11:05:08 +08:00
Darcy Ye
5872172cbb
feat(core,console): enable custom JWT for OSS and can run script in local vm (#5794) 2024-05-11 22:22:14 +08:00
Charles Zhao
ff65cfb75b
fix(console): make profile a tenant independent page (#5687)
* fix(console): make profile a tenant independent page

* refactor(console): profile routes

* chore(core): refactor later
2024-05-09 19:16:26 +08:00
wangsijie
7244dadf69
feat(core,schemas): update consent info (#5822) 2024-05-09 13:32:31 +08:00
Gao Sun
21bb35b127
feat: init management api hook middleware function (#5783)
* feat: init management api hook middleware function

* refactor: fix type issues

* feat(core): implement auto triggered management api hooks

implement auto triggered managment api hooks

* refactor(console,core,schemas): rename the managementHook to dataHook

rename the managementHooke to dataHook and redefine the types

* feat(core): add dev feature guard

add dev feature guard

* chore: update changeset

update changeset

* refactor(core,console,schemas,shared): update the webhook logics

update the webhook logics. Address some PR review comments

* fix(test): fix integration tests

fix integration tests

* fix(test): remove legacy code

remove legacy code

* refactor(core,schemas): refactor the hook library code

refactor the webhooks library code. address some comments

* fix(core): address rebase issue

update console log using getConsoleLogFromContext

* fix(core): fix ut

fix ut

* fix(core): refactor data webhook code

refactor data webhook codes

* refactor(core): clean up some management api webhook code

clean up some management api webhook code

---------

Co-authored-by: simeng-li <simeng@silverhand.io>
2024-05-09 11:19:01 +08:00
wangsijie
726a65dd8e
feat(core,schemas): add org resource scopes to consent get (#5808) 2024-05-07 16:39:37 +08:00
Gao Sun
5eb5d3a265
chore(deps): upgrade withtyped packages (#5829) 2024-05-07 11:08:10 +08:00
Gao Sun
4397ca29ed
refactor(core): optimize init (#5826) 2024-05-06 09:12:36 +00:00
Gao Sun
95682f72a1
chore(deps): upgrade withtyped packages (#5827) 2024-05-06 17:06:37 +08:00
Charles Zhao
b4b8015db5
fix(core): invitee email check should be case insensitive (#5823)
* fix(core): invitee email check should be case insensitive

* chore: add changeset
2024-05-06 10:21:45 +08:00
Gao Sun
ac3575a023
refactor: remove app insights domains from security headers (#5814) 2024-05-01 15:49:30 +00:00
Gao Sun
a9ccfc738d
refactor: implement request id (#5813)
* refactor: implement request id

* refactor: fix tests

* refactor: add unit tests
2024-05-01 15:49:01 +00:00
wangsijie
5adf3dfad7
feat(core,schemas): add CRUD for consent organization resource scopes (#5804)
feat(core,schemas): add crud for user consent organization resource scopes
2024-04-30 15:09:13 +08:00
wangsijie
3486b12e86
fix(core): fix upload file guard (#5810)
fix: remove the plus sign in front of the phone number (#5801)

Co-authored-by: Kamto <kam_to@outlook.com>
2024-04-30 03:40:05 +00:00
simeng-li
bbd399e157
fix(experience,core): fix SSO register hook event not triggering bug (#5796)
* fix(experience,core): fix SSO register hook event not triggering bug

fix the SSO register hook event not triggering bug

* chore: update changeset content

update changeset content
2024-04-28 03:24:15 +00:00
wangsijie
aec6c779b2
fix(core): fix status code of create new user api (#5735) 2024-04-28 11:06:37 +08:00
Darcy Ye
012a2c0e36
Merge pull request #5793 from logto-io/yemq-refactor-jwt-library-methods
refactor(core): move the deploy/undeploy worker methods to jwtCustomizerLibrary
2024-04-26 10:05:06 +08:00
Darcy Ye
d6930f9667
refactor: reorg the implementation 2024-04-25 21:20:19 +08:00
renovate[bot]
61e20940fe
chore(deps): update dependency supertest to v7 (#5791)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-25 11:53:00 +08:00
Gao Sun
3c4971ee25
Merge pull request #5784 from logto-io/gao-update-router-name
refactor(core): update `AuthedRouter` -> `ManagementApiRouter`
2024-04-25 11:51:55 +08:00
Xiao Yijun
f9c7a72d51
feat(connector): support client_secret_basic and client_secret_jwt methods for oauth2 connectors (#5762) 2024-04-24 13:51:41 +08:00
Gao Sun
f0a01a73be
refactor(core): update AuthedRouter -> ManagementApiRouter 2024-04-24 12:41:34 +08:00
Charles Zhao
ead2abde65
fix(core): bump oidc-provider to fix resource indicator check (#5782)
* fix(core): bump oidc-provider to fix resource indicator check

* chore: add changeset
2024-04-24 09:51:56 +08:00
Darcy Ye
61a2422601
chore(console,core): remove custom JWT dev feature guard (#5775) 2024-04-23 18:53:45 +08:00
Charles Zhao
b575f57ac3
feat(core): support comma separated resource param (#5773) 2024-04-23 15:11:39 +08:00
Charles Zhao
30aec5dd5f
chore(core): fix typo in code comments (#5772) 2024-04-23 10:14:37 +08:00
Darcy Ye
e035377b83
chore: update util function interface and update comments 2024-04-19 00:32:11 +08:00
Darcy Ye
801eae87d2
chore: apply suggestions from code review
Co-authored-by: Gao Sun <gao@silverhand.io>
2024-04-18 22:40:45 +08:00
Darcy Ye
2e103f513e
fix(core): update cloud dependency, cloud client calls 2024-04-18 22:40:42 +08:00
renovate[bot]
8508469abf
chore(deps): update silverhand configs monorepo packages to v6 (major) (#5750)
* chore: upgrade configs

* refactor: fix lint errors

* refactor: fix lint errors

* refactor: fix stylelint issues

---------

Co-authored-by: Gao Sun <gao@silverhand.io>
2024-04-18 12:26:37 +00:00
Alessandro Chitolina
8ef021fb35
feat(core): add redis cluster and tls extra options support (#5619)
* feat: add redis cluster and tls extra options support

* refactor(core): allow non-normative redis url

---------

Co-authored-by: Gao Sun <gao@silverhand.io>
2024-04-18 20:14:49 +08:00
Gao Sun
e1d5b8a72a
refactor: upgrade packages (#5739)
* refactor: upgrade packages

* refactor: fix type issues

* refactor: fix koa-guard
2024-04-18 06:32:12 +00:00
Charles Zhao
52df3ebbbb
fix(core,console): invitee emails should be case insensitive (#5730)
* fix(core,console): invitee email checks should be case insensitive

* test: add integration test

* chore: add changeset
2024-04-17 17:55:54 +08:00
wangsijie
d545303568
fix(core): set oidc access denied error code to 403 (#5725) 2024-04-17 02:27:47 +00:00
Charles Zhao
59acedeecd
feat(console): update user access immediately on tenant role updates (#5720)
* feat(console): update user access immediately on tenant role updates

* chore: improve comments

Co-authored-by: Gao Sun <gao@silverhand.io>

---------

Co-authored-by: Gao Sun <gao@silverhand.io>
2024-04-16 16:31:34 +00:00
Gao Sun
368385b93d
refactor(core): dont throw for status errors in prod (#5690)
* refactor(core): dont throw for status errors in prod

* refactor(core): report to AppInsights
2024-04-16 09:36:56 +00:00
wangsijie
de47d6ab5e
chore(core): fix typos in comment (#5718) 2024-04-16 05:11:18 +00:00
simeng-li
43430afddb
feat(core): add customJwt paywall guard to core API (#5708)
add customJwt paywall guard to core API
2024-04-16 12:02:08 +08:00
wangsijie
d355ac7d20
feat(core): handle access token with organization api resource (#5653) 2024-04-16 09:58:47 +08:00
Charles Zhao
aacbebcbc8
feat(core): add api to fetch organization scopes for a user (#5701)
* feat(core): add api to fetch user organization scopes

* chore: add openapi.json

* fix: integration test

* chore: turn off max-lines lint rules for openapi json files

* chore: add changeset

* refactor: return all scope information instead of just the name
2024-04-15 07:04:42 +00:00
simeng-li
559331d51e
refactor(core,schemas): make the jwt customizer script field mandatory (#5696)
* refactor(core,schemas): make the jwt customizer script field mandatory

make the jwt customizer script field mandatory

* fix(schemas): fix the alteration script

fix the alteration script

* fix(schemas): fix ut

fix ut
2024-04-15 10:38:30 +08:00
simeng-li
568e3dc202
feat(core): add jwt-customizer test script deployment (#5686)
feat(core): call cloud worker deploy service on custom jwt test

call cloud worker deploy service on custom jwt test
2024-04-14 11:55:02 +00:00
simeng-li
543931aa88
feat(core): undeploy worker scripts when jwt customizer is deleted (#5685)
undeloy work scripts when the jwt customizer is deleted
2024-04-12 03:05:11 +00:00
simeng-li
9b3d4ef75b
feat(core): add custom jwt worker deploy (#5682)
call custom jwt worker deploy cloud service when upsert new jwt-customizers
2024-04-12 02:39:05 +00:00
wangsijie
5b03030de2
fix(core): not allow to modify management api resource (#5626) 2024-04-11 17:20:53 +08:00
Gao Sun
b3740656f5
refactor(core): partially remove got (#5596)
* refactor(core): partially remove got

* refactor: use shared form-urlencoded headers
2024-04-11 07:16:53 +00:00
Gao Sun
c1c91b6ab8
refactor: uncomment feature guard (#5676) 2024-04-11 09:22:45 +08:00
renovate[bot]
01fee1dd9d
fix(deps): update dependency samlify to v2.8.11 (#5458)
Co-authored-by: Gao Sun <gao@silverhand.io>
2024-04-10 22:49:55 +08:00
renovate[bot]
34d525d13c
fix(deps): update dependency snakecase-keys to v8 (#5667)
Co-authored-by: Gao Sun <gao@silverhand.io>
2024-04-10 22:48:43 +08:00
silverhand-bot
fb55249ab2
release: version packages (#5463) 2024-04-10 21:27:24 +08:00
Charles Zhao
cfeb98c06f
feat(console,core,phrases): add quota guard for cloud collaboration in console (#5644) 2024-04-08 10:32:05 +08:00
wangsijie
3160b40f3b
feat(core,schemas): edit and query resource scopes for org role (#5613) 2024-04-07 15:11:40 +08:00
wangsijie
94ccbafa80
feat(core,schemas): add organization resource scope relations (#5608) 2024-04-07 11:10:13 +08:00
wangsijie
468558721a
feat(core): search organization roles (#5627) 2024-04-07 11:09:27 +08:00
Darcy Ye
de70abebf6
refactor: update dependency on @logto/cloud and update legacy JWT customizer 2024-04-03 17:04:41 +08:00
Charles Zhao
316c11128a
refactor(console,phrases): display inviter name on tenant invitations table (#5622)
* refactor(console,phrases): display inviter name on tenant invitations table

* chore: bump @logto/cloud

* chore: update pnpm lockfile
2024-04-03 16:28:45 +08:00
Darcy Ye
bde2abe407
chore(core,console,schemas): update variable name and field name 2024-04-03 11:58:43 +08:00
Charles Zhao
2368cf03c6
refactor(console,phrases): rename tenant member role to collaborator (#5618) 2024-04-03 10:36:17 +08:00
Darcy Ye
e09318d3e8
feat(core,schemas): log extraTokenClaims exception (#5539) 2024-04-02 15:19:52 +08:00
Darcy Ye
bea7d8e5ff
feat(core): add PATCH /configs/jwt-customizer API 2024-04-02 11:41:12 +08:00
Darcy Ye
21560f9805
Merge pull request #5611 from logto-io/yemq-log-8493-update-custom-jwt-console-error-handling
chore(core,console): update error handling of testing custom JWT
2024-04-02 10:55:57 +08:00
Darcy Ye
977776d31f
chore(core,console): update error handling of testing custom JWT 2024-04-01 23:57:50 +08:00
Charles Zhao
2b5e6d6fb6
fix(core): update expired invitation to expired before inserting a new one (#5609) 2024-04-01 12:18:03 +00:00
simeng-li
2c6f4b7e62
style(console): refine the SSO connector create model (#5594)
refine the sso connector create model
2024-04-01 16:42:34 +08:00
Darcy Ye
c1722c8793
refactor(core): reorg and separate logto-config APIs into files 2024-03-31 14:51:33 +08:00
Darcy Ye
e34cfd812a
chore(core): update GET /configs/jwt-customizer/:tokenPath API error handling (#5595) 2024-03-30 10:10:03 +08:00
Darcy Ye
a77fd3f97f
Merge pull request #5585 from logto-io/yemq-log-8483-update-cloud-client-API-call
chore: update cloud version and the way to call cloud custom JWT API
2024-03-29 14:32:55 +08:00
Darcy Ye
48cfdf51a3
chore: update cloud version and the way to call cloud custom JWT API 2024-03-29 02:03:58 +08:00
renovate[bot]
dcb5eba305
fix(deps): update dependency snake-case to v4 (#5534)
Co-authored-by: Gao Sun <gao@silverhand.io>
2024-03-28 19:11:20 +08:00
renovate[bot]
961fd8ea99
fix(deps): update dependency snakecase-keys to v7 (#5556)
* fix(deps): update dependency snakecase-keys to v7

* test: wait for 1ms for every api test

---------

Co-authored-by: Gao Sun <gao@silverhand.io>
2024-03-28 18:16:00 +08:00
Darcy Ye
e0123fd415
chore(schemas,core): update custom JWT sample token payload guard 2024-03-28 11:20:44 +08:00
Charles Zhao
f83e85ba55
feat(console): implement interim landing page for new users to join invited tenants (#5560) 2024-03-28 10:26:30 +08:00
simeng-li
92d45f2432
refactor(core,schemas): refactor the sso connector factory type (#5541)
* refactor(core,schemas): refactor the sso connector factory type

refactor the sso connector factory type and add providerType to the config data

* fix(core): fix ut

fix ut

* refactor(schemas): add the providerType to the providerDetails return type

add the new providerType property to the providerDetails return type
2024-03-27 03:10:48 +00:00
simeng-li
592d4672f0
feat(core,schemas): add new Azure OIDC SSO connector (#5540)
add new Azure OIDC SSO connector
2024-03-27 10:50:49 +08:00
Gao Sun
2cbc591ff6
feat: support direct sign-in (#5536)
* feat: support direct sign-in

* chore: add changesets

* refactor: add test cases

* chore(deps): upgrade logto sdks
2024-03-26 13:23:41 +08:00
Darcy Ye
1f0ae00ce4
fix(core,phrases): fix custom JWT PUT API block admin tenant logic 2024-03-25 23:39:18 +08:00
Charles Zhao
8d14c87652
chore: bump @logto dependencies (#5548) 2024-03-25 18:34:06 +08:00
simeng-li
a9b927910d
fix(core): fix the post domains api error status code (#5552)
fix the post domains api error status code
2024-03-25 10:18:36 +00:00
Darcy Ye
62bd784d4e
Merge pull request #5546 from logto-io/yemq-log-8470-update-custom-jwt-test-api-error-handling
refactor(phrases,core,console): update API and console error handling/display
2024-03-25 17:49:50 +08:00
Charles Zhao
a387bf2868
refactor(schemas,core,console): skip onboarding if user has pending invitations (#5547) 2024-03-25 17:45:06 +08:00
Darcy Ye
614375589d
chore: add comments 2024-03-25 17:38:21 +08:00
Darcy Ye
618c38f134
Merge pull request #5508 from logto-io/yemq-log-8338-update-extra-token-claims-logic
feat(core): add the support on custom JWT feature
2024-03-25 14:28:14 +08:00
Darcy Ye
9e67b670de
refactor(phrases,core,console): update API and console error handling/display 2024-03-25 14:18:01 +08:00
Darcy Ye
55e04cc683
refactor: reorder code 2024-03-25 14:00:05 +08:00
wangsijie
ecd3db2c71
refactor(core): remove unused mark mfa skip function (#5517)
fixed #5482
2024-03-25 10:25:21 +08:00
Darcy Ye
5ea8c49c5d
chore: fix 2024-03-22 17:50:31 +08:00
Darcy Ye
ea796c15a5
chore: fix 2024-03-22 12:52:42 +08:00
Darcy Ye
8ea166ad2d
refactor: try catch extraTokenClaims function to avoid breaking the auth process 2024-03-21 23:50:55 +08:00
Darcy Ye
210bb298be
refactor: remove credentials cache 2024-03-21 23:50:54 +08:00
Darcy Ye
8513dae8af
refactor: block admin tenant from using creating jwt-customizer API 2024-03-21 23:50:54 +08:00
Darcy Ye
ddd93dc977
refactor(core): add cache for cloud connection data 2024-03-21 23:50:54 +08:00
Darcy Ye
89ba8a1a0c
chore: update cloud dependency 2024-03-21 23:50:54 +08:00
Darcy Ye
18fb88ecdd
fix: cloud connection should bypass custom JWT flow 2024-03-21 23:50:53 +08:00
Darcy Ye
084ced1bd6
feat(core): add the support on custom JWT feature 2024-03-21 23:50:53 +08:00
Gao Sun
a98bc3da54
Merge pull request #5530 from logto-io/gao-add-oidc-standard-claims
feat: add oidc standard claims to user
2024-03-21 23:25:50 +08:00
simeng-li
f1f6b1cd61
feat(console): integrate jwt customizer test api (#5532)
* feat(console): integrate jwt customizer test api

integrate jwt customizer test api

* refactor(console,core): jwt test api integration

jwt test api integration

* chore: add cloud connection scope config for fetching custom jwt

---------

Co-authored-by: Darcy Ye <darcyye@silverhand.io>
2024-03-21 15:26:30 +08:00
Darcy Ye
88f759c686
chore: add status 403 for custom jwt test API 2024-03-21 12:51:57 +08:00
Darcy Ye
239c17f367
refactor: adopt suggestion 2024-03-21 11:13:06 +08:00
Gao Sun
45a7ee17aa
refactor: remove cloud only operations when needed 2024-03-21 10:57:25 +08:00
Darcy Ye
77b67fbd04
refactor(core): add cloud-only API prune for API docs 2024-03-21 10:57:25 +08:00
Darcy Ye
9c7956da5c
refactor: refactor 2024-03-21 10:57:23 +08:00
Darcy Ye
ed710b06ec
chore: remove 500 status guard 2024-03-21 10:56:13 +08:00
Darcy Ye
e72e927bb1
chore: add todo 2024-03-21 10:56:13 +08:00