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

2031 commits

Author SHA1 Message Date
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
Darcy Ye
aac7a7bcf8
chore: update core dependency 2024-03-21 10:56:13 +08:00
Darcy Ye
ef7e8e1fda
refactor(core): use discriminate union for custom jwt test API 2024-03-21 10:56:13 +08:00
Darcy Ye
5fbee28565
feat(core): add POST /configs/jwt-customizer/test API 2024-03-21 10:56:12 +08:00
Darcy Ye
f727ef8415
Merge pull request #5529 from logto-io/yemq-log-8446-update-user-context-type
refactor(core): update user context type
2024-03-21 10:54:46 +08:00
Darcy Ye
a2f20df9c9
chore: add comments 2024-03-20 14:35:08 +08:00
Gao Sun
abffb9f95e
chore: add changeset and api doc 2024-03-20 13:39:22 +08:00
Gao Sun
6feb531435
feat: add profile api, update api and database, add tests 2024-03-20 13:16:23 +08:00
Darcy Ye
e5e378d1bb
chore: remove org role scopes field since it relies on pagination setup 2024-03-20 12:58:12 +08:00
Gao Sun
bc110843e6
Merge pull request #5523 from logto-io/gao-allow-filter-invitation-by-invitee
feat: allow get invitations by invitee
2024-03-20 11:29:33 +08:00
Gao Sun
1bc40faf98
refactor: fix type issues 2024-03-20 11:00:11 +08:00
simeng-li
b994f1e2ad
refactor(core): refactor oidc sso connector (#5528)
refactor oidc sso connector
2024-03-20 10:20:01 +08:00
Darcy Ye
8f5baac585
refactor(core,schemas): refactor to improve lib method performance 2024-03-20 00:47:56 +08:00
Gao Sun
beff82ae2c
feat: add oidc standard claims to user 2024-03-19 22:51:26 +08:00
Darcy Ye
348124b60e
refactor(core): update user context type 2024-03-19 16:01:55 +08:00
Gao Sun
23bc5cdc8e
Merge pull request #5521 from logto-io/gao-allow-unknown-keys-in-message-payload
refactor: allow unknown keys in send message payload
2024-03-19 10:49:52 +08:00
Gao Sun
98ca0a739d
feat: allow get invitations by invitee 2024-03-19 10:45:02 +08:00
Gao Sun
2c10c24232
refactor: update invitation apis 2024-03-19 10:38:36 +08:00
wangsijie
9aa07bf8ed
test(core): mock crypto functions in password tests (#5522) 2024-03-19 02:37:58 +00:00
Gao Sun
b40a3474aa
Merge pull request #5513 from logto-io/gao-use-svhd-slonik
refactor: use silverhand slonik
2024-03-19 09:26:59 +08:00
wangsijie
2f388c08bf
feat(core): set oidc issuer to custom domain (#5509)
* feat(core): set oidc issuer to custom domain

* refactor(core): get tenant id return whether is custom domain
2024-03-18 14:27:33 +08:00
Gao Sun
feaca53785
refactor: remove unused files 2024-03-18 10:04:25 +08:00
Gao Sun
0a5226c4be
chore: upgrade slonik 2024-03-18 09:59:38 +08:00
Gao Sun
fbbe767867
refactor: use silverhand slonik 2024-03-16 19:04:55 +08:00
Gao Sun
54c2b1d1e3
refactor: fix errors 2024-03-16 14:44:32 +08:00
Gao Sun
e22eb3a9d2
refactor: remove slonik from shared 2024-03-16 00:50:10 +08:00
Darcy Ye
58885b31cb
fix(core): the koa response status guard missing 422 in sso integration API (#5506) 2024-03-15 03:57:08 +00:00
simeng-li
2a358bf241
refactor(console,core,schemas): rename the jwtCustomizer related type and guards (#5496)
rename the jwtCustomizer related type and guards
2024-03-13 06:35:47 +00:00
simeng-li
2c5a4491ae
refactor(core,console): align the jwt token path enum (#5493)
align the jwt token path enum used in console and core
2024-03-13 01:48:12 +00:00
Gao Sun
1965633bed
refactor(core): update organization invitation apis (#5474)
* refactor(core): update organization invitation apis

* chore: add api tests
2024-03-12 18:35:40 +08:00
Darcy Ye
9eb1c4ad7f
feat(core,schemas): update jwt customizer user info context 2024-03-11 18:29:29 +08:00
wangsijie
95f4ba1856
feat(core): add password algorithm transition (#5481) 2024-03-08 18:04:13 +08:00
wangsijie
172411946a
feat(core): create user with avatar and custom data (#5476) 2024-03-08 03:29:39 +00:00
Darcy Ye
57a9cfa6d3
fix(core): fix rebase 2024-03-07 15:06:50 +08:00
Darcy Ye
29d7642c6b
feat(core): add DELETE /configs/jwt-customizer API 2024-03-07 14:25:24 +08:00
Darcy Ye
74a70c068d
feat(core): add GET /configs/jwt-customizer API 2024-03-07 14:17:49 +08:00
Darcy Ye
ce2abe740c
Merge pull request #5465 from logto-io/yemq-log-8283-add-GET-configs-jwt-customizer-API
feat(core): add GET /configs/jwt-customizer API
2024-03-07 14:14:09 +08:00
Darcy Ye
81eb02239e
Merge pull request #5461 from logto-io/yemq-log-8282-add-POST-configs-jwt-customizer-API
feat(core): add PUT /configs/jwt-customizer API
2024-03-07 14:10:13 +08:00
Darcy Ye
5d55776d60
refactor(core): refactor 2024-03-06 19:53:17 +08:00
Darcy Ye
754d425a60
chore(core,test): update tests and refactor getJwtCustomizer query 2024-03-06 19:33:41 +08:00
Darcy Ye
118de63049
feat(core): add GET /configs/jwt-customizer API 2024-03-06 19:33:39 +08:00
Darcy Ye
f4a812ae8a
refactor(core): refactor 2024-03-06 19:31:42 +08:00
Darcy Ye
0f0247ce2f
refactor(core): overload function interface 2024-03-06 18:47:41 +08:00
Darcy Ye
5d8e6853d1
refactor(core): refactor code 2024-03-06 18:15:54 +08:00
simeng-li
2f72f8ffd7
feat(console,phrases): integrate monaco editor (#5460)
* feat(console,phrases): integrate monaco editor

integrate monaco editor

* chore: update pnpm lock file

update pnpm lock file

* fix(console): remove unused styles

remove unused styles

* feat(console): update font styles

update font styles
2024-03-06 14:08:46 +08:00
Darcy Ye
44ff452492
fix(core): align openapi.json 2024-03-06 12:35:22 +08:00
renovate[bot]
e1def81ed5
chore(deps): upgrade withtyped and cloud packages (#5408)
* fix(deps): upgrade withtyped packages

* chore: fix types

* chore(deps): upgrade logto cloud package

* refactor(cli): fix types

---------

Co-authored-by: Gao Sun <gao@silverhand.io>
2024-03-06 04:26:50 +00:00
Darcy Ye
7c06880287
feat(schemas,core,test): remove LogtoJwtTokenKeyType and define the path enum locally in core 2024-03-06 11:50:11 +08:00
Darcy Ye
92a04f08bd
feat(core): use PUT instead of POST and refactor code 2024-03-05 22:22:25 +08:00
Darcy Ye
7c4019b408
feat(core,phrases): add POST /configs/jwt-customizer API 2024-03-05 22:22:25 +08:00
Xiao Yijun
3ae59baf6e
chore(core): deprecate unused query methods for logs table (#5464) 2024-03-04 15:50:37 +08:00
Xiao Yijun
a0a19b13f9
refactor(core): migrate dashboard/users/active api data deps (#5457) 2024-03-04 14:59:56 +08:00
wangsijie
cc01acbd0e
feat(core): create user with encrypted password (#5446) 2024-03-04 15:41:36 +09:00
wangsijie
79b49ab79a
feat(core): support more encrypt methods (#5444)
* feat(schemas): add more encryption methods

* feat(core): support more encrypt methods

* fix(schemas): fix alter down column name

* fix(core): fix tiny lint issue

* refactor(core,schemas): use uppercase value

* feat(core,schemas): add bcrypt

* fix(schemas): fix alter script

* refactor(core,schemas): rename bcrypt and use hash-wasm

* chore: fix lock file
2024-03-04 03:18:19 +00:00
silverhand-bot
16ca8b2a98
release: version packages (#5445) 2024-03-01 14:40:25 +08:00
Gao Sun
532454b923
feat(core,connector): support apple sign-in with email (#5454)
* feat(core,connector): support apple sign-in with email

* chore: add tests and changesets

* refactor: fix tests and improve changeset
2024-03-01 05:00:41 +00:00
Xiao Yijun
c65730bcd2
refactor(core, schemas): enhance the time accuracy of dau data (#5451) 2024-03-01 12:43:55 +08:00
simeng-li
db6e761490
fix(core,test): fix integration test (#5438)
* fix(core,test): fix integration test

fix integration tests

* fix(test): remove api timeout

remove api timeout
2024-02-28 14:04:29 +08:00
Darcy Ye
873d20fed9
fix(core): mgmt API scopes are not assignable to user roles (#5425)
* fix(core): mgmt API scopes are not assignable to user roles

* feat: add alteration script to remove mgmt api scopes already assigned to user role

* chore: use option object
2024-02-27 03:19:59 +00:00
silverhand-bot
e606462bcc
release: version packages (#5433) 2024-02-26 08:41:08 +00:00
Darcy Ye
07e145b903
fix(core,console): block deletion on management API (#5424)
* fix(core,console): block deletion on management API

* refactor(core): separate resource api file to two files due to file size
2024-02-23 04:37:20 +00:00
renovate[bot]
4fd798e1d0
fix(deps): update dependency @simplewebauthn/server to v9 (#5269)
fix(deps): update @simplewebauthn packages to v9

Co-authored-by: Gao Sun <gao@silverhand.io>
2024-02-20 08:28:57 +00:00
Darcy Ye
b6233a1a58
feat(core,test): add PUT /users/:userId/identities/:target API (#5410) 2024-02-19 22:27:32 +08:00
simeng-li
52f4e578a5
refactor(core,schemas): remove cloudConnection call in koaTenantGuard (#5395)
remove cloudConnection dependency in the koaTenantGuard
2024-02-19 10:45:57 +08:00
Gao Sun
40eeea8cc0
refactor(core): log cloudflare error (#5399) 2024-02-09 00:42:07 +08:00
silverhand-bot
3f28e9a445
release: version packages (#5068) 2024-02-08 13:18:42 +08:00
wangsijie
936a8733cf
chore(core): remove dev features flag from core (#5371)
chore(console): remove dev features flag from core
2024-02-06 11:32:31 +08:00
wangsijie
f3c6028e00
fix(core,phrases): add notice that protected app is cloud only (#5385) 2024-02-06 10:46:18 +08:00
wangsijie
94bc538484
chore(core): update api doc for create protected app (#5344) 2024-02-05 03:38:01 +00:00
simeng-li
c10d6b6884
feat(console,core): remove devFeature guard (#5366)
remove devFeature guard for IdP
2024-02-02 15:16:31 +08:00
simeng-li
f53a14d7a8
feat(core): add third-party application creation quota guard (#5348)
add third-party application creation quota guard
2024-02-01 10:29:58 +08:00
Gao Sun
0a87ffd609
refactor(core): use deepmerge (#5361) 2024-02-01 09:17:29 +08:00
Gao Sun
c7353f68e9
refactor(core): guard status from request errors (#5343)
* refactor(core): guard status from request errors

* refactor(core): update routes

* refactor: update tests and routes

* refactor(core): update protected app response code
2024-01-31 17:45:27 +08:00
wangsijie
db2d10a2a8
fix(core,schemas): use database index to prevent custom domain conflict (#5342) 2024-01-31 11:05:20 +08:00
Gao Sun
90866a957d
Merge pull request #5340 from logto-io/gao-add-api-tests
refactor: update organization invitation api connector payload
2024-01-30 15:48:12 +08:00
renovate[bot]
0a9e1d093c
fix(deps): update dependency snakecase-keys to v6 (#5253)
Co-authored-by: Gao Sun <gao@silverhand.io>
2024-01-30 07:40:02 +00:00
Gao Sun
891c207817
test: add organization invitation api tests 2024-01-30 15:31:43 +08:00
Gao Sun
f74fdce9a0
Merge pull request #5338 from logto-io/gao-refactor-mock-connectors
refactor!: update mock connector file paths
2024-01-30 15:30:43 +08:00
Gao Sun
70b8ff707e
Merge pull request #5335 from logto-io/gao-remove-magic-links
refactor: remove magic links
2024-01-30 15:29:21 +08:00
Gao Sun
abe97c1182
Merge pull request #5330 from logto-io/gao-put-invitation-status
feat(core): put invitation status
2024-01-30 15:28:03 +08:00
wangsijie
1963e12bd7
fix(core,schemas): use database index to prevent subdomain conflict (#5326) 2024-01-30 11:53:27 +08:00
wangsijie
c9117515aa
chore(core): show errors of storage provider (#5240) 2024-01-30 03:09:05 +00:00
wangsijie
2260eb01cc
refactor(core): remove default page rules (#5325) 2024-01-30 10:55:31 +08:00
Xiao Yijun
09637a1a57
fix(core): include m2m apps in application limit (#5322) 2024-01-30 10:38:52 +08:00
Gao Sun
6befe60149
refactor!: update mock connector file paths 2024-01-29 21:33:12 +08:00
Gao Sun
46c550bf43
refactor: update invitation api payload for email 2024-01-29 21:27:04 +08:00
Gao Sun
6d0f95739c
refactor: remove magic links 2024-01-29 20:21:45 +08:00
Gao Sun
0a20b5a6f8
feat(core): put invitation status 2024-01-29 19:39:27 +08:00
Gao Sun
ee91767ce9
refactor: add invitation api tests (#5324)
* refactor: add invitation api tests

* refactor: update alteration

* refactor: fix config guard
2024-01-29 01:39:52 +00:00
Gao Sun
570a4ea9e2
feat: create invitation (#5245)
* feat: create invitation

* refactor: update test imports

* refactor: update unit tests

* refactor: update docs

* refactor: update api tests

* chore: add changesets

* refactor: add comments

* refactor: fix swagger check

* refactor: keep compatibility
2024-01-25 19:44:20 +08:00
wangsijie
8fb032da7a
fix(core): fix protected app callback uri (#5308) 2024-01-25 18:14:34 +08:00
wangsijie
880e890321
fix(core): get tenant endpoint (#5309) 2024-01-25 09:41:21 +00:00
simeng-li
52411f6712
feat(experience): add redirect uri info (#5296)
add redirect uri info
2024-01-25 11:48:01 +08:00
wangsijie
5b37be116a
fix(core,phrases): prevent application deletion for custom domain (#5262)
fix(core,phrases): prevent application deletion when custom domain exists
2024-01-24 08:46:35 +08:00
wangsijie
12fc67a039
feat(core,phrases): delete custom domain (#5261) 2024-01-23 15:20:03 +08:00
wangsijie
fa89d33252
feat(core): sync site configs and oidc metadata for custom domain (#5260) 2024-01-23 13:14:03 +08:00
wangsijie
43ce51ce2a
fix(core): should throw 500 on file upload error (#5274) 2024-01-23 03:58:29 +00:00
simeng-li
42e9513ca1
fix(console,core): fix application count bug (#5270)
fix application count bug
2024-01-23 11:22:26 +08:00
wangsijie
0d4d1b16f5
fix(schemas): remove catchall from cloudflare data guard (#5271) 2024-01-22 13:50:40 +08:00
wangsijie
cb5763f449
feat(core): sync protected app domain status (#5257) 2024-01-22 03:35:46 +00:00
simeng-li
2f1fb659ef
refactor(core): update the consent apis (#5267)
update the consent apis
2024-01-22 02:29:32 +00:00
wangsijie
e74c0cbc92
feat(core): check application custom domain conflict (#5256) 2024-01-19 09:25:30 +00:00
wangsijie
ef29f490af
feat(core): add custom domain for protected app (#5254) 2024-01-19 08:41:01 +00:00
wangsijie
ea407f19fa
feat(core,schemas): prepare schemas for protected app custom domain (#5247) 2024-01-19 13:17:20 +08:00
wangsijie
ad0a83ae03
feat(core): api to get protected app default domain (#5241) 2024-01-19 05:15:11 +00:00
simeng-li
08f8688cf2
feat(core): add get consent info api (#5259)
add get consent info api
2024-01-19 10:52:55 +08:00
simeng-li
94908ee8ce
feat(core): add third-party application scopes and organizations restriction (#5249)
* feat(core): add client scope restriction metadata for third-party apps

add client scope restriction metadata for third-party apps

* feat(core): disable auto consent for the thrid-party apps

disable auto consent for the third-party apps

* feat(core): filter out not enabled resource scopes for third-party app

filter out not enabled resource scopes for third-party app

* feat(core): add organization grant validation for third-party application refresh_token grant

add organization grant validation for third-party application refresh_token grant

* fix(core): remove the resource scopes from client metadata

remove the resource scopes from client metadata
2024-01-19 10:31:26 +08:00
simeng-li
29dcd61b77
fix(core): add management api scopes guard (#5251)
management api scopes is not allowed to assign to the third-party app
2024-01-18 10:01:52 +08:00
Charles Zhao
191298fff4
fix(core): fix quota guard for schema routers (#5242)
* fix(core): fix quota guard for schema routers

* chore: add comments
2024-01-16 22:46:12 +08:00
wangsijie
e1bbbd9ebf
feat(core,shared,phrases): check subdomain when creating protected app (#5217) 2024-01-16 16:30:03 +08:00
simeng-li
4e1b8d1d0d
feat(core): implement application user consent organizations api (#5236)
* feat(core): implement application user consent organizations api

implement application user consent organizations api

* test(core): add api integration tests

add api integration tests
2024-01-16 03:04:23 +00:00
wangsijie
cbfd00e673
feat(core,schemas): add block domain list (#5234) 2024-01-15 15:45:00 +08:00
Gao Sun
ca24e20f6a
Merge pull request #5232 from logto-io/gao-get-delete-invitation
feat(core): get and delete org invitation by id
2024-01-15 11:40:41 +08:00
Gao Sun
44d8717bd7
refactor: fix swagger 2024-01-15 11:13:24 +08:00
Gao Sun
e7fe20d32f
feat(core): get and delete org invitation by id 2024-01-15 08:26:25 +08:00
Gao Sun
d845c89c86
Merge pull request #5226 from logto-io/gao-reorg-org-queries
refactor(core): reorg organization queries
2024-01-12 20:56:08 +08:00
Gao Sun
44e2f96452
Merge pull request #5224 from logto-io/gao-init-invitation-apis
feat(schemas, core): init organization invitation apis
2024-01-12 20:55:31 +08:00
Gao Sun
f9750ace90
refactor(core): reorg organization queries 2024-01-11 21:56:10 +08:00
Gao Sun
0f08608b96
refactor(core): add swagger json 2024-01-11 21:47:30 +08:00
Gao Sun
75b643ad2f
feat(schemas, core): init organization invitation apis 2024-01-11 18:08:26 +08:00
wangsijie
67be81e6df
feat(core): delete protected app (#5191) 2024-01-11 15:30:42 +08:00
wangsijie
5bc649e10d
feat(core,phrases): update protected app (#5189) 2024-01-11 11:03:01 +08:00
renovate[bot]
85a1c781b0
chore(deps): update dependency @types/koa__cors to v5 (#5177)
Co-authored-by: Gao Sun <gao@silverhand.io>
2024-01-11 02:33:52 +00:00
wangsijie
d469e9499c
refactor(core): use const pagination key name for swagger (#5175) 2024-01-10 11:03:23 +08:00
wangsijie
0b08da2b46
feat(core): generate oidc metadata for protected app (#5188) 2024-01-09 11:45:38 +08:00
Gao Sun
3d5786d982
refactor: remove legacy resources (#5118)
* refactor: remove legacy api resources

* refactor: remove legacy resources

* refactor: add alteration script

* refactor(cli): adjust legacy seed test data

* refactor: update alteration timestamp

* refactor: update organization role name
2024-01-08 14:47:30 +08:00
wangsijie
ade9cf1dc7
feat(core): sync site configs to KV for new protected app (#5135) 2024-01-08 14:36:43 +08:00
renovate[bot]
094ff37e7a
chore(deps): update dependency @types/supertest to v6 (#5159)
Co-authored-by: Gao Sun <gao@silverhand.io>
2024-01-08 03:08:45 +00:00
simeng-li
9669fc92fb
refactor(core): add koaAutoConsent middleware (#5078)
* refactor(core): add koaAutoConsent middleware

Add koaAutoConsent middleware to allow auto consent and redirect direactly from the server side.

* refactor(core): use koaMount to apply the consent middleware

use koaMount to apply the consent middleware

* feat(test): update the integration tests

update the integration tests

* fix(test): update the unit test for consent

update the unit test for consent
2024-01-05 10:00:31 +08:00
Xiao Yijun
7a7188d8b1
refactor: deprecate staging env tag (2/2) (#5187) 2024-01-02 05:41:43 +00:00
wangsijie
acb7fd3fea
feat(core): case insensitive usernames (#5170)
* feat(core): case insensitive usernames

* test(core): add case insensitive username test cases

---------

Co-authored-by: Tc001 <tc001@t0.lv>
2023-12-28 10:57:47 +08:00
Darcy Ye
b4390aeae6
chore(core): resolve legacy unit tests comments and refactor (#5174) 2023-12-28 10:55:52 +08:00
renovate[bot]
1787503c78
chore(deps): update dependency @types/sinon to v17 (#4820)
Co-authored-by: Gao Sun <gao@silverhand.io>
2023-12-26 04:10:21 +00:00
renovate[bot]
6f843b79d6
fix(deps): update dependency find-up to v7 (#4900)
Co-authored-by: Gao Sun <gao@silverhand.io>
2023-12-26 03:16:35 +00:00
renovate[bot]
3911f92a22
chore(deps): update dependency got to v14 (#5008)
Co-authored-by: Gao Sun <gao@silverhand.io>
2023-12-26 02:59:22 +00:00
Gao Sun
5f855790a4
refactor: remove tenant owner role (#5145) 2023-12-26 10:37:43 +08:00
wangsijie
3e39e2e428
feat(core): route for add protected application (#5114) 2023-12-25 07:32:03 +00:00
Darcy Ye
8d5ff29e27
feat(core,schemas): add daily token usage table to ease the usage calculation (#5148) 2023-12-25 04:56:53 +00:00
Gao Sun
9089dbf845
chore(deps): upgrade TypeScript (#5141)
* chore(deps): upgrade TypeScript

* chore: upgrade configs

* chore: fix tsconfig and add changeset

* chore: upgrade jest-related deps and fix code
2023-12-22 15:16:49 +08:00
simeng-li
9faa9841c5
fix(core): remove the COOP policy (#5133)
remove the COOP policy
2023-12-22 10:28:48 +08:00
simeng-li
6e82e99725
feat(core,schemas,phrases): add application sign-in-experience apis (#5129)
add application sign-in-experience apis
2023-12-21 11:28:10 +08:00
simeng-li
072c6629d3
feat(core,schemas): add application user consent scope delete api (#5120)
* feat(core,schemas): add application user consent scope delete api

add application user consent scope delete api

* chore(core): add the invalid user consent scope type fallback error

add the invalid user consent scope type fallback error
2023-12-20 13:34:18 +08:00
Gao Sun
bbc223b81c
refactor(core): create tenant organization for first admin (#5127) 2023-12-20 13:07:06 +08:00
Darcy Ye
22e9580d68
feat(core,connector): update koaQuotaGuard to fit new pricing model (#5123) 2023-12-19 18:51:53 +08:00
wangsijie
e28822997f
feat(schemas): add column protected_app_metadata (#5113)
* feat(schemas): add new application type for protected app

* feat(schemas): add column protected_app_configs
2023-12-19 17:04:14 +08:00
wangsijie
7e435c4749
feat(schemas): add new application type for protected app (#5112) 2023-12-19 15:59:27 +08:00
dependabot[bot]
72fa53f1f3
chore(deps): bump @koa/cors from 4.0.0 to 5.0.0 (#5094)
Bumps [@koa/cors](https://github.com/koajs/cors) from 4.0.0 to 5.0.0.
- [Changelog](https://github.com/koajs/cors/blob/master/History.md)
- [Commits](https://github.com/koajs/cors/compare/4.0.0...5.0.0)

---
updated-dependencies:
- dependency-name: "@koa/cors"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-18 13:08:24 +08:00
simeng-li
5c936e0976
feat(core,schemas): add GET application user consent scopes api (#5103)
* feat(core,schemas): add GET application user consent scopes api

add GET application user consent scopes api

* fix(core): remove useless field declare

remove useless field declare
2023-12-15 18:12:52 +08:00
simeng-li
cb43ebb7d1
feat(core,phrases): add post application user consent scopes api (#5101)
add post application user consent scopes api
2023-12-15 16:59:48 +08:00
simeng-li
9222eb9f80
refactor(core): add on conflic ignore to the Relation insert query method (#5100)
* refactor(core): add on conflic ignore to the Relation insert query method

add on conflic ignore to the Relation insert query method

* chore: improve word

improve word

* test: add integration test

add integration test

* feat(core): update organization post api doc

update organization post api doc
2023-12-14 15:04:20 +08:00
wangsijie
7c09ac850f
refactor(core,console,shared): use getUserDisplayName function (#4977) 2023-12-13 03:01:07 +00:00
simeng-li
dcc226b5d9
feat(core,phrases): update applications api to support third-party app (#5096)
update applications api to support third-party app
2023-12-13 11:00:03 +08:00