Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[19299] Update to v1.18.0 #82

Merged
merged 757 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
757 commits
Select commit Hold shift + click to select a range
0b5b15b
feat(connector): add DingTalk web connector changeset (#5940)
darcyYe May 31, 2024
b8ea480
fix(console): avoid rendering outdated role options (#5953)
xiaoyijun May 31, 2024
9861b8a
refactor(console): remove redundant notification from m2m guide (#5954)
xiaoyijun May 31, 2024
0c70d65
feat(core,toolkit): add new sso_identities claim (#5955)
simeng-li May 31, 2024
522dd02
refactor: improve user experience (#5958)
gao-sun May 31, 2024
a0b1951
feat(console): show version number for oss (#5950)
gao-sun May 31, 2024
e989f08
refactor: remove service log fkey (#5959)
gao-sun May 31, 2024
11f05ce
refactor(console): improve onboarding data and subscription fetching …
gao-sun May 31, 2024
0decba0
release: version packages (#5868)
silverhand-bot May 31, 2024
d544d34
chore: launch us region (#5962)
gao-sun Jun 1, 2024
61da265
chore: update links (#5963)
gao-sun Jun 1, 2024
a72b715
fix: use correct `disabled` logic for free plan (#5964)
gao-sun Jun 1, 2024
ec2df4d
fix(console): only show m2m role notification for m2m roles (#5957)
xiaoyijun Jun 3, 2024
014d7f6
refactor(console): make long text breakable in roles page (#5956)
xiaoyijun Jun 3, 2024
d498086
refactor(console): fix plausible hostname (#5968)
gao-sun Jun 3, 2024
914555e
chore(deps): update dependency @logto/cloud to v0.2.5-a7eedce (#5847)
renovate[bot] Jun 3, 2024
6fbba38
feat(console): implement account deletion (#5969)
gao-sun Jun 3, 2024
3917176
fix(console): avoid skipping m2m role assignment after switching brow…
xiaoyijun Jun 3, 2024
14515f2
fix(core): profile avatar upload should not return 400 error (#5974)
charIeszhao Jun 3, 2024
6e116b3
refactor(console,phrases): update rbac-related phrases (#5975)
xiaoyijun Jun 3, 2024
0748a22
chore(schemas): add reserved plan ID for admin tenant (#5976)
darcyYe Jun 3, 2024
a495ab0
feat(core): report oidc exceptions to the appInsights (#5978)
simeng-li Jun 3, 2024
ac5d846
refactor(console): click console logo should navigate to root page (#…
charIeszhao Jun 3, 2024
4d3b32f
fix(console): language switch should work on profile page (#5980)
charIeszhao Jun 3, 2024
123ecae
refactor(core): try to fix uncaught exception (#5982)
gao-sun Jun 3, 2024
5391dbc
refactor(console): use permanently delete (#5979)
gao-sun Jun 3, 2024
8669149
refactor(core): optimize redis error handling (#5965)
gao-sun Jun 4, 2024
acc22af
chore(deps): update dependency @testing-library/react to v16 (#5984)
renovate[bot] Jun 4, 2024
f4e6492
chore(connector): improve DingTalk web connector readme (#5977)
anyidea Jun 4, 2024
9ae4f7d
chore(deps): update dependency i18next-browser-languagedetector to v8…
renovate[bot] Jun 4, 2024
eacec10
chore: remove dev flags and add changeset for m2m guide feature (#5983)
xiaoyijun Jun 4, 2024
223d9e3
feat(console): add new feature content for m2m integration guide (#5947)
xiaoyijun Jun 4, 2024
7ebabc4
refactor(console): always display role creation hint in role assignme…
xiaoyijun Jun 4, 2024
7a279be
refactor(core,schemas): add user detail payload to User.Deleted webho…
simeng-li Jun 4, 2024
33537ef
refactor(console,phrases): update role assignment modal phrases (#5989)
xiaoyijun Jun 4, 2024
ec6f1d3
refactor(core): reorg organization routes
gao-sun Jun 5, 2024
ce91130
refactor(core): reorg organization queries
gao-sun Jun 5, 2024
d66d8c2
feat(schemas): init organization email domains table
gao-sun Jun 5, 2024
0874b70
Merge pull request #5991 from logto-io/gao-reorg-org-routes
gao-sun Jun 6, 2024
b85ecb6
feat(core): organization email domains apis
gao-sun Jun 6, 2024
f6dbb0a
chore: add api docs
gao-sun Jun 6, 2024
be9d94d
refactor: fix tests
gao-sun Jun 6, 2024
d4cb91e
feat(core): implement organization jit provisioning
gao-sun Jun 6, 2024
ab4867d
refactor(core): trigger organization membership updated hook from jit
gao-sun Jun 6, 2024
afb1091
refactor: fix tests
gao-sun Jun 6, 2024
fc16996
feat(console): implement organization jit ui
gao-sun Jun 7, 2024
da5c71d
Merge pull request #5993 from logto-io/gao-init-org-domain-table
gao-sun Jun 7, 2024
f28a083
feat(core,console): enable backchannel logout
gao-sun Jun 7, 2024
b50ba0b
chore: add tests and changeset
gao-sun Jun 8, 2024
d26d19a
Merge pull request #5995 from logto-io/gao-org-domain-crud
gao-sun Jun 8, 2024
3bed38c
Merge pull request #5996 from logto-io/gao-org-domain-provision
gao-sun Jun 8, 2024
efa884c
chore(console,core): launch organization jit
gao-sun Jun 8, 2024
5e13495
Merge pull request #5997 from logto-io/gao-org-jit-hook
gao-sun Jun 8, 2024
75ab459
feat(core,console): organization mfa requirement
gao-sun Jun 8, 2024
128ee0c
chore: add tests
gao-sun Jun 8, 2024
1363205
feat: automatic social account linking (#5881)
gao-sun Jun 8, 2024
930f23e
fix(core): prevent uncaught promise rejection (#6009)
simeng-li Jun 12, 2024
9f33d99
refactor(console): allow view and update `user.profile` in settings
gao-sun Jun 13, 2024
8306cc4
Merge pull request #5998 from logto-io/gao-console-jit
gao-sun Jun 14, 2024
6f0497d
refactor: apply suggestions from code review
gao-sun Jun 14, 2024
752059d
Merge pull request #6002 from logto-io/gao-enable-backchannel-logout
gao-sun Jun 14, 2024
847a7c4
refactor(console): update jit styles
gao-sun Jun 14, 2024
3ea37c5
feat(core,console): organization jit roles
gao-sun Jun 14, 2024
7d6e8dc
Merge pull request #5999 from logto-io/gao-remove-dev-features-guard
gao-sun Jun 14, 2024
b25bca3
refactor: add organization jit role api tests
gao-sun Jun 14, 2024
aefe5cb
chore: update changeset
gao-sun Jun 14, 2024
d17e26a
style(console): update tab item style in readme docs (#6013)
xiaoyijun Jun 15, 2024
15a51a4
refactor(console): imporve custom phrase fetch request error handling…
xiaoyijun Jun 15, 2024
dc6fbe2
refactor(console): improve webhook test request error handling (#6017)
xiaoyijun Jun 15, 2024
320b720
refactor: rename method
gao-sun Jun 15, 2024
6308ee1
feat(connector): google one tap
gao-sun Jun 16, 2024
942780f
feat(core): google one tap
gao-sun Jun 16, 2024
50c35a2
feat(experience): google one tap
gao-sun Jun 16, 2024
c0617f1
chore: add tests
gao-sun Jun 16, 2024
552a3e5
chore: add tests
gao-sun Jun 16, 2024
a02c20a
refactor(console): update spring boot api protection guide (#6018)
simeng-li Jun 17, 2024
ed37356
refactor(console,experience,test): decouple isDevFeatureEnabled with …
simeng-li Jun 17, 2024
b286dd3
Merge pull request #6003 from logto-io/gao-org-mfa
gao-sun Jun 17, 2024
e541716
Merge pull request #6020 from logto-io/gao-add-profile-in-user-settings
gao-sun Jun 17, 2024
d23417e
Merge pull request #6022 from logto-io/gao-update-jit-style
gao-sun Jun 17, 2024
41495a3
refactor(console): improve swr error handling that previously omitted…
charIeszhao Jun 17, 2024
4266ac8
Merge pull request #6024 from logto-io/gao-org-jit-roles
gao-sun Jun 17, 2024
59fe21a
Merge pull request #6026 from logto-io/gao-org-jit-roles-tests
gao-sun Jun 17, 2024
4118669
Merge pull request #6027 from logto-io/gao-update-changeset
gao-sun Jun 17, 2024
be1b570
chore: add comments
gao-sun Jun 17, 2024
924ccb4
Merge pull request #6030 from logto-io/gao-google-one-tap-connector
gao-sun Jun 17, 2024
ef21c7a
chore: add changeset (#6004)
gao-sun Jun 17, 2024
bb6fd66
feat: add dev feature disabled test (#6014)
simeng-li Jun 17, 2024
bc1efc7
chore: update README.md (#6038)
gao-sun Jun 18, 2024
d9119b5
Merge pull request #6031 from logto-io/gao-google-one-tap-core
gao-sun Jun 18, 2024
c2c15e8
refactor(console): show sso status in jit domains (#6040)
gao-sun Jun 18, 2024
b96848b
Merge pull request #6032 from logto-io/gao-google-one-tap-experience
gao-sun Jun 18, 2024
0ef712e
feat(console): google one tap (#6034)
gao-sun Jun 18, 2024
d210f4f
test(core): implement sso related integration tests (#6041)
simeng-li Jun 18, 2024
ead51e5
feat(console): add Ruby app guide
gao-sun Jun 18, 2024
7aba402
chore(deps): update docker/build-push-action action to v6 (#6042)
renovate[bot] Jun 18, 2024
3300e4f
chore(connector): update outdated links in connector readme (#6039)
charIeszhao Jun 18, 2024
282f091
refactor(console): support non-svg logos
gao-sun Jun 18, 2024
1bdfb43
feat(schemas): add `agree_to_terms_policy` for sie table (#6036)
xiaoyijun Jun 18, 2024
3cb7be2
feat(console,phrases): support agree to terms policy configuration (#…
xiaoyijun Jun 18, 2024
061a30a
feat(experience): support agree to terms policies (#6044)
xiaoyijun Jun 19, 2024
82e702f
Merge pull request #6046 from logto-io/gao-add-ruby
gao-sun Jun 19, 2024
d49a5f4
chore(console): update guide orders (#6047)
gao-sun Jun 19, 2024
71ba7c4
feat(core): jit organization roles (#6049)
gao-sun Jun 19, 2024
b543356
refactor(core): update relation queries
gao-sun Jun 19, 2024
97efe1e
refactor: fix google one tap issues (#6054)
gao-sun Jun 19, 2024
53ada32
chore(schemas): add legacy-pro tag to reserved plan ID (#6061)
darcyYe Jun 19, 2024
6dd2565
feat(core): init organization app apis
gao-sun Jun 19, 2024
4d879fc
refactor(core): reorg organization users api docs
gao-sun Jun 19, 2024
34a6411
chore: skip tests if needed
gao-sun Jun 19, 2024
09bd183
style(experience): add margin-bottom for terms checkbox on sign-in pa…
xiaoyijun Jun 20, 2024
e83e94f
Merge pull request #6055 from logto-io/gao-refactor-relation-queries
gao-sun Jun 20, 2024
5362772
Merge pull request #6064 from logto-io/gao-init-org-app-apis
gao-sun Jun 20, 2024
32270d1
Merge pull request #6065 from logto-io/gao-reorg-org-api-docs
gao-sun Jun 20, 2024
0f3dbbc
chore(test): reorg the sso connector api cleanup logic (#6053)
simeng-li Jun 20, 2024
e6f06cb
docs(console): add the troubleshooting section in expo guide (#6052)
simeng-li Jun 20, 2024
0d82636
feat(core): organization jit sso apis
gao-sun Jun 20, 2024
07da791
feat(core): init organization app role apis
gao-sun Jun 20, 2024
92f47ef
chore: rename legacy pro to grandfathered pro (#6076)
darcyYe Jun 20, 2024
e89147a
refactor(console): update subscription plan ID (#6074)
darcyYe Jun 20, 2024
c1ffade
Merge pull request #6067 from logto-io/gao-org-jit-sso
gao-sun Jun 21, 2024
2cf30d2
feat(core): organization jit sso
gao-sun Jun 20, 2024
a471d6a
feat(console): update jit config
gao-sun Jun 20, 2024
71f5fa3
refactor: improve code, content, and styles
gao-sun Jun 21, 2024
7f9c0f2
chore(deps): update dependency buffer to v6 (#6060)
renovate[bot] Jun 21, 2024
651a027
chore(core): add dev feature tag for openapi.json (#6025)
darcyYe Jun 21, 2024
c51eab1
Merge pull request #6069 from logto-io/gao-org-jit-sso-impl
gao-sun Jun 21, 2024
5c2aba6
chore(deps): update ikalnytskyi/action-setup-postgres action to v6 (#…
renovate[bot] Jun 21, 2024
12bcbb9
fix(experience): apply agree to terms policy for sso (#6080)
xiaoyijun Jun 21, 2024
5065eea
Merge pull request #6073 from logto-io/gao-update-console-jit
gao-sun Jun 21, 2024
9f72a45
chore: update changeset (#6077)
gao-sun Jun 21, 2024
ec95536
Merge pull request #6071 from logto-io/gao-org-app-role-apis
gao-sun Jun 21, 2024
fae1135
refactor(core): update naming and fix typos
gao-sun Jun 21, 2024
cc37247
Merge pull request #6072 from logto-io/gao-refactor-routes
gao-sun Jun 21, 2024
0f39d39
refactor(core): reorg organization routes
gao-sun Jun 21, 2024
3fbf213
fix: fix dev feature disabled integration tests
simeng-li Jun 21, 2024
6f06c41
Merge pull request #6078 from logto-io/gao-reorg-org-rotues
gao-sun Jun 22, 2024
b1a12fb
feat(core): issue subject tokens (#6045)
wangsijie Jun 22, 2024
6dd4872
chore: update code owners (#6081)
gao-sun Jun 22, 2024
b839f6c
refactor(core): return roles in organization app get api
gao-sun Jun 22, 2024
5e0a440
feat: organization role types
gao-sun Jun 22, 2024
bcd2ac7
chore: fix tests
gao-sun Jun 22, 2024
12cd49f
feat(core): get application organizations api
gao-sun Jun 22, 2024
754d0e1
feat(core): update application organization role apis
gao-sun Jun 22, 2024
0a194c6
fix: change special character to fix root paramter naming issue
mostafa Jun 22, 2024
e24ff76
fix: update mocks and docstrings
mostafa Jun 22, 2024
88f94c7
feat(console): show organization list for m2m apps
gao-sun Jun 23, 2024
097dfca
refactor: filter whole supplement document if needed (#6085)
gao-sun Jun 23, 2024
cbab5af
Merge pull request #6083 from logto-io/gao-update-org-app-fetch
gao-sun Jun 23, 2024
022b5fe
Merge pull request #6084 from logto-io/gao-org-role-types
gao-sun Jun 23, 2024
9b36101
refactor: update status code
gao-sun Jun 23, 2024
1620bbd
Merge pull request #6086 from logto-io/gao-org-app-apis
gao-sun Jun 23, 2024
58f3eea
Merge pull request #6087 from logto-io/gao-org-app-role-apis
gao-sun Jun 23, 2024
ca22bc6
feat(console): m2m pages in organizations
gao-sun Jun 23, 2024
d51e839
refactor: add changeset and improve code
gao-sun Jun 23, 2024
a43434c
Merge pull request #6089 from mostafa/fix-oas-validation-errors
gao-sun Jun 23, 2024
88ee906
refactor(core): fork client credentials grant
gao-sun Jun 23, 2024
1595360
feat: support prompt config for some built-in connectors (#6023)
darcyYe Jun 24, 2024
2f456ff
refactor: refactor integration test ci job (#6095)
simeng-li Jun 24, 2024
d81e13d
feat(console,phrases): add issuer endpoint to application form (#6094)
simeng-li Jun 24, 2024
bede80e
Merge pull request #6093 from logto-io/gao-fork-cc-grant
gao-sun Jun 24, 2024
d7d2af6
fix(schemas): explicitly set search path (#6101)
gao-sun Jun 24, 2024
b489626
Merge pull request #6088 from logto-io/gao-console-m2m-organizations
gao-sun Jun 24, 2024
581ecd9
Merge pull request #6090 from logto-io/gao-organization-m2m-apps
gao-sun Jun 24, 2024
593db0d
refactor(console): update role-related content and components (#6091)
gao-sun Jun 24, 2024
92dc008
refactor(console): hide backchannel for m2m apps (#6075)
gao-sun Jun 25, 2024
dfa0135
refactor: add brief intro in swagger.json (#6102)
gao-sun Jun 25, 2024
d123d46
fix: include `tenantId` and its root param in responses (#6092)
mostafa Jun 25, 2024
f2c7799
refactor(experience,phrases): update resend passcode phrases (#6103)
xiaoyijun Jun 25, 2024
b52609a
feat(core): add hasPassword field to custom JWT user context (#6096)
darcyYe Jun 25, 2024
75c0468
refactor: handle potential errors during ky requests in koa-auth midd…
xiaoyijun Jun 26, 2024
b590e64
feat(core): issue organization token via client credentials (#6098)
gao-sun Jun 26, 2024
8fcb747
refactor(console): upgrade mdx packages
gao-sun Jun 26, 2024
f22ed89
refactor(console): remove unused config
gao-sun Jun 26, 2024
ccf4efe
chore: fix typo (#6110)
xiaoyijun Jun 26, 2024
42cef43
Merge pull request #6113 from logto-io/gao-upgrade-mdx
gao-sun Jun 27, 2024
8fa4405
refactor: update nuxt guide (#6114)
gao-sun Jun 27, 2024
bd0487e
refactor(console): update ruby guide (#6116)
gao-sun Jun 27, 2024
211c357
refactor(console): update next guide (#6119)
wangsijie Jun 27, 2024
b1e7f62
refactor(core): update grant comments (#6120)
gao-sun Jun 27, 2024
9904ac7
chore: update README.mdx (#6121)
screencomuser Jun 27, 2024
07e3725
refactor(console): update swift guide (#6123)
gao-sun Jun 28, 2024
f8f84f5
refactor(console): polish ui (#6122)
gao-sun Jun 28, 2024
18fbdb7
refactor(console): use correct array for checking enterprise sso (#6135)
gao-sun Jun 28, 2024
7ba579f
refactor(console): update express guide (#6124)
wangsijie Jun 29, 2024
e548eea
refactor(console): polish android guide (#6131)
xiaoyijun Jun 29, 2024
9dfcecb
ci: refactor integration tests workflow
gao-sun Jun 29, 2024
e7cc05b
ci: add spaces
gao-sun Jun 29, 2024
97b8201
refactor(test): use secure random method in integration test util (#6…
charIeszhao Jun 29, 2024
16be0f9
refactor(console): update python and php guide (#6136)
darcyYe Jun 29, 2024
cc305e5
refactor(console): polish guides
gao-sun Jun 29, 2024
4b9785b
Merge pull request #6142 from logto-io/gao-polish-next-guides
gao-sun Jun 30, 2024
08699f6
chore(console): remove unmaintained remix guide (#6137)
xiaoyijun Jun 30, 2024
1e0f0bc
refactor(console): update golang guide (#6134)
xiaoyijun Jul 1, 2024
4727062
refactor(console): fix switch styles (#6132)
gao-sun Jul 1, 2024
01558bb
refactor(console): fix php guide (#6143)
gao-sun Jul 1, 2024
f78b176
feat: demo app dev panel (#6105)
gao-sun Jul 1, 2024
cb42b5a
docs(console): update the sveltekit guide (#6130)
simeng-li Jul 1, 2024
2f31d1a
chore: launch jit (#6127)
gao-sun Jul 1, 2024
87615d5
chore: launch m2m app for organizations (#6129)
gao-sun Jul 1, 2024
f6e10f8
chore: normalize Logto DB region role names for DB alteration CI (#6144)
darcyYe Jul 1, 2024
5c4ddee
docs(console): update the expo SDK integration guide (#6126)
simeng-li Jul 1, 2024
685a974
feat(core,schemas): token exchange grant (#6057)
wangsijie Jul 1, 2024
ac063f9
docs(console): update flutter intergration guide (#6125)
simeng-li Jul 1, 2024
fa325c9
fix(experience): add missing `agreeToTermsPolicy` deps (#6148)
xiaoyijun Jul 1, 2024
88dd7d2
docs(console): update the capacitor integration guide (#6128)
simeng-li Jul 1, 2024
dd69c1c
refactor: fix mermaid in production (#6149)
gao-sun Jul 1, 2024
49fea7d
Merge pull request #6140 from logto-io/gao-refactor-ci
gao-sun Jul 1, 2024
362ddc6
ci: rerun integration tests on failure (#6141)
gao-sun Jul 1, 2024
15a3d1d
docs(console): update the java spring guide (#6133)
simeng-li Jul 1, 2024
b52ef32
refactor(console): add retry button on error (#6158)
gao-sun Jul 2, 2024
414f62a
refactor(console): update vanilla js integration guide (#6156)
charIeszhao Jul 2, 2024
37bae63
refactor(console): update react integration guide (#6151)
charIeszhao Jul 2, 2024
8445db2
refactor(console): update vue integration guide (#6153)
charIeszhao Jul 2, 2024
c97ebaa
refactor(console): update angular integration guide (#6157)
charIeszhao Jul 2, 2024
81c0141
refactor(console): load mermaid in dev (#6155)
gao-sun Jul 2, 2024
2ce6ba3
feat(core): third-party applications are not allowed for token exchan…
wangsijie Jul 2, 2024
6dc3801
refactor: update compare DB alteration scripts (#6152)
darcyYe Jul 2, 2024
9d3697a
refactor: upgrade logto sdks (#6160)
gao-sun Jul 2, 2024
2b3e482
fix(console): fix broken api resource guides (#6161)
charIeszhao Jul 2, 2024
8b63652
feat(core): organization token for token exchange flow (#6106)
wangsijie Jul 2, 2024
978817e
refactor(console): optimize api resource guides (#6162)
gao-sun Jul 2, 2024
9e532f6
fix(console): fix custom element swap in mdx (#6166)
charIeszhao Jul 2, 2024
afd2d22
refactor(console): add aggregated npm installation component (#6159)
gao-sun Jul 2, 2024
c7010bb
refactor: update ci and package (#6167)
gao-sun Jul 3, 2024
06ef199
fix(console): hide error toast for non-existed application in audit l…
charIeszhao Jul 3, 2024
d60f6ce
feat: add `operationId` to HTTP methods on paths (#6108)
mostafa Jul 3, 2024
17921b5
feat(schemas): custom ui assets db update (#6010)
charIeszhao Jul 3, 2024
de9ee89
fix(core): issue `organization_id` claim for client credentials (#6170)
gao-sun Jul 3, 2024
504f5b2
feat(core): handle oidc scopes for token exchange (#6147)
wangsijie Jul 3, 2024
6178106
chore(deps): update dependency @rollup/plugin-commonjs to v26 (#5994)
renovate[bot] Jul 3, 2024
8635f1b
refactor(experience): rename `SingleSignOnContext` to `UserInteractio…
xiaoyijun Jul 4, 2024
2477a50
chore(deps): update logto-io/actions-run-logto-integration-tests acti…
renovate[bot] Jul 4, 2024
3ab4897
chore(deps): update logto-io/actions-package-logto-artifact action to…
renovate[bot] Jul 4, 2024
8d721d8
chore(deps): update silverhand-io/actions-node-pnpm-run-steps action …
renovate[bot] Jul 4, 2024
0453f80
refactor(console): improve dotnet guides
gao-sun Jul 4, 2024
9b3945a
fix(console): fix page issues (#6181)
gao-sun Jul 4, 2024
1c90671
refactor(console): check mermaid by integration test env (#6183)
gao-sun Jul 4, 2024
aec2cf4
feat(core): implement new experience API routes (#5992)
simeng-li Jul 5, 2024
d85cd32
feat(core): implement verification code verification API (#6001)
simeng-li Jul 5, 2024
1efa7e7
Merge pull request #6177 from logto-io/gao-update-dotnet-guides
gao-sun Jul 5, 2024
af44e87
refactor(console): add chrome extension guide (#6178)
gao-sun Jul 5, 2024
d16bc9b
feat(core,schemas): implement social verification experience API endp…
simeng-li Jul 5, 2024
1fa9f85
release: version packages (#5987)
silverhand-bot Jul 6, 2024
05e13ae
chore: merge tag 'v1.18.0' into feature/v1.18.0
peschina Jul 12, 2024
a226954
chore: update dependencies
peschina Jul 12, 2024
10e34c2
chore: fix wrong conflict resolution
peschina Jul 15, 2024
a592b0b
fix: organization and role assignment to public servant
peschina Jul 15, 2024
cf1ef4d
Merge branch 'dev' into feature/v1.18.0
peschina Jul 15, 2024
976009a
chore: remove duplicate tab
peschina Jul 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 9 additions & 4 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/packages/schemas/tables @simeng-li @wangsijie @gao-sun
/packages/core @simeng-li @wangsijie @gao-sun
/packages/console @wangsijie @charIeszhao @gao-sun
/packages/ui @simeng-li @charIeszhao
/.github/ @gao-sun
/.changeset @gao-sun
/packages/schemas/tables/ @simeng-li @wangsijie @gao-sun
/packages/core/ @simeng-li @wangsijie @gao-sun
/packages/console/ @wangsijie @charIeszhao @xiaoyijun @gao-sun
/packages/ui/ @simeng-li @charIeszhao
connector*/ @darcyYe @gao-sun

# The file below should be generated by the script, just in case someone accidentally edits it
/packages/console/src/assets/docs/guides/index.ts @gao-sun
33 changes: 24 additions & 9 deletions .github/workflows/alteration-compatibility-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
id: changes-detection
run: |
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
BASE=$(git merge-base origin/${{github.base_ref}} HEAD)
BASE=$(git merge-base origin/${{ github.base_ref }} HEAD)
else
BASE=${{ github.event.before }}
fi
Expand All @@ -37,24 +37,25 @@ jobs:

if [ -n "$CHANGE_FILES" ]; then
echo "$CHANGE_FILES"
echo "::set-output name=has-alteration-changes::true"
echo "has-alteration-changes=true" >> $GITHUB_OUTPUT
echo "Alteration changes detected"
else
echo "::set-output name=has-alteration-changes::false"
echo "has-alteration-changes=false" >> $GITHUB_OUTPUT
echo "No alteration changes detected"
fi

package:
needs: check-alteration-changes
runs-on: ubuntu-latest
if: ${{needs.check-alteration-changes.outputs.has-alteration-changes == 'true'}}
if: ${{ needs.check-alteration-changes.outputs.has-alteration-changes == 'true' }}
env:
INTEGRATION_TEST: true
DEV_FEATURES_ENABLED: false
steps:
- uses: logto-io/actions-package-logto-artifact@v2
- uses: logto-io/actions-package-logto-artifact@v3
with:
artifact-name: alteration-integration-test-${{ github.sha }}
branch: ${{github.base_ref}}
branch: ${{ github.base_ref }}
pnpm-version: 9

run-logto:
Expand All @@ -66,13 +67,27 @@ jobs:
runs-on: ubuntu-latest
env:
INTEGRATION_TEST: true
DEV_FEATURES_ENABLED: false
DB_URL: postgres://postgres:postgres@localhost:5432/postgres

steps:
- uses: logto-io/actions-run-logto-integration-tests@v3
- uses: logto-io/actions-run-logto-integration-tests@v4
with:
branch: ${{github.base_ref}}
branch: ${{ github.base_ref }}
logto-artifact: alteration-integration-test-${{ github.sha }}
test-target: ${{ matrix.target }}
db-alteration-target: ${{github.head_ref}}
db-alteration-target: ${{ github.head_ref }}
pnpm-version: 9

# Automatically rerun the workflow since the integration tests are moody
# From this genius: https://github.com/orgs/community/discussions/67654#discussioncomment-8038649
rerun-on-failure:
needs: run-logto
if: failure() && fromJSON(github.run_attempt) < 3
runs-on: ubuntu-latest
steps:
- env:
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ github.token }}
GH_DEBUG: api
run: gh workflow run rerun.yml -F run_id=${{ github.run_id }}
2 changes: 1 addition & 1 deletion .github/workflows/changesets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
token: ${{ secrets.BOT_PAT }}

- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v4
uses: silverhand-io/actions-node-pnpm-run-steps@v5
with:
pnpm-version: 9

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
fetch-depth: 0

- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v4
uses: silverhand-io/actions-node-pnpm-run-steps@v5
with:
pnpm-version: 9

Expand Down
30 changes: 25 additions & 5 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- master
- "push-action/**"
pull_request:

concurrency:
Expand All @@ -13,30 +12,51 @@ concurrency:

jobs:
package:
strategy:
matrix:
# Run the integration tests with and without dev features enabled
dev-features-enabled: [true, false]
runs-on: ubuntu-latest
env:
INTEGRATION_TEST: true
DEV_FEATURES_ENABLED: ${{ matrix.dev-features-enabled }}

steps:
- uses: logto-io/actions-package-logto-artifact@v2
- uses: logto-io/actions-package-logto-artifact@v3
with:
artifact-name: integration-test-${{ github.sha }}
artifact-name: integration-test-${{ github.sha }}-dev-features-${{ matrix.dev-features-enabled }}
pnpm-version: 9

run-logto:
strategy:
fail-fast: false
matrix:
target: [api, experience, console]
# Run the integration tests with and without dev features enabled
dev-features-enabled: [true, false]
needs: package
runs-on: ubuntu-latest
env:
INTEGRATION_TEST: true
DEV_FEATURES_ENABLED: ${{ matrix.dev-features-enabled }}
DB_URL: postgres://postgres:postgres@localhost:5432/postgres

steps:
- uses: logto-io/actions-run-logto-integration-tests@v3
- uses: logto-io/actions-run-logto-integration-tests@v4
with:
logto-artifact: integration-test-${{ github.sha }}
logto-artifact: integration-test-${{ github.sha }}-dev-features-${{ env.DEV_FEATURES_ENABLED }}
test-target: ${{ matrix.target }}
pnpm-version: 9

# Automatically rerun the workflow since the integration tests are moody
# From this genius: https://github.com/orgs/community/discussions/67654#discussioncomment-8038649
rerun-on-failure:
needs: run-logto
if: failure() && fromJSON(github.run_attempt) < 3
runs-on: ubuntu-latest
steps:
- env:
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ github.token }}
GH_DEBUG: api
run: gh workflow run rerun.yml -r ${{ github.head_ref || github.ref_name }} -F run_id=${{ github.run_id }}
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v4

- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v4
uses: silverhand-io/actions-node-pnpm-run-steps@v5
with:
pnpm-version: 9

Expand All @@ -33,7 +33,7 @@ jobs:
- uses: actions/checkout@v4

- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v4
uses: silverhand-io/actions-node-pnpm-run-steps@v5
with:
pnpm-version: 9

Expand All @@ -53,7 +53,7 @@ jobs:
- uses: actions/checkout@v4

- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v4
uses: silverhand-io/actions-node-pnpm-run-steps@v5
with:
pnpm-version: 9

Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Build
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
build-args: | # Test cloud build
Expand Down Expand Up @@ -120,7 +120,7 @@ jobs:
run: cp ./fresh/pnpm-lock.yaml ./

- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v4
uses: silverhand-io/actions-node-pnpm-run-steps@v5
with:
pnpm-version: 9
run-install: false
Expand All @@ -136,7 +136,7 @@ jobs:
# ** End **

- name: Setup Postgres
uses: ikalnytskyi/action-setup-postgres@v5
uses: ikalnytskyi/action-setup-postgres@v6

# ** Setup up-to-date databases and compare (test `up`) **
- name: Setup fresh database
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/master-codecov-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v4

- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v4
uses: silverhand-io/actions-node-pnpm-run-steps@v5
with:
pnpm-version: 9

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Build and push docker image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
platforms: linux/amd64
context: .
Expand All @@ -129,7 +129,7 @@ jobs:
fetch-depth: 0

- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v4
uses: silverhand-io/actions-node-pnpm-run-steps@v5
with:
pnpm-version: 9

Expand Down Expand Up @@ -161,7 +161,7 @@ jobs:
fetch-depth: 0

- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v4
uses: silverhand-io/actions-node-pnpm-run-steps@v5
with:
pnpm-version: 9

Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/rerun.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# From this genius: https://github.com/orgs/community/discussions/67654#discussioncomment-8038649
name: Rerun workflow

on:
workflow_dispatch:
inputs:
run_id:
required: true
jobs:
rerun:
runs-on: ubuntu-latest
steps:
- name: rerun ${{ inputs.run_id }}
env:
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ github.token }}
GH_DEBUG: api
run: |
gh run watch ${{ inputs.run_id }} > /dev/null 2>&1
gh run rerun ${{ inputs.run_id }} --failed
2 changes: 1 addition & 1 deletion .github/workflows/upload-annotations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- uses: actions/checkout@v4

- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v4
uses: silverhand-io/actions-node-pnpm-run-steps@v5
with:
pnpm-version: 9

Expand Down
37 changes: 31 additions & 6 deletions .scripts/compare-database.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,21 +99,46 @@ const queryDatabaseManifest = async (database) => {
`);

// This function removes the last segment of grantee since Logto will use 'logto_tenant_fresh/alteration' for the role name.
const normalizeGrantee = ({ grantee, ...rest }) => {
if (grantee.startsWith('logto_tenant_')) {
return { ...rest, grantee: 'logto_tenant' };
const normalizeRoleName = (roleName) => {
if (roleName.startsWith('logto_tenant_')) {
return 'logto_tenant';
}

return { grantee, ...rest };
// Removes the last segment of region grantee since Logto will use 'logto_region_xxx' for the role name for different regions.
if (roleName.startsWith('logto_region_')) {
return 'logto_region';
}

return roleName;
};

const normalizeGrantee = ({ grantee, ...rest }) => ({
...rest,
grantee: normalizeRoleName(grantee),
});

// Ditto.
const normalizeRoles = ({ roles: raw, ...rest }) => {
const roles = raw.slice(1, -1).split(',').map((name) => name.startsWith('logto_tenant_') ? 'logto_tenant' : name);
const roles = raw
.slice(1, -1)
.split(',')
.map((name) => normalizeRoleName(name));

return { roles, ...rest };
};

const normalizePolicyname = ({ policyname, ...rest }) => {
const prefix = 'allow_';
const suffix = '_access';
if (policyname && policyname.startsWith(prefix) && policyname.endsWith(suffix)) {
// This is a naming convention in Logto cloud, it is formatted as `allow_{role_name}_access`, we need to normalize the role name part for the convenience of comparing DB updates.
// Ref: https://github.com/logto-io/cloud/pull/738
return { policyname: `${prefix}${normalizeRoleName(policyname.slice(prefix.length, -suffix.length))}${suffix}`, ...rest };
}

return { policyname, ...rest };
};

// Omit generated ids and values
return {
tables: omitArray(tables, 'table_catalog'),
Expand Down Expand Up @@ -144,7 +169,7 @@ const queryDatabaseManifest = async (database) => {
indexes,
funcs,
triggers: omitArray(triggers, 'trigger_catalog', 'event_object_catalog'),
policies: policies.map(normalizeRoles),
policies: policies.map(normalizeRoles).map(normalizePolicyname),
columnGrants: omitArray(columnGrants, 'table_catalog').map(normalizeGrantee),
tableGrants: omitArray(tableGrants, 'table_catalog').map(normalizeGrantee),
};
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"timestamptz",
"topbar",
"upsell",
"withtyped"
"withtyped",
"backchannel"
]
}
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
<p align="center">
<a href="https://logto.io" target="_blank" align="center" alt="Logto Logo">
<img src="./logo.png" height="120">
<a href="https://logto.io/?utm_source=github&utm_medium=readme" target="_blank" align="center" alt="Go to Logto website">
<picture>
<source width="200" media="(prefers-color-scheme: dark)" srcset="https://github.com/logto-io/.github/raw/master/profile/logto-logo-dark.svg">
<source width="200" media="(prefers-color-scheme: light)" srcset="https://github.com/logto-io/.github/raw/master/profile/logto-logo-light.svg">
<img width="200" src="https://github.com/logto-io/logto/raw/master/logo.png" alt="Logto logo">
</picture>
</a>
</p>

<br />

[![discord](https://img.shields.io/discord/965845662535147551?color=5865f2&label=discord)](https://discord.gg/vRvwuwgpVX)
[![checks](https://img.shields.io/github/checks-status/logto-io/logto/master)](https://github.com/logto-io/logto/actions?query=branch%3Amaster)
[![release](https://img.shields.io/github/v/release/logto-io/logto?color=3a3c3f)](https://github.com/logto-io/logto/releases)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"typescript": "^5.0.0"
},
"engines": {
"node": "^20.10.0",
"node": "^20.9.0",
"pnpm": "^9.0.0"
},
"pnpm": {
Expand Down
Loading