IceHe.xyz
31779e0a3d
feat(core): facebook connector ( #321 )
...
* feat(core): facebook connector
* test(core): facebook connector
2022-03-08 12:39:55 +08:00
Wang Sijie
387ee50684
feat(console): init connectors ( #332 )
2022-03-08 11:10:46 +08:00
IceHe.xyz
fc113fba99
refactor(core): simplify check-and-throw-ConnectorError with assertThat ( #333 )
2022-03-07 16:08:05 +08:00
Darcy Ye
b14c30beca
feat(core): add forgot password send a passcode to phone route ( #326 )
...
* feat(core): add forgot password send a passcode to phone route
* feat(core): add UT for forget password send passcode to phone flow
2022-03-07 15:10:36 +08:00
Wang Sijie
12769e277b
feat(console): init connector page ( #331 )
2022-03-07 13:58:07 +08:00
IceHe.xyz
607a5344c2
chore(core): add TODO comments for adding the real connector logo URL ( #330 )
2022-03-07 13:49:57 +08:00
IceHe.xyz
c42b2a5a67
refactor(core): remove unnecessary check in github and aliyun-sms connector ( #329 )
2022-03-07 13:41:28 +08:00
IceHe.xyz
3dd7d496ef
test(core): fix typos in connectors/*/index.test.ts ( #328 )
2022-03-07 12:01:24 +08:00
Gao Sun
bb1d3c0a37
feat(console): retrieve applications from api ( #320 )
...
* feat(console): retrieve applications from api
* fix(console): i18n key
* fix(console): update per review
2022-03-04 17:26:34 +08:00
Gao Sun
9e0f60ebc8
fix(console): set base url when needed ( #312 )
...
* fix(console): set base url when needed
* fix(console): replace `a` with `Link`
* refactor(console): update var name
2022-03-03 15:44:42 +08:00
Gao Sun
365c63b2c7
feat(core): connect console ( #306 )
...
* feat(core): connect console
* fix(core): prod spa dist
* fix(core): test
* test(core): refactor spa proxy tests
2022-03-03 14:25:32 +08:00
Darcy Ye
5734333dea
test(core): add UT for aliyun sms ( #305 )
...
* test(core): add UT for aliyun sms
* test(core): define some params as top-level consts
2022-03-02 16:50:26 +08:00
Xiao Yijun
8ae42e9666
feat(core): google connector ( #300 )
2022-03-02 16:26:07 +08:00
Xiao Yijun
dcd84086f6
refactor(core): slonik error handling ( #307 )
2022-03-02 15:44:57 +08:00
Darcy Ye
16396cf231
test(core): add UTs for session routes ( #299 )
...
* test(core): add email not exists check to sign-in email code verification
* test(core): add remaining UTs except for /session/consent
* test(core): fix username validity check according to new username rules
* test(core): remove UT for /session/consent as an individual PR
* test(core): fix error code 500
2022-03-02 14:16:09 +08:00
IceHe.xyz
c5a9eef852
chore(core): fix typos ( #303 )
...
* chore(core): fix typos in routes/session.ts
* chore(core): fix typos in utils/password.ts
* chore(core): fix Connector typos
* chore(core): fix typos in connectors/utilities/aliyun.ts
* chore(core): fix 'custom' typos in database/update-where.test.ts
* chore(core): fix typos in middleware/koa-oidc-error-handler.ts
2022-03-02 12:24:07 +08:00
Wang Sijie
ba2b499637
test(core): session consent ( #304 )
2022-03-02 11:24:15 +08:00
Wang Sijie
4d7ea642a0
refactor(core): session tests ( #302 )
2022-03-01 17:03:41 +08:00
simeng-li
b03a666fde
ci(core): add codecov github action ( #297 )
...
* ci(core): add codecov github action
add codecov github action
* ci(core): update codecov uploader
update codecov uoloader
* ci(core): delete useless codecov yml
delete codecov yml
* chore(core): remove deprecated packages
remove deprecated pacakages
2022-03-01 11:05:25 +08:00
Wang Sijie
7af6973079
test(core): aliyun-dm ( #295 )
2022-03-01 11:04:20 +08:00
Gao Sun
f7925d9332
chore: upgrade configs and eslint ( #294 )
...
* chore: upgrade configs and eslint
* chore: update lockfile
* fix(ui): stylelint
2022-02-28 15:21:48 +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
Wang Sijie
c9400d0a4d
test(core): github and connector utilities ( #291 )
2022-02-28 06:27:45 +00:00
Xiao Yijun
3a583e81e4
fix(core): patch /users/:userId
should not fail if only name
or avatar
is provided
2022-02-28 13:18:17 +08:00
Xiao Yijun
755176e252
refactor(core): add regex for commonly used fields ( #288 )
2022-02-28 13:16:02 +08:00
Xiao Yijun
76aba43ae3
refactor(core): replace arbitrary data guard type with arbitrary object guard ( #290 )
2022-02-28 11:22:48 +08:00
Wang Sijie
94e583111d
test: session route ( #283 )
2022-02-25 07:09:20 +00:00
Darcy Ye
ddd695dd33
feat(core): enable pass redirectUri when sign-in with social ( #284 )
2022-02-25 14:52:38 +08:00
simeng-li
2109b7be31
test(core): add ut for application query ( #282 )
...
add ut for appliction query
2022-02-25 13:52:29 +08:00
Darcy Ye
5fa6e2b280
chore(core): username/phone/email validity checks to koaGuard middleware (in /session routes) ( #285 )
...
* feat(core): all username/phone/email validity checks are put in koaGuard middleware
* feat(core): remove unnecessary comments
* feat(core): unwrap unnecessary methods
2022-02-25 10:50:50 +08:00
Darcy Ye
bd6dc4261c
feat(core): get /session/register/:username/existence
( #275 )
...
* feat(core): add username existence check when resgitering
* feat(core): add username existence check
* feat(core): update username guard to avoid empty strings
2022-02-24 18:30:34 +08:00
Darcy Ye
75d2bb3e9b
feat(core): separate passwordless flow routes ( #280 )
...
* feat(core): separate passwordless flow routes
* feat(core): rename routes
* feat(core): wrap frequently called methods and rerank log assignment order
* feat(core): rerank log assignment order
2022-02-24 18:21:59 +08:00
Xiao Yijun
861833c01a
refactor(core): add prefix for password_encryption_method
( #281 )
2022-02-24 18:01:17 +08:00
Xiao Yijun
4144051cad
test(core): add ut for admin-user ( #279 )
2022-02-24 17:59:08 +08:00
Xiao Yijun
e63ca4c06f
feat(core): get /users
with search ( #270 )
2022-02-24 12:29:34 +08:00
Darcy Ye
89a185c845
chore(core): refactor sign-in routes ( #273 )
...
* chore(core): refactor sign-in routes
* feat(core): fix order of userLog assignments
2022-02-24 11:58:52 +08:00
Wang Sijie
be916b274c
test(session): test setup for session route ( #276 )
2022-02-23 17:23:21 +08:00
Wang Sijie
c033c5e4ec
chore: rename route for bind and sign in ( #277 )
2022-02-23 16:17:42 +08:00
Darcy Ye
fe0ece4e49
chore(core): hide settings default id ( #261 )
...
* chore(core): hide settings default id
* chore(core): fix patch /settings UT
2022-02-23 13:51:02 +08:00
simeng-li
d2b8aa9355
test(core): update the requester test utils ( #274 )
...
update the requester test utils
2022-02-23 11:09:26 +08:00
simeng-li
279318780e
test(oidc): add oidc adapter test case ( #266 )
...
add oidc adapter test case
2022-02-23 09:42:29 +08:00
simeng-li
4a80773b2d
feat(core): add koa user role guard middleware ( #255 )
...
* feat(core): add koa user role guard middleware
add user role guard middleware
* fix(core): resolve cr comments
remove getUserInfo
* fix(cr): cr fix
cr fix
2022-02-23 09:41:55 +08:00
Darcy Ye
ab4beadd70
chore(core): refactor register codes ( #271 )
...
* chore(core): refactor register routes
* chore(core): remove unnecessary lib/register
* chore(core): fix
2022-02-22 22:12:38 +08:00
Gao Sun
b31e90dab2
refactor(core): use custom koa-router
types ( #267 )
2022-02-22 08:33:55 +00:00
Wang Sijie
9ffe12ad0d
chore: make connectorInstance.connector non-nullable ( #268 )
2022-02-22 16:01:47 +08:00
Wang Sijie
bdee44a6b9
feat: continue to register with social ( #249 )
...
* feat: continue to register with social
* feat: bind social account (#259 )
* feat: continue to register with social
* feat: bind social account
* feat: find social related user and sign in (#258 )
2022-02-22 08:01:32 +00:00
simeng-li
d58b29f4a9
test(core): add ut for core routers ( #262 )
...
add ut for core router
2022-02-21 16:42:48 +08:00
simeng-li
7488bc7e17
test(core): add ut for util methods ( #264 )
...
add ut for util methods
2022-02-21 16:42:17 +08:00
simeng-li
8fa169cba1
test(core): add admin-user route UT ( #252 )
...
* test(core): add admin-user route ut
add admin-user route ut
* fix(ut): remove redundent code
remove mockKoaAuthMiddleware
* feat(core): update pnpm.lock
update pnpm.lock
2022-02-21 10:45:31 +08:00
Gao Sun
47ccb4da02
refactor(ui): integrate new ui ( #260 )
2022-02-20 14:12:07 +08:00
Xiao Yijun
5731d7389d
refactor(core): remove user route ( #254 )
2022-02-18 17:56:44 +08:00
Xiao Yijun
9e30b41028
feat(core): delete user and update user password api ( #248 )
2022-02-18 17:02:08 +08:00
simeng-li
9c3f017704
test(core): add more middleware tests [2 of 2] ( #247 )
...
* test(core): add more middleware tests
add more middleware tests
* fix(ut): fix koaUserInfo ut
fix koaUserInfo ut
* fix(ut): fix ut
fix ut
* fix(ut): revert chagnes
revert changes
* fix(ut): fix ut fail after schema update bug
fix ut fail after schema update bug
2022-02-18 16:25:32 +08:00
Xiao Yijun
77b520deba
feat(core): patch /users/:userId
( #246 )
2022-02-18 14:34:22 +08:00
Darcy Ye
c99c6b55aa
feat(core): separate sessionRoutes by flow types ( #235 )
...
* feat(core): separate sessionRoute by use cases as well as flow types
* feat(core): fix API calls in UI accordingly
* feat(core): fix lint errors
2022-02-18 12:31:15 +08:00
simeng-li
c8d45a13f0
test(core): add middleware tests [1 of 2] ( #244 )
...
* test(core): add middleware tests
add middleware tests
* fix(ut): fix typo
fix typo
2022-02-17 14:21:29 +08:00
Xiao Yijun
c1c356c30a
feat(core): delete users/:userid/custom-data
( #233 )
2022-02-17 14:10:26 +08:00
Wang Sijie
46dd8f3b69
chore: connector error ( #242 )
2022-02-17 11:09:27 +08:00
Gao Sun
13f6b59ad4
chore: upgrade configs ( #243 )
2022-02-16 19:06:58 +08:00
Xiao Yijun
d69bbeebb2
feat(core): patch /user/:userId/custom-data
( #232 )
2022-02-16 18:06:08 +08:00
Xiao Yijun
56c9f00440
feat(core): post /users
( #238 )
2022-02-16 16:34:32 +08:00
Xiao Yijun
dd55c66644
feat(core): get ( #236 )
2022-02-16 15:56:51 +08:00
Xiao Yijun
ee49880845
feat(core): get /users
( #237 )
2022-02-16 15:55:08 +08:00
Gao Sun
eb319a3b89
refactor: upgrade TypeScript ( #241 )
2022-02-16 15:17:43 +08:00
Wang Sijie
e206dfcecb
fix: connector_id_mismatch and mergeWithLastSubmission ( #240 )
2022-02-16 14:43:01 +08:00
simeng-li
080bee6935
test(i18n): add detectLanguage util test ( #231 )
...
add detectLanguage util test
2022-02-16 10:26:16 +08:00
simeng-li
af89e9ac30
test(core): add ut for app ( #227 )
...
* test(core): add ut for app
add ut for app
* fix(jest): remove jest setup
remove jest setup
* fix(ut): mock env viriables
mock env viriables
* refactor(ut): add env variable test utils
add env variable test util
* fix(core): fix rebase issue
fix rebase issue
* fix(ut): update app ut
update app ut
* fix(core): remove supertest dependency
remove supertest
* fix(ut): cr fix
cr fix
2022-02-15 18:36:57 +08:00
simeng-li
108705076f
test(ut): add error type ut ( #229 )
...
add error type ut
2022-02-15 18:11:23 +08:00
Wang Sijie
34e540d3ed
feat: continue social sign in ( #223 )
...
* feat: social sign in
* feat: social register
* feat: continue social sign in
2022-02-15 17:40:47 +08:00
Xiao Yijun
e8cbe00d3a
feat(core): add custom_data
to the user schema ( #230 )
2022-02-15 16:59:28 +08:00
simeng-li
86ce5a9640
fix(core): align resource_identifier namespace with OIDC provider ( #224 )
...
* fix(core): align resource_identifier namespace with OIDC provider
replace resource identifier name with resource_indicator
align the usage with OIDC Provider
* fix(cr): cr fix
add empty line
2022-02-15 16:13:41 +08:00
simeng-li
4325007398
refactor(core): throw error on pagination middleware ( #228 )
...
throw internal error if no totalCount returned
2022-02-15 10:58:21 +08:00
Wang Sijie
a9b5dd6cbd
feat: update social info on sign in ( #225 )
2022-02-14 16:11:42 +08:00
Wang Sijie
e8c2b100a3
feat: set profiles from social connector ( #226 )
2022-02-14 16:03:13 +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
78cc86ec77
feat: social register ( #222 )
2022-02-14 03:11:34 +00:00
Darcy Ye
8249493c40
feat(core): add passwordless register flow of phone ( #221 )
...
* feat(phone passwordless): add passwordless register flow of phone
* feat(phone passwordless): add userId to both sign-in and register user logs
* feat(phone passwordless): add register error descriptions
* feat(core): update error descriptions and leave redundancy error descriptions for later changes
2022-02-14 10:44:46 +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
e7458f8a2b
feat(schema): user identities ( #215 )
2022-02-09 12:55:06 +08:00
Wang Sijie
77ca86cac6
feat(core): register with email ( #212 )
2022-02-08 20:15:36 +08:00
simeng-li
a5c9bf61d7
refactor(core): add OIDCRequestError ( #214 )
...
* refactor(core): add OIDCRequestError
inplement OIDCRequestError to normalize OIDCProviderError
* fix(coer): cr fix
code review update
2022-02-08 15:31:16 +08:00
simeng-li
eac74fae40
fix(core): hard code resource access_token format ( #216 )
2022-02-08 14:06:13 +08:00
Wang Sijie
fd1810592b
feat(core): check email exist before sending code ( #211 )
2022-02-07 06:14:42 +00:00
simeng-li
3d550b74dd
feat(core): allow jsonb partial update ( #210 )
...
* refactor(core): allow jsonb partial update
allow jsonb partial update
* fix(core): add comments
add comments
* fix(core): add non-nullable case
add non-nullable case assertation
* fix(core): use coalesce
use coalesce
* test(core): add ut
add ut
`
2022-02-04 12:19:59 +08: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
Wang Sijie
3cb1cae486
fix(aliyun): skip undefined fields ( #208 )
2022-01-29 17:11:57 +08:00
Darcy Ye
30ce91810f
feat(aliyun sms connector): add aliyun sms connector ( #203 )
...
* chore(SMS connector): add SMS connector and UT
* feat(Aliyun SMS): remove redundancy
* chore(Aliyun SMS connector): merge duplicates and fix accordingly
2022-01-29 16:48:34 +08:00
Wang Sijie
ffeabbedcf
fix(passcode): use interaction_jti instead of session_id ( #207 )
2022-01-29 15:30:50 +08:00
Wang Sijie
2b55c85b5a
fix(aliyun-dm): validate config before sending ( #206 )
2022-01-29 14:55:42 +08:00
Wang Sijie
ddb9968c98
feat: verifyPasscode ( #201 )
...
* fix: consume
* feat: sendPasscode
* feat: verifyPasscode
2022-01-29 14:02:54 +08:00
Wang Sijie
02491adb5d
feat: sendPasscode ( #200 )
...
* fix: consume
* feat: sendPasscode
2022-01-28 07:39:38 +00:00
simeng-li
0105d19d99
feat(core): add user roles related api ( #204 )
...
* feat(core): add user role related api
add user roles related api
* fix: insert array to db fix
insert array to db fix
* feat(core): add role related routes config
add role related routes config
* fix(core): update user role patch error type
update user role patch error type
* fix(core): cr fix
cr fix
* fix(core): cr fix
cr fix
* fix(core): cr fix
cr fix
2022-01-28 13:33:57 +08:00
Wang Sijie
ea2bfd6d45
feat(core): createPasscode ( #199 )
...
* feat: createPasscode
* test: passcode UT
* fix: consume
* fix: multiple unconsumed passcodes
* fix: pr
* fix: lint
2022-01-28 11:04:38 +08:00
Charles Zhao
f30cae7377
chore: upgrade eslint-config to v0.6.1
2022-01-27 19:26:34 +08:00
simeng-li
9f23dbbb2a
feat(schema): add roles table ( #202 )
...
* feat(schema): add roles table
add roles table
* fix(chema): ci fix
ci fix
* fix(cr): cr fix
- rename userRoles to roleNames
- rename role table colmn name
* fix(ut): fix ut
fix ut
2022-01-27 10:48:55 +08:00
Wang Sijie
5c428efa78
feat: user register ( #196 )
2022-01-26 13:21:45 +08:00
simeng-li
37f2bab9c0
feat(core): add sign-in experience query and api ( #197 )
...
* feat(core): add sign-in experience query and api
add sign-in experience query and api
* fix(core): cr update of sign-in-experience apis
- remove unused queries
- replace hardcoded 'default' id filtering, use pool.one method instead
2022-01-26 11:07:45 +08:00
Darcy Ye
871789e763
chore: align routers return process of updating DB ( #193 )
...
* chore: align routers return process of updating DB
* chore: align connector router output
2022-01-25 13:47:12 +08:00
Wang Sijie
67843f45db
fix(database): insertKeys filtering ( #194 )
...
* fix(database): insertKeys filtering
* fix: tests
2022-01-25 13:34:20 +08:00