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
Wang Sijie
7d182e2b46
fix: initConnector use hasConnector ( #195 )
2022-01-25 11:32:05 +08:00
Darcy Ye
9dc0ea32c0
feat(connector): connector queries and APIs ( #178 )
...
* feat(connector): connector queries and APIs
* chore(connectors): remove type from DB schema design and fix code accordingly
* chore(connectors): put connector as ConnectorInstance's property
* chore(connector): put connector as optional property of ConnectorInstance
2022-01-24 14:40:15 +08:00
simeng-li
93df7db2ca
refactor(core): enable userinfo endpoint and resource scope consent ( #187 )
...
* refactor(core): enable userinfo endpoint and resource scope consent
enable userinfo endpoint and resource scope consent
* fix(core): cr fix add comment
add comment for useGrantedResource settigns reference
2022-01-24 10:13:18 +08:00
Wang Sijie
d78aa07f7e
feat(github): getUserInfo ( #188 )
...
* feat(github): getUserInfo
* fix: pr
2022-01-21 12:47:14 +00:00
Wang Sijie
872b1d6450
feat(github): validateConfig ( #189 )
2022-01-21 20:37:12 +08:00
Wang Sijie
aaa6f4dcc2
feat(github): getAccessToken ( #186 )
...
* feat(github): getAccessToken
* fix: pr
2022-01-21 07:26:14 +00:00
Wang Sijie
ea756752e8
feat(github): getAuthorizeUri ( #185 )
...
* feat(github): getAuthorizeUri
* fix: authorizationEndpoint
2022-01-21 13:50:40 +08:00
Wang Sijie
81aaa4a083
feat(aliyun-dm): test message template ( #183 )
...
* feat(aliyun-dm): test message template
* fix: remove test template
2022-01-20 15:34:46 +08:00
Wang Sijie
764de712d7
feat(aliyun-dm): validate config ( #184 )
...
* feat(aliyun-dm): validate config
* fix: use zod
2022-01-20 10:54:04 +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
d88db54961
feat(core): add resource apis ( #180 )
...
* feat(core): add resource apis
add resource apis
* fix(core): resources api CR fix
CR fix of resoruces API
* fix(core): resource api cr fix
remove unnesessary input params destructor
2022-01-18 09:20:49 +08:00
Wang Sijie
49581d924e
feat: aliyun direct mail connector ( #175 )
...
* feat: aliyun direct mail
* fix: email
* fix: pr fix
* refactor: use got instead of axios
* refactor: move aliyun to utilities
* fix: pr
* fix: pr
* fix: pr
2022-01-17 13:49:29 +08:00
Wang Sijie
a77149bb8b
feat: connector i18n ( #171 )
...
* feat: connector i18n
* fix: language key
2022-01-17 02:58:45 +00:00
simeng-li
492724a575
refactor(core): resources related db query cleanup ( #179 )
...
* refactor(core): resources related db query cleanup
clean resourece & scopes db queries
* refactor(core): rename resources and scopes query file name
rename plural filename
2022-01-14 11:54:09 +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
dfaf79bc5f
feat(settings): add settings related queries and apis ( #174 )
...
* feat(settings): add settings related queries and APIs
* feat: correct setting router type
* chore: hide settingId from response
* chore: reset default settingId for better readability
* chore: fix input params check
2022-01-13 20:05:14 +08:00
simeng-li
f218667ba4
feat(application): add application query exceptions ( #172 )
...
* feat(application): add application query exceptions
add application query exceptions
* fix(core): cr fix remove query level exception
remove application query level exception handle logic
* fix(core): delete application query throw slonikError
delete application query throw slonikError
2022-01-13 16:02:28 +08:00
simeng-li
77be675bfb
feat(application): set idToken and refreshToken ttl based on client metadata ( #176 )
...
* feat(application): set idtoken and refresh token ttl based on client metadata
add idToken and refreshToken ttl metadata
* fix(application): cr fix
cr fix add default constant & set custom client metadata not null
2022-01-13 14:15:13 +08:00
Wang Sijie
59cd617b2b
feat: updateConnectorConfig ( #168 )
...
* feat: updateConnectorConfig
* fix: throw RequestError
* feat: template
2022-01-12 08:58:07 +00:00
Darcy Ye
6e9cabe50b
chore: rename all \w+DBEntry
as \w+Update
to eliminate understanding ( #173 )
2022-01-12 16:22:33 +08:00
simeng-li
3690265122
feat(applications): add pagination middleware to findAllApplications ( #170 )
...
* feat(applications): add pagination middleware to findAllApllications
add pagination middleware to findAllApllications
* fix(core): remove get applications offset check
remove get applications offset check. use db query error
* fix(application): cr fix use buildFindMany
use buildFindMany for paginated find applications query
2022-01-11 08:37:09 +00:00
Wang Sijie
c37354d42d
feat: init connectors ( #166 )
...
* feat: init connectors
* chore: optional in getConnectorById
Co-authored-by: Gao Sun <gao@silverhand.io>
* chore: pr fix
* chore: pr fix
* chore: fix PR
Co-authored-by: Gao Sun <gao@silverhand.io>
2022-01-11 16:26:54 +08:00
simeng-li
b9f9847ec0
feat(schema): update application db ( #169 )
...
* feat(schema): update appliaction db
update application db
* ci(schema): cr fix application table schema typo
fix application table schema typo
2022-01-11 11:58:58 +08:00
simeng-li
aafc258ad9
ci(codecov): add jest coverage report ( #167 )
...
* ci(codecov): add jest coverage report
add coverage report on core and ui project
add codecov uploader job
* ci: add report upload github workflow action
add report upload github workflow action
* ci: fix ci replace github test actions with test:report
fix ci replace github test actions with test:report
2022-01-10 10:04:00 +08:00
Wang Sijie
e8908c3b24
feat: buildFindMany ( #159 )
2022-01-07 14:54:32 +08:00
IceHe.xyz
a66abbc251
Revert "chore: update silverhand/configs dependency and fix the scope of eslint-disable rule ( #157 )" ( #162 )
...
This reverts commit 7ff8550845
.
2021-12-29 03:56:55 +00:00
Darcy Ye
7ff8550845
chore: update silverhand/configs dependency and fix the scope of eslint-disable rule ( #157 )
...
* chore: fix the scope of eslint-disable rule
* chore: update silverhand/configs to v0.5.0 and fix linting error accordingly
* chore: fix linting error
2021-12-29 11:05:06 +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
1fc73030e8
feat(core): sign in logs ( #139 )
...
* fix(core): add log result type
* fix: comments in sql
* feat(core): sign in log
* refactor: insert error log in middleware
* fix: pr fix
* feat: userLog middleware
* refactor: auto capture log
* fix: pr fix
* fix: pr fix
2021-12-08 15:56:57 +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
Xiao Yijun
b133b30b90
refactor(core): rename context
to ctx
in test file ( #153 )
2021-12-07 10:48:58 +08:00
Xiao Yijun
f672f34b5c
refactor: disable eslint rule for entire describe
in koa-pagination.test.ts
( #152 )
2021-12-06 17:41:30 +08:00
Xiao Yijun
bb04df5a09
refactor(core): replace querystring
with query-string
( #151 )
2021-12-06 17:32:31 +08:00
Xiao Yijun
e63e5bae4e
feat(core): support trusting TLS offloading proxies config
2021-12-03 14:04:30 +08:00
simeng-li
a56d4ce026
feat: implement getResourceIndicators logic ( #146 )
...
* fix(schema): fix typo remove trailing comma
fix typo remove trailing comma
* feat(core): add resouce server query logic
add resource server & scopes query logic to oidc-provider resourceIndicator feature config
* fix(chore): scope should join with scopes.name
fix scope name join format bug
* fix(core): cr fix use pool.any replace pool.many
use pool.any replace pool.many
2021-12-02 14:08:15 +08:00
simeng-li
6d5dd55e12
refactor: implement koaUser middleware
...
* refactor: extract code block of getting detailed user info in koaAuth as middleware koaUser
* refactor: fix according to comments
* refactor: fix methods' and properties' naming
2021-12-02 11:43:04 +08:00
simeng-li
18a142ab65
feat(schema): add resource and scope table ( #145 )
...
* feat(schema): add resource and scope table
implement resource-servers and resource-scopes table with some basic queries
* fix(schema): remove scope update querie
not allowed to update scope once created
* feat(schema): add resourceId foreign key to the scope table
add resourceId foreign key to the scope table
* fix(schema): remove trailling comma
remove trailling comma
* fix(schema): cr fix replace resource-servers table name using resources
replace resource-servers table name using resources
2021-12-01 11:41:16 +08:00
Wang Sijie
838ae3fad9
feat: add koa-pagination ( #143 )
...
* feat: add koa-pagination
* fix: pr fix
2021-11-30 11:06:50 +08:00
Xiao Yijun
a234f00269
chore(core): fix comment mistake
2021-11-19 16:04:40 +08:00
Wang Sijie
3480d05366
refactor(core): encryptUserPassword ( #135 )
2021-11-18 16:29:24 +08:00
Wang Sijie
7d7b8112f6
refactor(core): use plural in endpoint ( #134 )
2021-11-18 11:26:51 +08:00
Wang Sijie
9c3b67ae46
feat(core): users basic API ( #133 )
2021-11-18 11:26:34 +08:00
simeng-li
6d5b9e5bcc
chore(chore): bump oidc-provider version ( #132 )
...
bump oidc-provider version to 7.10.0 to remove the 16.+ node warnings
2021-11-15 11:02:24 +08:00
simeng-li
ee2d1bf535
chore(core): throw out oidc-provider error ( #128 )
...
In order to display detailed error on the page
we need to throw the oidc-provider error out
and catched by koa-error-handler
2021-10-12 17:57:22 +08:00
Gao Sun
5f60fe491a
fix(core): snakecase OIDC client metadata keys ( #127 )
2021-10-12 17:27:11 +08:00
Gao Sun
9aa4caa826
refactor(core): fulfill correct applicationType
when needed ( #126 )
...
* refactor(core): fulfill correct `applicationType` when needed
* refactor(core): use enum for application type
* refactor(core): do not filter undefined automatically
2021-10-11 09:55:17 +00:00
Gao Sun
0b23a5a793
fix: use port 5001 for ui dev ( #125 )
2021-10-08 14:10:44 +08:00
Gao Sun
1c3338f657
fix(core): load dist files when needed ( #123 )
2021-09-28 12:45:04 +08:00
simeng-li
4ea5f65982
fix(core): add redirectURI to the response body of register endpoint /user ( #119 )
...
* fix(ui): hide loading status
should hide loading status while a http error is thrown
* fix(ui): use api-hooks for consent request
integrate api-hooks for the consent page request
* fix(ui): add redirectURI to the response body of register endpoint
Fix the use registration flow, should redirect after a success registration callback
2021-09-24 17:00:26 +08:00
Gao Sun
7c69896126
refactor: @logto/essentials
-> @silverhand/essentials
( #118 )
...
* refactor: `@logto/essentials` -> `@silverhand/essentials`
* chore: remove useless comment
2021-09-16 23:48:06 +08:00
Gao Sun
5ccf903b4a
chore: upgrade configs ( #117 )
2021-09-16 16:54:32 +08:00
Gao Sun
7dfa31d86c
chore(core): upgrade oidc-provider
( #116 )
2021-09-15 15:57:32 +08:00
Gao Sun
2c93ef9237
chore: upgrade configs ( #114 )
2021-09-08 14:13:42 +08:00
Gao Sun
8e291b51bf
test(core): add unit tests for generateUserId()
( #113 )
2021-09-08 10:29:14 +08:00
Gao Sun
7ae7912642
refactor: adopt new ESLint rule set for FP ( #111 )
2021-09-07 20:24:27 +08:00
Gao Sun
af942d2027
feat(core): add status api and health check after deployment ( #110 )
2021-09-06 10:40:06 +08:00
Gao Sun
5b36355537
test(core): add unit tests for database insert into factory ( #109 )
2021-09-06 10:39:39 +08:00
Gao Sun
ed204f91c5
feat(core): GET /applications
( #107 )
2021-09-01 20:51:34 +08:00
Gao Sun
5d5d43deee
feat(core): GET /application/:id
( #106 )
2021-09-01 18:23:53 +08:00
Gao Sun
9ccb66ddfd
refactor(core): update per comments
2021-09-01 17:52:55 +08:00
Gao Sun
7c6602a1ac
refactor(core): fixing router types
2021-09-01 17:35:23 +08:00
Gao Sun
43456aae9b
feat(core): detect language from querystring and header
2021-09-01 17:08:28 +08:00
Gao Sun
806e99de61
refactor: replace plain assert
with a more strict version ( #103 )
2021-08-31 22:45:28 +08:00
Gao Sun
00c8211160
chore: upgrade configs ( #102 )
2021-08-31 21:03:13 +08:00
Gao Sun
635fa92853
test(core): add tests for database insert-into.ts
( #99 )
2021-08-31 00:48:33 +08:00
Gao Sun
bb040cbeee
chore: enforce default export name on React files ( #101 )
2021-08-30 22:28:08 +08:00
Gao Sun
4be1bd3cad
chore: lint-staged
for all packages ( #100 )
2021-08-30 22:26:58 +08:00
Gao Sun
ea4cfd0e59
chore: update eslint config ( #98 )
2021-08-30 11:30:54 +08:00
Gao Sun
1352cce911
test(core): add unit tests for database utils ( #95 )
...
* test(core): add unit tests for database utils
* test(core): add tests for `conditionalSql()`
2021-08-28 21:48:06 +08:00
Gao Sun
625520d75a
refactor: throw an error when requesting invalid scope ( #94 )
2021-08-28 10:50:38 +08:00
Gao Sun
4694c0d5ce
refactor: use 404 when not found
2021-08-27 17:13:49 +08:00
Gao Sun
6b6210feee
feat: PATCH /application/:id
2021-08-27 17:07:15 +08:00
Gao Sun
334cc5903a
refactor: accept rest data while creating application
2021-08-27 17:07:11 +08:00
Gao Sun
8902d66bde
refactor(core): database insert.ts
-> insert-into.ts
( #92 )
2021-08-27 12:47:55 +08:00
Gao Sun
ee1133cf49
Merge pull request #87 from logto-io/gao-log-22
2021-08-26 13:39:55 +08:00
Gao Sun
4973053fda
refactor: integrate zod in schemas ( #90 )
2021-08-26 13:05:23 +08:00
Gao Sun
a918a0ce8d
fix(core): bearerToken
-> bearerTokenIdentifier
2021-08-25 23:42:03 +08:00
Gao Sun
af11f18e40
feat: DELETE /application/:id
2021-08-25 23:42:03 +08:00
simeng-li
b1bf5eccf0
feat: (ui) Read and show error from API response ( #84 )
...
Implemet useApi hooks to handle client side request
read loading & error status from the useApi hook
2021-08-23 21:29:58 +08:00
Gao Sun
58b8ac3957
refactor: use composite run steps and remove eslint formatter
2021-08-20 18:16:00 +08:00
Gao Sun
cd57fe8866
feat(core): setup jest
2021-08-20 14:53:23 +08:00
Gao Sun
f48534ed18
refactor: unify timestamp usage
2021-08-18 16:36:52 +08:00
Gao Sun
6f604f40c2
refactor: improved error code of buildInsertInto()
2021-08-18 11:54:05 +08:00
Gao Sun
acc2031e82
refactor: update SchemaValuePrimitive
and add docs for convertToPrimitive()
2021-08-18 00:45:46 +08:00
Gao Sun
b192b7d17c
feat: POST /applicaiton
2021-08-18 00:24:00 +08:00
Gao Sun
acd8157a0d
feat: validate access token if needed
2021-08-15 23:39:03 +08:00
Gao Sun
bb7c8184f7
feat: init application api
2021-08-14 21:39:37 +08:00
Gao Sun
96bf7cee77
refactor(core): re-org files
2021-08-12 19:39:28 +08:00
simeng-li
a3a2624c5b
Merge pull request #75 from logto-io/simeng-api-schema
...
refactor(core): move api errorType to schemas package flow
2021-08-11 23:12:02 +08:00
Gao Sun
b457d95a9e
refactor: conform RESTful convention ( #77 )
...
* refactor: conform RESTful convention
* refactor: update tests
2021-08-11 22:13:08 +08:00
Gao Sun
c58194dd6e
chore: add MPL-2.0 license ( #76 )
2021-08-11 22:12:36 +08:00
Simeng Li
754b9ea872
refactor: move error types to schema bundle
...
move error types to schema bundle
2021-08-11 21:04:12 +08:00
Gao Sun
a86f57a466
refactor: remove oidc_client_id
2021-08-10 21:26:49 +08:00
Gao Sun
89cf297eff
refactor(core): adopt new schemas
2021-08-10 21:11:52 +08:00
Gao Sun
2c6a64892a
chore: add preinstall script to packages
2021-08-10 15:29:32 +08:00
Gao Sun
9c6b4fc636
Merge pull request #56 from logto-io/gao--add-https-support
...
feat: add https support
2021-07-31 16:28:00 +08:00
Gao Sun
745cd22c16
feat: add https support
2021-07-31 02:12:47 +08:00
Gao Sun
1be7919545
chore(core): fixing ui proxy next()
usage
2021-07-30 22:20:53 +08:00
Gao Sun
e5d49504ac
refactor(core): align next()
usage and add prod mode for ui proxy
2021-07-30 02:21:47 +08:00
Gao Sun
4eb8d93d56
chore: yarn -> pnpm
2021-07-29 17:46:28 +08:00
Gao Sun
b8956c6ab5
chore: cleanup useless scripts
2021-07-29 01:42:14 +08:00
Gao Sun
5f2c9ef840
chore(core): remove resource indicator
2021-07-28 20:35:36 +08:00
Gao Sun
590dd7d858
feat(phrases): add package and refactor error code
2021-07-28 01:13:51 +08:00
Gao Sun
94c5115bb0
feat(sign-in): replace id with username
2021-07-26 22:32:18 +08:00
Gao Sun
13b516dccb
refactor: unify dev script
2021-07-26 22:04:32 +08:00
Gao Sun
6c00d40aeb
refactor: use yarn workspace
2021-07-26 10:54:13 +08:00
Gao Sun
96474fed87
chore: upgrade eslint config
2021-07-26 00:18:45 +08:00
Gao Sun
48dc40e139
chore: update README
2021-07-25 22:44:07 +08:00
Gao Sun
9752dacf85
chore: unify dep and version
2021-07-25 22:36:22 +08:00
Gao Sun
77712167ba
chore: fix core package name
2021-07-25 22:28:42 +08:00
Gao Sun
a4fe321233
chore: add lint-staged precommit hook
2021-07-25 22:27:51 +08:00
Gao Sun
e64fff0a35
refactor: using monorepo
2021-07-25 21:58:27 +08:00
Gao Sun
f422c3ae3f
refactor: refine sign-in errors
2021-07-25 17:39:59 +08:00
Gao Sun
405513c977
feat: add default resource
2021-07-25 17:39:59 +08:00
Gao Sun
6031b8a683
feat: auto-gen api doc
2021-07-25 17:39:59 +08:00
Gao Sun
b435414d91
refactor(routes): remove koa-compose
dep and save guard config in middleware
2021-07-25 17:39:59 +08:00
Gao Sun
869a2425a2
chore: update commit hooks
2021-07-25 17:39:59 +08:00
Gao Sun
b8c1da5ecc
chore: use shared config
2021-07-25 17:39:59 +08:00
Gao Sun
177c8d335e
docs: remove out-dated env sample
2021-07-25 17:39:58 +08:00
Gao Sun
8c95b5d856
refactor: read issuer from env and fallback to localhost
2021-07-25 17:39:58 +08:00
Gao Sun
3e58d991d8
chore: update engines
2021-07-25 17:39:58 +08:00
Gao Sun
aad158085e
chore: setup lint-staged
2021-07-25 17:39:58 +08:00
Gao Sun
0ee771bc33
fix: revert incorrect comments
2021-07-25 17:39:58 +08:00
Gao Sun
a7ab69ecd5
refactor: re-org RequestError files
2021-07-25 17:39:58 +08:00
Gao Sun
0356010ee3
feat: add /sign-in/abort
api, close #32
2021-07-25 17:39:58 +08:00
Gao Sun
9befa9c5f6
refactor: display oidc errors in json, close #34
2021-07-25 17:39:58 +08:00
Gao Sun
ae6e196f37
refactor: add guard and error handler middleware
2021-07-25 17:39:58 +08:00
Gao Sun
ce36754288
chore: upgrade schemas
2021-07-25 17:39:58 +08:00
Gao Sun
6639cb12df
feat: fetch client info from DB, close #3
2021-07-25 17:39:58 +08:00
Gao Sun
69015b5eee
chore: upgrade slonik
2021-07-25 17:39:58 +08:00
Gao Sun
f0f5ac111c
refactor: re-org OIDC adapter
2021-07-25 17:39:57 +08:00
Gao Sun
3231be014a
feat: adopt schemas v1.0.6
2021-07-25 17:39:57 +08:00
Gao Sun
916130b5fc
api: register with username / password
2021-07-25 17:39:57 +08:00
Gao Sun
b2c59b4e8e
chore: add post_logout_redirect_uris
2021-07-25 17:39:57 +08:00
Gao Sun
928a631bcc
api: add sign in / consent
2021-07-25 17:39:57 +08:00
Gao Sun
f419a91c5d
feat: sign in API via user id + password
2021-07-25 17:39:57 +08:00
Gao Sun
b1decc3706
refactor: use conditional()
from essentials
2021-07-25 17:39:57 +08:00
Gao Sun
ba1d171353
refactor: add @ path alias
2021-07-25 17:39:57 +08:00
Gao Sun
27590ec4ad
feat: pipe sign-in routes to playground url
2021-07-25 17:39:57 +08:00
Gao Sun
fca5482e5c
feat: redirect to configured sign in URL
2021-07-25 17:39:56 +08:00
Gao Sun
ef5dd51b51
feat: find user account from db, close #4
2021-07-25 17:39:56 +08:00
Gao Sun
cf2c73c094
Update README.md
2021-07-25 17:39:56 +08:00
Gao Sun
359a1b2857
feat: enable token introspection, close #2
2021-07-25 17:39:56 +08:00
Gao Sun
e7afe3e745
chore: add commitlint
2021-07-25 17:39:56 +08:00
Gao Sun
3196d8101a
Update README.md
2021-07-25 17:39:56 +08:00
Gao Sun
2723d9c49f
Enable token revocation and OIDC CORS
2021-07-25 17:39:56 +08:00
Gao Sun
fb25411d6f
Update config
2021-07-25 17:39:56 +08:00
Gao Sun
39b2fa80bd
Use essentials
2021-07-25 17:39:56 +08:00
Gao Sun
469256f93a
Provide OIDC jwk and reorg code
2021-07-25 17:39:56 +08:00
Gao Sun
65cd21377c
Optmize adapter upsert query
2021-07-25 17:39:56 +08:00
Gao Sun
b892c882be
Finish adapter
2021-07-25 17:39:56 +08:00
Gao Sun
bda284c99b
Init adapter
2021-07-25 17:39:55 +08:00
Gao Sun
2e79dd3d16
Require PKCE
2021-07-25 17:39:55 +08:00
Gao Sun
d3287976cc
Update package.json
2021-07-25 17:39:55 +08:00
Gao Sun
b0f8e929ad
Create main.yml
2021-07-25 17:39:55 +08:00
Gao Sun
48f02d9505
Specify yarn version
2021-07-25 17:39:55 +08:00
Gao Sun
8bcfe0478f
Mount odic-provider
2021-07-25 17:39:55 +08:00
Gao Sun
afcfd12d87
Initial commit
2021-07-25 17:39:55 +08:00