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

2053 commits

Author SHA1 Message Date
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
simeng-li
a93a39aa1b
feat(core,schemas): add isThirdParty column to the applications table (#5090)
* feat(core,schemas): add isThirdParty column to the applications table

add isThirdParty column to the applications table

* refactor(core): group the application routes under applications directory (#5091)

* refactor(core): group the application routes under applications directory

group the application routes under applications directory

* refactor(core,schemas): refactor the application api guard

refactor the application api guard

* fix(schemas): fix application patch guard

fix application patch guard

* fix(test): fix ut

fix ut
2023-12-12 14:54:49 +08:00
Gao Sun
31e60811d7
chore: use Node 20 LTS for engine requirement (#5084) 2023-12-11 09:10:53 +08:00
Darcy Ye
d5fd2834fb
chore(core): rename SSO connectors management API routes (#5071) 2023-12-08 18:15:05 +08:00
simeng-li
b204ba8f74
refactor(core,experience): simplify the consent path (#5072)
simplify the consent path
2023-12-08 15:14:51 +08:00
simeng-li
7310e4289f
chore(core): increase sso oidc token iat tolerance (#5074)
chore(core): increase sso oidc token iat tolerence

increase sso oidc token iat tolerence
2023-12-08 10:27:13 +08:00
silverhand-bot
4865610b51
release: version packages (#4894) 2023-12-06 16:13:56 +08:00
Darcy Ye
fce8d142da
fix(core): fix SSO quota guard (#5065) 2023-12-06 13:53:10 +08:00
Gao Sun
e4def14e71
refactor(core): add base url to swagger json (#5057) 2023-12-05 11:46:39 +08:00
Darcy Ye
c2c1a9e359
chore(console,core): show invalid SSO config/metadata error message inline (#5053) 2023-12-04 08:47:11 +00:00
simeng-li
b8f4c07dd0
feat(core,console,experience): remove sso dev guard (#5026)
* fix(console): fix lint

allow isDev tag always exist

* feat(core,console,experience): remove dev guard for SSO

remove dev guard for SSO

* fix(experience): polish comment

polish comment
2023-12-04 07:11:28 +00:00
simeng-li
cdf5a22315
refactor(core,schemas,console): optimize the sso connector endpoints naming (#5047)
* refactor(core,schemas): rename the sso-connector-factory terms to connector-provider

shouls align the terms of api. Replace the factory using provider.

* refactor(core,console): rename the sso-connector-providers response property name

 rename the sso-connector-providers response property name

* chore(core): update api doc content

update api doc content

* feat(core): declare the SAMLResponse field in ACS api body

declare the SAMLResponse field in ACS api body

* refactor(console,core): categorize standard SSO providers at client side only

categorize standard SSO providers at client side only

* fix(core): fix rebase issue

fix rebase issue

* chore(console): remove useless useMemo

remove useless useMemo

* chore(core): update the api content

update the api content
2023-12-04 15:07:33 +08:00
Xiao Yijun
aa5bfdd0b3
chore(core): mark event and retries as deprecated for hooks api doc (#5048) 2023-12-04 14:33:42 +08:00
Xiao Yijun
3e92a20320
refactor(core): add user ip to webhook event payload (#5049) 2023-12-04 06:06:28 +00:00
Darcy Ye
3bab5351a6
feat(console): add signing certificate reader (#5009)
* feat(console): add signing certificate reader

* fix(core): throw invalid certificate SsoConnectorError only when failed to construct a certificate
2023-12-04 14:04:24 +08:00
Gao Sun
0bec4cd1d3
Merge pull request #5046 from logto-io/gao-add-api-tag-descriptions
chore(core): add api tags descriptions
2023-12-04 13:38:12 +08:00
Gao Sun
d8d420c812
Merge pull request #5045 from logto-io/gao-validate-supplement-document 2023-12-04 10:31:08 +08:00
Gao Sun
f589fed383
chore(core): remove redundant types in openapi json (#5044) 2023-12-04 09:42:00 +09:00
Gao Sun
2b28fd7d75
chore(core): do not throw error for api doc integrity on prod 2023-12-03 19:52:37 +08:00
Gao Sun
b05fb2960d
chore(core): enforce summary and description for Management APIs 2023-12-03 19:10:21 +08:00
Gao Sun
495f4d5e80
chore(core): add api tags descriptions 2023-12-03 19:10:21 +08:00
Gao Sun
07e025ddb9
chore: add openapi-types to deps 2023-12-03 19:05:12 +08:00
Gao Sun
5fa377dd24
chore(core): skip supplement validation in unit test 2023-12-03 18:28:22 +08:00
Gao Sun
f1150eca30
refactor(core): validate supplement openapi document 2023-12-03 14:30:33 +08:00
Darcy Ye
f539b0851d
chore(core): add connector api doc descriptions (#5042)
* chore(core): add connector api doc descriptions

* chore(core): polish docs

---------

Co-authored-by: Gao Sun <gao@silverhand.io>
2023-12-02 16:47:01 +00:00
Xiao Yijun
88e8aa944a
chore(core): add logs api doc descriptions (#5034)
* chore(core): add logs api doc descriptions

* chore: polish docs

---------

Co-authored-by: Gao Sun <gao@silverhand.io>
2023-12-02 16:09:30 +00:00
Xiao Yijun
ad60de8f24
chore(core): add logto-config api doc descriptions (#5033)
* chore(core): add logto-config api doc descriptions

* chore(core): polish docs

---------

Co-authored-by: Gao Sun <gao@silverhand.io>
2023-12-02 16:05:57 +00:00
simeng-li
b1461b42ea
feat(core): add sso-connectors openapi file (#5040)
* feat(core): add sso api doc

add sso api doc

* chore(core): polish docs

* chore(core): polish docs

---------

Co-authored-by: Gao Sun <gao@silverhand.io>
2023-12-02 14:34:47 +00:00
simeng-li
00dc158c70
feat(core): add authn docs (#5041)
* feat(core): add authn docs

add authn api docs

* chore: polish docs

---------

Co-authored-by: Gao Sun <gao@silverhand.io>
2023-12-02 08:53:17 +00:00
wangsijie
3803a1ac23
chore(core): add dashboard api doc descriptions (#5037)
* chore(core): add dashboard api doc descriptions

* chore(core): polish docs

---------

Co-authored-by: Gao Sun <gao@silverhand.io>
2023-12-02 07:49:11 +00:00
wangsijie
484b52cb38
chore(core): add domains api doc descriptions (#5036)
* chore(core): add domains api doc descriptions

* chore(core): polish docs

---------

Co-authored-by: Gao Sun <gao@silverhand.io>
2023-12-02 07:39:43 +00:00
Gao Sun
e1a162eb56
Merge pull request #5039 from logto-io/gao-add-api-docs 2023-12-01 23:57:46 +08:00
Gao Sun
86f4860a03
chore(core): update description 2023-12-01 18:44:56 +08:00
Gao Sun
22e6c9d99e
chore(core): add api docs 2023-12-01 18:28:49 +08:00
Xiao Yijun
fd105ac99f
chore(core): add well-known api doc descriptions (#5018) 2023-12-01 16:40:36 +08:00
Darcy Ye
88285ba7b6
feat(connector,console,core): add SSO paywall for core management APIs (#5024) 2023-12-01 17:27:01 +09:00
simeng-li
997a0036d8
fix(core): should not guard email if SSO is disabled (#5032)
should not guard email is SSO is disabled
2023-12-01 14:56:59 +08:00
Xiao Yijun
7edad3ced3
chore(core): add hooks api doc descriptions (#5020) 2023-12-01 12:20:06 +08:00
Xiao Yijun
ca50a78924
chore(core): add verficiation code api doc descriptions (#5021) 2023-12-01 11:03:50 +08:00
Xiao Yijun
65306682ec
chore(core): add sign-in experience api doc descriptions (#5019) 2023-12-01 11:03:00 +08:00
Xiao Yijun
a49c3c33f7
chore(core): add custom-phrases api doc descriptions (#5022) 2023-12-01 11:02:41 +08:00
Xiao Yijun
797bee5f01
chore(core): add applications api doc descriptions (#5023) 2023-12-01 11:02:23 +08:00
Darcy Ye
1cd9e21570
chore(console,phrases): update SSO related content (#5028) 2023-12-01 11:31:35 +09:00
simeng-li
f80350d2e3
feat(console,phrases,experience): add sso toggle button to console (#5004)
* feat(phrases): add sso enabled phrases

add sso enabled phrases

* feat(console,phrases,experience): add sso toggle button to console

add sso toggle button to console

* test(experience): update ut

update ut

* feat(experience): apply ssoEnabled guard to the connector fetch endpoint

apply ssoEnabled guard to the connector fetch endpoint
2023-11-30 16:56:51 +08:00
simeng-li
5150ead19f
feat(core,schemas): add new singleSignOnEnabled field to sie (#5003)
* feat(core,schemas): add new singleSignOnEnabled field to sie

add new singleSignOnEnabled field to sie

* chore(core): add some comment

add some comment

* fix(experience): update mock data

update mock data
2023-11-30 16:34:08 +08:00
Gao Sun
b4f702a860
refactor(core): return organization data in userinfo endpoint (#5010)
* refactor(core): return organization data in userinfo endpoint

* chore(core): add comments

* chore: fix tests
2023-11-30 13:51:53 +08:00
Darcy Ye
949708b0f9
feat(console): update certificate display (#5007) 2023-11-30 03:11:26 +00:00
simeng-li
5105830e2f
refactor(core): use name attribute as the default connector name (#4984)
use name attribute as the default connector name
2023-11-29 12:59:00 +08:00
Darcy Ye
fad8872b31
fix(console,phrases,core): fix SAML attribute mapping (#4978) 2023-11-28 17:08:46 +08:00
Darcy Ye
14855cde2c
feat(console,core,phrases): add display name field, fix error display (#4983) 2023-11-28 15:49:46 +08:00
Darcy Ye
5e695c2dd6
chore(console,phrases): update SSO connector name display (#4965) 2023-11-28 03:39:09 +00:00
simeng-li
b48ab51098
refactor(core,schemas): add SSO displayName (#4969)
feat(core,schemas): add SSO connector displayName property

add SSO connector displayName property
2023-11-28 11:34:48 +08:00
simeng-li
030877b656
feat(core): guard sso config (#4962)
* feat(core): guard sso config

guard sso config

* refactor(core): simplify the sso error structure

simplify the sso error structure

* fix(test): fix integration tests

fix integration tests

* fix(test): fix integration-tests

fix integration-tests
2023-11-28 11:17:46 +08:00
simeng-li
ccfad51e62
chore(core): add dev feature guard to SSO endpoints (#4971)
* chore(core): guard sso api

guard sso api

* chore(core): guard sso interaction api

guard sso interaction api
2023-11-27 16:56:55 +08:00
Darcy Ye
528c6c462c
fix(core): fix OIDC SSO connector config guard (#4968) 2023-11-27 11:03:27 +08:00
Darcy Ye
ac099b1e64
chore(console,core): add/replace SSO connector logo resources (#4963) 2023-11-27 11:02:34 +08:00
simeng-li
0d636d5607
fix(core): update google SSO connector prompt always select-account (#4961)
* fix(core): update google SSO connector prompt always select-account

google SSO connector prompt always select-account

* chore(core): update comment

update comment
2023-11-27 10:56:00 +08:00
simeng-li
3f84e724b9
refactor(core): remove SSO connector config partial update logic (#4958)
* refactor(core): remove SSO connector config partial update logic

remove SSO connector config partial update logic

* fix(test): fix integration tests

fix integration tests

* refactor(core): refactor SAML SSO idpConfig type (#4960)

refactor SAML SSO idepConfig type
2023-11-24 06:21:59 +00:00
simeng-li
a36ae032e3
feat(core): add OKTA sso connector (#4951)
add OKTA sso connector
2023-11-23 13:35:28 +08:00
simeng-li
6785cfcd3e
refactor(core): simplify the saml getIssuer method (#4942)
simplify the saml getIssuer method
2023-11-23 13:32:00 +08:00
Charles Zhao
9a91c0ad10
feat(console,core,phrases): add more organization paywalls (#4952) 2023-11-23 04:44:42 +00:00
Darcy Ye
df6d0894ba
chore(core): update generation of SAML service provider entity id (#4943) 2023-11-23 10:56:41 +08:00
Gao Sun
9a1a88cac0
chore: remove dev feature flag for orgs (#4949) 2023-11-22 16:32:09 +08:00
Gao Sun
133c4456ab
chore: update management api docs url (#4948) 2023-11-22 16:24:49 +08:00
Charles Zhao
fbf6d89d9b
feat(console,phrases): add organizations paywall (#4939) 2023-11-22 06:40:01 +00:00
Darcy Ye
367673b25c
feat(console): add SSO connector details page (settings tab) (#4912) 2023-11-22 04:28:39 +00:00
simeng-li
6d57a58d68
refactor(core,experience): extract sso register api (#4934)
* refactor(core,experience): extract sso register api

extract sso register api

* feat(core): add signInMode guard to sso register api (#4935)

add signInMode guard to sso register api

* chore(core): adjust the comments

adjust the comments
2023-11-22 03:19:39 +00:00
simeng-li
24972ce46e
fix(core): fix saml sso connector bug (#4940)
* fix(core): fix saml sso connector bug

fix saml sso connector bug

* chore(core): add some comments

add some comments
2023-11-22 11:08:43 +08:00
simeng-li
3b3bfd750a
refactor(core,schemas): remove get provider properties method (#4927)
* refactor(core,schemas): remove get provider properties method

remove get provider properties method

* chore(core): adjust the comment

adjust the comment

* fix(console): fix console type error

fix console type error, remove providerProperties
2023-11-22 10:58:12 +08:00
simeng-li
f880329d16
feat(core,experience): implement google workspace connector (#4925)
* feat(core,experience): implement google workspace connector

implement google workspace connector

* fix(core): clean code

clean code

* fix(core): fix ut

fix ut

* fix(core): fix ut

fix ut

* fix(test): fix integration tests

fix integration tests

* fix(core): make the sso data as public property and remove getter

make the sso data as public perperty and remove getter
2023-11-21 11:13:59 +08:00
Darcy Ye
57655dfeb7
feat(console,phrases,core): add SSO connector creation guide (#4866) 2023-11-19 06:30:22 +00:00
Darcy Ye
5832b30276
fix(core,test): fix saml sp config and refactor saml class internal util methods (#4878) 2023-11-17 23:51:52 +08:00
simeng-li
6c8bd20fe0
feat(core): add social returned email sso guard (#4889)
add social returned email sso guard
2023-11-17 07:58:31 +00:00
simeng-li
edb2bdccec
feat(core): add the saml assertion handle flow (#4872)
* feat(core): add saml assertion handle flow

add saml assertion handle flow

* fix(core): address some comments

address some comments

* chore(core): comments update

comments update

* chore(core): add deprecated tag

add dreprecated tag

* refactor(core): use url object instead of plain string

use url object instead of plain string
2023-11-17 06:14:45 +00:00
Darcy Ye
787359c1c4
feat(console): show SSO identities on user details page and reorg the page (#4687) 2023-11-16 11:26:26 +08:00
Gao Sun
9a4da065dc
fix(core): generate correct swagger components (#4884)
* fix(core): generate correct swagger components

* refactor(core): fix tests
2023-11-16 11:19:54 +08:00
Gao Sun
bfea0b0fdd
refactor(core): fix org apis (#4890) 2023-11-15 09:20:31 +00:00
wangsijie
d200ca56c8
fix(core): fix devleopment plan id (#4888) 2023-11-15 08:19:19 +00:00
Gao Sun
aa8a7a25c2
chore(core): fix dev script (#4882) 2023-11-15 14:04:41 +08:00