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

604 commits

Author SHA1 Message Date
Gao Sun
12cd49f903
feat(core): get application organizations api 2024-06-22 23:16:38 +08:00
Gao Sun
bcd2ac7c09
chore: fix tests 2024-06-22 22:59:43 +08:00
Gao Sun
5e0a4401f6
feat: organization role types 2024-06-22 22:59:43 +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
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
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
simeng-li
0f3dbbc4a9
chore(test): reorg the sso connector api cleanup logic (#6053)
reorg the sso connector api cleanup logic
2024-06-20 10:40:42 +08:00
Gao Sun
34a64111cc
chore: skip tests if needed 2024-06-19 22:55:52 +08:00
Gao Sun
6dd2565dca
feat(core): init organization app apis 2024-06-19 22:29:44 +08:00
Gao Sun
71ba7c4cc6
feat(core): jit organization roles (#6049) 2024-06-19 11:07:45 +08:00
Xiao Yijun
061a30a875
feat(experience): support agree to terms policies (#6044) 2024-06-19 09:25:57 +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
simeng-li
bb6fd66418
feat: add dev feature disabled test (#6014)
feat: implement dev feature disabled integration test

implement dev feature desiabled integration test
2024-06-17 19:58:57 +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
simeng-li
ed37356ee3
refactor(console,experience,test): decouple isDevFeatureEnabled with isIntegrationTest (#6012)
* refactor(console,experience,test): decouple isDevFeatureEnabled with isIntegrationTest

decouple isDevFeatureEnabled with isIntegrationTest ENV variables

* chore: update environment variable get method

update environment variable get method
2024-06-17 10:30:16 +08:00
Gao Sun
b25bca3aa2
refactor: add organization jit role api tests 2024-06-14 22:44:03 +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
6f0497d214
refactor: apply suggestions from code review
Co-authored-by: Charles Zhao <charleszhao@silverhand.io>
2024-06-14 10:56:18 +08: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
128ee0c9bb
chore: add tests 2024-06-08 14:48:57 +08:00
Gao Sun
b50ba0b7e6
chore: add tests and changeset 2024-06-08 10:19:13 +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
b85ecb6c93
feat(core): organization email domains apis 2024-06-06 10:33:33 +08:00
Xiao Yijun
33537ef1af
refactor(console,phrases): update role assignment modal phrases (#5989) 2024-06-04 20:42:46 +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
Xiao Yijun
7ebabc490a
refactor(console): always display role creation hint in role assignment modal (#5988) 2024-06-04 09:19:40 +00:00
Xiao Yijun
6e116b30df
refactor(console,phrases): update rbac-related phrases (#5975) 2024-06-03 17:47:51 +08:00
wangsijie
a330310955
fix(console): remove outdated nextjs app router guide (#5862) 2024-05-29 12:40:05 +08:00
Xiao Yijun
58fd32e456
refactor(console): setup m2m roles after creating m2m app (#5924) 2024-05-28 05:07:34 +00: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
e715049bae
refactor: remove TenantInfo type (#5891) 2024-05-17 20:06:09 +08: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
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
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
e04d9523a6
feat(console, phrases): update the supported webhook events (#5856)
* test(core): add integration tests

add integration tests for interaction hooks

* chore(test): remove legacy test

remove legacy test

* feat(console, phrases): update the supported webhook events

update the supported webhook events

* refactor(console): rename webhook and webhook log keys

rename webhook and webhook log keys

* fix(test): fix integration test

fix integration test

* feat(console): add devFeature guard

add devFeature guard

* chore: add changeset

add changeset

* chore(console): remove the lint rule disable comment

remove the lint rule disable comment

* fix(test): fix the integartion tests

fix the integration tests

* fix(console): refine the code

refine the code

* chore(console): refine comments

refine comments
2024-05-15 06:26:52 +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
wangsijie
5660c54cb5
fix(core): should sign out user after deletion or suspension (#5857)
fixed #5572
2024-05-14 08:10:31 +00:00
Xiao Yijun
1e24843a28
chore(phrases): update organization permission column name (#5864) 2024-05-14 07:46: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
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
0fc9f83b7e
fix(core): filter scopes for 3rd-party app (#5845) 2024-05-13 11:05:30 +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
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
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
Gao Sun
e8c41b1644
feat: support organization custom data (#5785)
* feat: support organization custom data

* chore: update changeset
2024-04-25 14:16:59 +00:00
simeng-li
397dfcdf92
fix(experience): redirect to sign-in page on socical sign-in error (#5787)
* fix(experience): redirect to sign-in page on socical sign-in error
redirect user to sign-in page on social sign-in error

* test(experience): add integration tests

add integration tests
2024-04-25 14:00:07 +08:00
Charles Zhao
0b49f9cf83
fix(console): copy to clipboard component should display at full width properly (#5764) 2024-04-19 10:03:17 +00: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
Xiao Yijun
c6adedefb5
fix(console): always display create org button (#5746) 2024-04-18 16:15:05 +08:00
Xiao Yijun
45157873a2
test(console): assign permissions to organization role (#5729) 2024-04-18 14:33:10 +08: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
49b60af093
chore(test): improve organization user test stability (#5717) 2024-04-16 03:07:10 +00: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
Xiao Yijun
97f2d9b8d0
refactor(console,phrases): update organization template phrases (#5688) 2024-04-12 11:30:05 +08: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
1ade7a32eb
refactor(experience): fall back to sign-in page when error (#5673)
* refactor(experience): fall back to sign-in page for edge cases

* refactor: add unit tests

* refactor: fix tests
2024-04-10 20:52:44 +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
Xiao Yijun
cb4ef9fd0e
refactor(console): reorg resource details page (#5634) 2024-04-07 10:25:59 +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
a4f8199e92
fix(console,phrases): fix a batch of organization invitation console ui issues (#5614) 2024-04-02 10:12:08 +00:00
Darcy Ye
bea7d8e5ff
feat(core): add PATCH /configs/jwt-customizer API 2024-04-02 11:41:12 +08:00
wangsijie
982aa918e6
test: add tests for username case sensitive (#5597) 2024-03-31 17:39:25 +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
Gao Sun
7756f50f8e
feat: support direct sign-in for sso (#5589) 2024-03-29 21:56:25 +08:00
Gao Sun
6d56434b48
refactor: use ky in integration tests (#5584)
* refactor: use ky in integration tests

* refactor: remove node-fetch

* refactor: fix test cases

* refactor: remove waitFor after each test
2024-03-29 10:10:13 +00: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
Gao Sun
2ae8c112f5
test: improve integration tests (#5577) 2024-03-28 09:00:35 +00:00
wangsijie
80a3808398
test: add integration tests for jwt (#5565) 2024-03-28 17:00:08 +08:00
Gao Sun
0ade3016d8
test: wait 0ms after each test 2024-03-28 16:26:58 +08:00
Xiao Yijun
ba966fdefe
feat(console): support permission editing (#5567) 2024-03-28 10:52:15 +08:00
Gao Sun
3f59461df6
chore(deps): update packges (#5545)
* chore(deps): upgrade puppeteer

* chore: replace plugin

* refactor: fix tests
2024-03-27 10:21:46 +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
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
Gao Sun
3cb9b892da
refactor: fix test and ci 2024-03-21 23:10:24 +08:00
Gao Sun
f60e64175f
Merge pull request #5526 from logto-io/gao-store-raw-data-social
feat: return and store social connector raw data
2024-03-21 22:47:13 +08:00
simeng-li
9518658595
fix(schemas): fix the get interation/consent api bug (#5503)
* fix(schemas): fix the get interation/consent api bug

fix the get interation/consent api bug

* chore: update changeset

update changeset

* fix: update changeset

update changeset

* refactor(schemas, console): alter the resource scopes description field to nullable (#5504)

* refactor(schemas, console): alter the resoruce scopes description field nullable

make the resourec scopes description nullable

* fix(test): fix the type issue in the integration test

fix the type issue in the integration test

* fix(console): add the field register

add the field register

* fix: update the changeset

update the changeset

* fix(console,test): update comments and rebase

update comments and rebase the master
2024-03-20 14:31:35 +08:00
Gao Sun
6feb531435
feat: add profile api, update api and database, add tests 2024-03-20 13:16:23 +08:00
Gao Sun
d597681a67
refactor: fix tests 2024-03-20 11:57:48 +08:00
Gao Sun
57d97a4df8
feat: return and store connector raw data 2024-03-19 14:05:42 +08:00