Gao Sun
8624fc8e62
Merge pull request #2913 from logto-io/gao-log-5162-core-remove-deprecated-database-query
...
refactor: remove deprecated singleton instances
2023-01-12 23:08:59 +08:00
wangsijie
900b87b9a5
feat(core): add pagination and search to role users ( #2927 )
2023-01-12 09:28:23 +00:00
Gao Sun
f317a917c9
refactor: remove deprecated singleton instances
2023-01-12 16:34:06 +08:00
Gao Sun
a4e2484087
refactor(core): move findUsersByRoleName()
to library
2023-01-11 13:44:15 +08:00
Gao Sun
e55ff3d185
refactor(core): remove deprecated query functions
2023-01-11 13:36:35 +08:00
wangsijie
8b8103132e
fix(core): fix findUsersByIds for empty ids case ( #2892 )
2023-01-10 05:39:15 +00:00
Gao Sun
26f8511f93
refactor(core): use tenant context for route inits
2023-01-09 16:58:02 +08:00
Gao Sun
a68b34971a
refactor(core): users and users roles query factories
2023-01-09 16:43:09 +08:00
wangsijie
bde1cbcc9d
fix(core): prevent empty array to be used by sql in ( #2844 )
2023-01-07 12:13:13 +08:00
wangsijie
7e507dbc2b
feat(core): user-role related api ( #2827 )
2023-01-07 12:08:03 +08:00
wangsijie
61f4e7fd2d
feat: add users_roles table and remove role_names ( #2525 )
2023-01-04 15:39:27 +08:00
Gao Sun
7bf52aa7ad
feat(core)!: enhanced user search params ( #2639 )
2022-12-14 08:36:57 +00:00
Xiao Yijun
9345c10301
refactor(core): sort users data by createdAt
( #2643 )
2022-12-13 12:25:08 +08:00
simeng-li
5385a2cdd7
refactor(core): refactor findUserByIdentity ( #2537 )
2022-11-28 02:37:25 +00:00
Gao Sun
d29dde828e
refactor: use esm (batch 3)
2022-11-22 16:10:53 +08:00
wangsijie
27ce104ec5
fix(core): handle not found error for password sign in ( #2383 )
2022-11-11 14:54:46 +08:00
Charles Zhao
8f3de6aa0b
fix(core): fix field updating issues in patch user management api
2022-11-11 01:07:05 +08:00
Gao Sun
f82d2a8c4f
refactor(core)!: use case insensitive search for emails
2022-11-10 15:23:50 +08:00
İhsan Güldür
938608e72b
feat: add case insensitive user search ( #2300 )
...
Co-authored-by: wangsijie <wangsijie94@gmail.com>
Co-authored-by: Charles Zhao <charleszhao@silverhand.io>
Co-authored-by: wangsijie <wangsijie@silverhand.io>
2022-11-04 10:47:54 +08:00
Gao Sun
f56b5b5c48
refactor: fix lint errors
2022-10-21 14:03:35 +08:00
Gao Sun
ba09de9b1e
refactor(core,cli): extract common utils to @logto/shared
2022-10-10 23:26:40 +08:00
IceHe
cce2d40160
refactor(core): count new users by created_at ( #2027 )
2022-09-29 15:32:43 +08:00
Gao Sun
8c451b4e3c
chore: upgrade silverhand packages ( #1854 )
2022-09-01 17:03:49 +08:00
Gao Sun
4afdf3cb4c
feat(core): set user default roles from env ( #1793 )
2022-08-19 16:53:19 +08:00
Wang Sijie
9194a6ee54
feat(console,core): hide admin user ( #1182 )
...
* feat(console,core): hide admin user
* fix: extract hideAdminUser
* test: add tests for hideAdminUser
2022-06-22 02:22:15 +00:00
Wang Sijie
3cf34b5911
fix(core): align jsonb replace mode ( #1138 )
2022-06-17 14:45:39 +08:00
Darcy Ye
41e37a7995
feat(core): identities key should use target not connectorId ( #1115 )
...
* feat(core): identities key should use target not connectorId
* refactor(core): make test file size in limit
* feat(console): use target in user connectors (#1134 )
Co-authored-by: Wang Sijie <wangsijie@silverhand.io>
2022-06-17 11:00:02 +08:00
Darcy Ye
efa9491749
feat(core): add switch of enabling object fully replace when updating DB ( #1107 )
...
* feat(core): add switch of enabling object fully replace when updating DB
* feat(core): assign default jsonbMode value if possible
2022-06-14 21:38:10 +08:00
simeng-li
f6f562a8ba
feat(core): add welcome route ( #1080 )
...
* feat(core): add welcome route
add welcome route
* fix(ui): fix some koa middleware
fix some koa middleware
* fix(core): ut fix
ut fix
* refactor(core): refactor welcome user guard
refactor welcome user guard
2022-06-09 11:42:52 +08:00
Darcy Ye
2e08fa3816
chore(core,locale): fix error messages of signing in with non-existing username ( #1035 )
...
* chore(core,locale): fix error messages
* chore(core,locale): add input parameter guard and fix comment
* chore(core,locale): add nonempty string guard for username
2022-06-02 08:29:17 +00:00
Gao Sun
dff23b57db
refactor(core): move database pool into env set
2022-04-20 15:56:38 +08:00
Wang Sijie
10fc7e4205
feat(console): support icon in text-input ( #458 )
...
* feat(console): support icon in text-input
* feat(console): user search (#460 )
* fix: inputValue empty
* fix: remove contional
2022-03-30 14:01:18 +08:00
Darcy Ye
82d104a0d3
feat(core): add DELETE /users/:userId/identities/:connectorId ( #437 )
...
* feat(core): add DELETE /users/:userId/identities/:connectorId
* feat(core): add user query methods UT cases for better testing coverage
* feat(core): rewrite deletion of connector info from user identities using postgresql operator
2022-03-25 15:48:53 +08:00
Xiao Yijun
dcd84086f6
refactor(core): slonik error handling ( #307 )
2022-03-02 15:44:57 +08:00
simeng-li
fb6a1dc236
test(core): add ut for queires ( #287 )
...
* test(core): add ut for queires
add ut for queries
* test(core): add user query ut
add user query ut
* fix(core): remove test code
remove console log
2022-02-28 14:30:27 +08:00
Xiao Yijun
e63ca4c06f
feat(core): get /users
with search ( #270 )
2022-02-24 12:29:34 +08:00
Xiao Yijun
c1c356c30a
feat(core): delete users/:userid/custom-data
( #233 )
2022-02-17 14:10:26 +08:00
Xiao Yijun
ee49880845
feat(core): get /users
( #237 )
2022-02-16 15:55:08 +08:00
simeng-li
cdcadb968f
refactor(core): refactor error handler logic ( #220 )
...
* refactor(core): refactor error handler logic
add oidc and slonik custom error handler
* fix(core): fix typo
fix type
* refactor: align core errors
align some old core error definitions
2022-02-14 11:50:47 +08:00
Wang Sijie
66808d6d02
feat: social sign in ( #218 )
2022-02-11 07:19:18 +00:00
Darcy Ye
750ef0c3bf
feat(phone passwordless): add passwordless sign-in with phone ( #217 )
...
* feat(phone passwordless): add passwordless sign-in with phone
* feat(phone passwordless): rename phoneReg
2022-02-09 16:14:42 +08:00
Wang Sijie
fd1810592b
feat(core): check email exist before sending code ( #211 )
2022-02-07 06:14:42 +00:00
Wang Sijie
d14f1a8841
feat(core): sign in with email ( #209 )
...
* feat(core): sign in with email
* fix: jti comment
* refactor: move sign in methods into lib
2022-01-31 11:04:55 +08:00
Charles Zhao
f30cae7377
chore: upgrade eslint-config to v0.6.1
2022-01-27 19:26:34 +08:00
simeng-li
99f85ca44c
refactor(schema): rename schema ( #182 )
...
* refactor(schema): rename schema
rename schema update to create
rename guard to createGuard
* fix(core): ci fix
fix ci errors
* refactor(schema): rename schema type FooCreate to CreateFoo
rename schema type from FooCreate to CreateFoo
* fix(schema): add guard nullable
add guard nullable gen method
2022-01-18 12:44:08 +08:00
simeng-li
86c68739e6
refactor(errors): introduce Slonik Deletion Error ( #177 )
...
replase all deletion query RequeestError with DeletionError extends SlonikError
2022-01-14 10:19:43 +08:00
Darcy Ye
6e9cabe50b
chore: rename all \w+DBEntry
as \w+Update
to eliminate understanding ( #173 )
2022-01-12 16:22:33 +08:00
Darcy Ye
dd7a385363
chore: update dependency of ESLint to version 8.1.0 or later ( #155 )
...
* chore: update eslint version to 8.1.0
* chore: update silverhand configs dependency
* chore: update silverhand configs dependency and fix code block according to linting rules
2021-12-20 14:20:23 +08:00
Wang Sijie
7ce706ccbe
feat: generate 2 types for db table schema ( #154 )
...
* feat(schema): generate Model and DBEntry
* feat: generate 2 types for db table
2021-12-08 11:11:27 +08:00
Wang Sijie
9c3b67ae46
feat(core): users basic API ( #133 )
2021-11-18 11:26:34 +08:00