simeng-li
d5d6c5ed08
fix(core,ui): remove todo comments ( #1454 )
...
remove todo comments
2022-07-07 18:10:46 +08:00
Xiao Yijun
181e8a228d
chore(core): remove needless todo ( #1436 )
2022-07-06 16:27:12 +08:00
Gao Sun
6c323403b3
feat(core): auto sign-out ( #1369 )
...
* feat(core): auto sign-out
* fix(core): path when start from root
* refactor(core): per review
2022-07-02 13:55:22 +00:00
simeng-li
84aa0e866d
refactor(core): refactor root path ( #1352 )
...
* refactor(core): refactor root path
refactor root path
* fix(core): comment fix
comment fix
2022-07-01 10:00:08 +00:00
Darcy Ye
097aade2e2
feat(connectors): handle authorization callback parameters in each connector respectively ( #1166 )
...
* feat(connectors): handle authorization callback parameters in each connector respectively
2022-06-26 18:03:53 +08:00
simeng-li
b42f4ba1ff
feat(ac): implement admin console welcome page ( #1139 )
...
implement admin console welcome page
2022-06-20 10:58:27 +08:00
IceHe.xyz
a26299941f
feat(core): append page and page_size to the query parameters in swagger.json ( #1120 )
...
* feat(core): append page and page_size to the query parameters in swagger.json
* refactor(core): simplify hasPagination
* chore(core): add a comment to note why name the pagination middleware function
2022-06-15 15:13:04 +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
Darcy Ye
1b8190addf
feat(core): align connector error handler middleware with ConnectorErrorCodes ( #1063 )
...
* feat(core): align connector error handler middleware with ConnectorErrorCodes
* feat(phrases,core): fix locale error descriptions
2022-06-10 10:25:28 +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
Charles Zhao
fc35c5d8dc
refactor(core): remove unnecessary console.log
2022-06-07 22:46:56 +08:00
Charles Zhao
39b1d74cfd
Merge pull request #1068 from logto-io/charles-log-2740-koaAuth-should-return-403-on-non-admin-role
...
fix(core): koaAuth should return 403 instead of 401 on non-admin role
2022-06-07 22:43:58 +08:00
Charles Zhao
ee16eeb966
fix(core): koaAuth should return 403 instead of 401 on non-admin role
2022-06-07 19:13:40 +08:00
IceHe.xyz
2ba11215ed
feat(core): log error body ( #1065 )
2022-06-07 10:16:14 +00:00
Gao Sun
f2b44b49f9
feat: use user level custom data to save preferences ( #1045 )
...
* feat: use user level custom data to save preferences
* fix(console): bugs
* refactor(console): per review
* refactor(core): update return order
* fix(core): error constructor
2022-06-07 16:05:24 +08:00
Gao Sun
36c958a11d
refactor(core): recognize developer id in header ( #1031 )
2022-06-02 08:01:33 +00:00
Gao Sun
91e2f055f2
feat(demo-app): implementation (3/3) ( #1021 )
...
* feat(core): seed demo app for fresh DB
* feat(core): throw 404 when demo app deleted
* fix(core): import
* fix: lockfile
2022-06-02 07:32:46 +00:00
Charles Zhao
5a1fa14a98
fix(core): update roleNames to role_names to resolve 401 errors
2022-06-02 12:10:35 +08:00
Gao Sun
2812d6de46
refactor(core): serve static middleware ( #1010 )
...
* refactor(core): serve static middleware
* chore(deps): remove unused package
* refactor(core): per review
* fix(core): test
* refactor(core): using endsWith to detect index
2022-06-01 05:12:15 +00:00
simeng-li
545a3929e4
fix(core): fix preview session not found bug ( #970 )
...
* fix(core): fix preview session not found bug
fix preview session not found bug
* fix(core): cr fix
cr fix
2022-05-27 19:58:40 +08:00
simeng-li
909535f4af
fix(core): update proxy guard middleware ( #963 )
...
update proxy guard middleware
2022-05-26 16:54:40 +08:00
simeng-li
cf360b9c15
feat(core): add admin role validation to the koaAuth ( #920 )
...
* feat(core): add admin role validation to the koaAuth
add admin role validation to the koaAuth
* fix(core): cr fix
cr fix
2022-05-24 16:42:28 +08:00
Gao Sun
43d4fd23fd
refactor: remove AC client dependency ( #917 )
...
* refactor: remove AC client dependency
* refactor: admin console URL and management API indicator
* fix: typo
2022-05-23 11:18:48 +00:00
simeng-li
207c404aeb
feat(core): empty path sould redirect to the console page ( #915 )
...
* feat(core): empty path sould redirect to the console page
empty path should redirect to the console page
* fix(core): remove console log
remove console log
* fix(core): cr fix
cr fix
2022-05-22 10:32:04 +08:00
simeng-li
82674eea88
fix(core): disabled session check for preview mode ( #867 )
...
disabled session check for preview mode
2022-05-17 19:34:38 +08:00
simeng-li
5d34442018
fix(ui): fix sign-in not found bug ( #841 )
...
fix sign-in not found bug
2022-05-16 06:59:38 +00:00
simeng-li
78d3bb6045
refactor(ui): add session guard to ui page ( #803 )
...
* refactor(ui): add session guard to ui page
add session guard to ui page
* test(core): fix ut
fix ut
* fix(core): fix typo
fix typo
2022-05-16 05:43:23 +00:00
IceHe.xyz
38ceae7853
fix(core): catch interaction not found error ( #827 )
2022-05-15 13:20:07 +08:00
IceHe.xyz
4e60446411
feat(core,schemas): koaLogSession middleware ( #767 )
...
* feat(core,schemas): koaLogSession middleware
* fix(core): koa-log-session call next() first
* refactor(core,schemas): merge SessionLogPayload into BaseLogPayload
* refactor(core,schemas): rename logSession to addLogContext
2022-05-13 20:37:36 +08:00
Gao Sun
1a664beeee
ci: init integration test ( #771 )
...
* ci: init integration test
* ci: complete integration test setup
* ci: remove pull request trigger
2022-05-10 15:29:53 +08:00
IceHe.xyz
0ecb7e4d2f
feat(core,schemas): log IP and user agent ( #682 )
...
* feat(core,schemas): log IP and user agent
* refactor(core): extract initLog from koaLog
* refactor(core): log koa
log koa
* fix(core): rename
rename
* refactor(core): initLogger
Co-authored-by: simeng-li <simeng@silverhand.io>
2022-05-05 15:38:59 +08:00
IceHe.xyz
4521c3c8d1
feat(core,schemas): save application id that the user first consented ( #688 )
...
* feat(core,schemas): save application id which the user first consented
* chore(core): fix grammatical mistake and typos
2022-05-05 06:57:20 +00:00
Darcy Ye
c6f2546126
feat(core): fix connectors' initialization
2022-04-29 11:31:07 +08:00
IceHe.xyz
3aa4342f2e
feat(core,schemas): make it type-safer to log ( #656 )
2022-04-26 11:31:07 +08:00
renovate[bot]
88e58b8b0c
fix(deps): update dependency jose to v4 ( #646 )
...
* fix(deps): update dependency jose to v4
* fix(deps): update jose usage
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Gao Sun <gao@silverhand.io>
2022-04-24 13:55:47 +08:00
Gao Sun
ef60a474f6
refactor: allow start from project root ( #630 )
2022-04-24 12:12:48 +08:00
Gao Sun
6a62e32fa5
refactor(core): inquire when required env not found ( #586 )
...
* refactor(core): inquire when required env not found
* refactor(core): add comments for create DB pool
2022-04-21 16:13:59 +08:00
Gao Sun
dff23b57db
refactor(core): move database pool into env set
2022-04-20 15:56:38 +08:00
IceHe.xyz
d4e241b661
refactor(core): remove deprecated koa-user-log middleware ( #591 )
...
* refactor(core): remove koa-user-log middleware
* refactor(core): remove user-log queries
2022-04-20 15:11:43 +08:00
IceHe.xyz
4491eab5b4
feat(core): koa-log middleware ( #590 )
2022-04-20 06:56:33 +00:00
IceHe.xyz
0560928ca4
refactor(core): rename functions to avoid naming conflicts ( #588 )
2022-04-20 14:28:46 +08:00
Gao Sun
08ce66f317
refactor(core): use SSOT for env variables ( #578 )
...
* refactor(core): use SSOT for env variables
* fix(core): tests
2022-04-20 14:14:37 +08:00
IceHe.xyz
3da3309cbf
refactor(core,schemas): pascalcase enum keys ( #558 )
...
* refactor(schemas): pascalcase enum keys
* chore(core): pascalcase enum keys
2022-04-18 05:35:48 +00:00
IceHe.xyz
1ef04bd45d
refactor(core): clear mocks after each test ( #559 )
2022-04-18 12:50:49 +08:00
IceHe.xyz
5625b8838c
refactor(core): split mock.ts into __mocks__/*.ts ( #510 )
...
* chore(core,ui): coverage ignore src/__mocks__/
* chore(core): build excludes src/__mocks__/
* refactor(core): split mock.ts into __mocks__/*.ts
2022-04-08 09:47:09 +00:00
Wang Sijie
223b8a2444
feat(console): connector config ( #358 )
...
* feat(console): connector config
* fix(console): page layout issues
* feat(console): saved toast
* fix: style lint
Co-authored-by: Charles Zhao <charleszhao@silverhand.io>
2022-03-10 06:47:32 +00: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
Xiao Yijun
dcd84086f6
refactor(core): slonik error handling ( #307 )
2022-03-02 15:44:57 +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