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

512 commits

Author SHA1 Message Date
wangsijie
06ae2aff15
Revert "chore: merge master into sie-v2 (#2182)" (#2216) 2022-10-20 17:03:18 +08:00
wangsijie
2e5f332edc
feat(core): limit sign in method (#2213) 2022-10-20 15:36:50 +08:00
Gao Sun
365b80ab13
chore: update contributing (#2209) 2022-10-19 14:47:59 +00:00
Charles Zhao
103b80a84e
Merge pull request #2197 from logto-io/renovate/logto-connector-kit-1.x
fix(deps): update dependency @logto/connector-kit to v1.0.0-beta.19
2022-10-19 16:59:26 +08:00
silverhand-bot
c0fb59881e
release: v1.0.0-beta.12 2022-10-19 08:28:21 +00:00
Gao Sun
61336dfbc8
fix: handle versioning when no next-*.ts found (#2202) 2022-10-19 08:01:49 +00:00
Gao Sun
79c6c1de93
refactor: require database name in URL (#2198) 2022-10-19 07:38:56 +00:00
Gao Sun
582f3d6158
fix: add tables to schemas files 2022-10-19 15:15:24 +08:00
Gao Sun
e24fd0479b
fix: make packages public 2022-10-19 15:10:50 +08:00
renovate[bot]
91c047ed8b
fix(deps): update dependency @logto/connector-kit to v1.0.0-beta.19 2022-10-19 06:21:35 +00:00
silverhand-bot
33c10ce216
release: v1.0.0-beta.11 2022-10-19 06:19:36 +00:00
Xiao Yijun
e32b144369
chore: bump @logto/language-kit to v1.0.0-beta.19 (#2196) 2022-10-19 06:17:28 +00:00
wangsijie
e5f8139880
chore: merge master into sie-v2 (#2182)
Co-authored-by: Xiao Yijun <xiaoyijun@silverhand.io>
Co-authored-by: IceHe <icehe@silverhand.io>
Co-authored-by: Gao Sun <gao@silverhand.io>
Co-authored-by: simeng-li <simeng@silverhand.io>
Co-authored-by: Charles Zhao <charleszhao@silverhand.io>
Co-authored-by: Mahesh Vagicherla <59088937+b4s36t4@users.noreply.github.com>
Co-authored-by: FlurryNight <47457170+FlurryNight@users.noreply.github.com>
Co-authored-by: Lukas <lukas@slucky.de>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-18 15:44:49 +08:00
Gao Sun
9ebb3ddfd9
fix: alteration script in dev 2022-10-18 15:40:36 +08:00
Xiao Yijun
8bb82e981e
fix(schemas): field name in sie db data type should be camel-case (#2178)
Co-authored-by: wangsijie <wangsijie@silverhand.io>
2022-10-18 11:52:15 +08:00
Gao Sun
24f8afaf80
chore(deps): upgrade jest 2022-10-14 14:57:27 +08:00
renovate[bot]
9ac4a77b33
chore(deps): update dependency @silverhand/jest-config to v1.2.2 2022-10-14 05:59:40 +00:00
Gao Sun
39a5347ac9
chore: upgrade Silverhand configs (#2153) 2022-10-14 03:46:33 +00:00
Gao Sun
0fbe261a6e
chore: revert lerna version bump (#2150) 2022-10-13 22:50:16 +08:00
Gao Sun
5cf97af865
Merge pull request #2143 from logto-io/gao-fix-dev-script
refactor: fix dev script
2022-10-13 22:49:59 +08:00
Gao Sun
0843e8fdfc
refactor: fix dev script 2022-10-13 14:39:09 +08:00
Charles Zhao
c419e00dcb
chore: bump toolkit version and update color tokens 2022-10-13 13:17:19 +08:00
Gao Sun
c16970f450
chore: using pnpm workspace 2022-10-13 11:15:10 +08:00
Xiao Yijun
01fdc4ba11
refactor: remove deprecated fixedLanguage property from LanguageInfo (#2111) 2022-10-11 20:25:35 +08:00
Gao Sun
e36ed7bd1a
chore: upgrade essentials 2022-10-10 23:28:39 +08:00
Mahesh Vagicherla
4b0970b6d8
fix: add redirectURI validation on frontend & backend (#1874)
Co-authored-by: Charles Zhao <charleszhao@silverhand.io>
2022-10-10 21:20:20 +08:00
Gao Sun
696e7f181d
chore: merge branch 'master' into feature/manage-language 2022-10-10 15:52:06 +08:00
wangsijie
c67d4a382f
feat(schemas): add sie v2 alteration (#2077) 2022-10-10 14:04:00 +08:00
Gao Sun
7d7f5283ca
refactor(core): read OIDC configs from database 2022-10-09 17:22:34 +08:00
wangsijie
78eca37e87
feat(schemas): add sie2 schema (#2056) 2022-10-09 15:31:40 +08:00
Gao Sun
4134547cca
refactor(cli): flatten OIDC config keys 2022-10-09 15:16:19 +08:00
Gao Sun
911117a785
feat(cli): db seed oidc command 2022-10-08 23:27:43 +08:00
Gao Sun
9696060997
refactor: remove alteration from core 2022-10-08 17:34:58 +08:00
Gao Sun
5f61450400
Merge pull request #2050 from logto-io/gao-log-4314-cli-alteration-deploy-command
feat(cli): `db alteration deploy` command
2022-10-08 17:08:31 +08:00
Gao Sun
7412faa728
Merge pull request #2045 from logto-io/gao-log-4311-cli-db-key-command
feat(cli): get/set db config key
2022-10-08 16:22:19 +08:00
Gao Sun
a5280a2afd
feat(cli): db alteration deploy command 2022-10-07 19:48:17 +08:00
Gao Sun
441e9e9262
chore: fix package scripts (#2044) 2022-10-06 17:34:21 +08:00
Gao Sun
0eff1e3591
feat(cli): get/set db config key 2022-10-05 22:46:52 +08:00
Darcy Ye
753e8ebdfd
refactor(core,schemas): refactor log types with zod (#2034) 2022-09-30 03:48:12 +00:00
IceHe
3eb44e1e56
refactor(core,console,phrases,schemas): replace language key with language tag (#2026) 2022-09-30 10:30:32 +08:00
IceHe
bd0596f035
chore(schemas): add db alteration script to repair user created_at column by user logs (#2031) 2022-09-30 10:27:06 +08:00
IceHe
cce2d40160
refactor(core): count new users by created_at (#2027) 2022-09-29 15:32:43 +08:00
IceHe
a4cb138c12
refactor(core,phrases,schemas): validate fallback language before updating sign-in experience (#2023) 2022-09-29 15:28:58 +08:00
silverhand-bot
11381afdc5
release: v1.0.0-beta.10 2022-09-28 14:30:24 +00:00
IceHe
df18d87103
chore(schemas): add custom phrases database alteration script (#2016) 2022-09-27 09:15:56 +00:00
Gao Sun
2d069cbebf
refactor(schemas): auto update next alteration scripts (#2008)
* refactor(schemas): auto update next alteration scripts

* refactor(schemas): update eslint config

* refactor(core): log when alteration is done
2022-09-27 14:43:17 +08:00
wangsijie
10c1be6eb7
fix(core,schemas): move alteration types into schemas src (#2005) 2022-09-26 17:29:44 +08:00
wangsijie
2cb4091039
refactor(core,schemas): rename migration to alteration (#2002) 2022-09-26 16:38:27 +08:00
wangsijie
bb4bfd3d41
feat(core,schemas): use timestamp to version migrations 2022-09-26 11:27:12 +08:00
Gao Sun
082e82b3bf
refactor(schemas): decouple migration scripts 2022-09-23 15:03:32 +08:00
Gao Sun
b367cd3380
refactor(core): add migration scripts for #1973 2022-09-23 15:03:32 +08:00
wangsijie
c2aa427016
docs(schemas): add migration file readme (#1984) 2022-09-23 06:53:03 +00:00
Gao Sun
cd9c6978a3
feat(core): machine to machine apps 2022-09-22 22:12:16 +08:00
Darcy Ye
acdc86c856
feat(core): add POST /session/forgot-password/reset (#1972) 2022-09-22 03:30:45 +00:00
wangsijie
7cc2f4d142
feat(core,schemas): migration deploy cli (#1966) 2022-09-22 10:35:23 +08:00
Darcy Ye
1ea39f3463
feat(core): add POST /session/forgot-password/{email,sms}/verify-passcode (#1968) 2022-09-20 08:38:08 +00:00
Darcy Ye
af2600d828
feat(core): add POST /session/forgot-password/{email,sms}/send-passcode (#1963) 2022-09-20 14:14:27 +08:00
Charles Zhao
54892ea6d9
chore: bump toolkit to v1.0.0-beta.13 2022-09-19 17:16:19 +08:00
Charles Zhao
2f92b43864
fix: bump react sdk and essentials toolkit to support CJK characters in idToken 2022-09-17 09:59:27 +08:00
Gao Sun
42586eff88
refactor: remove shared packages (#1946)
* refactor: remove shared packages

* refactor: fix error
2022-09-16 11:25:43 +00:00
wangsijie
577ca48c07
feat(schemas): add logto configs table (#1940) 2022-09-15 17:39:49 +08:00
IceHe
7242aa8c2b
feat(core,schemas): add phrases schema and GET /custom-phrases/:languageKey route (#1905) 2022-09-13 17:36:37 +08:00
silverhand-bot
8335e1ff0a
release: v1.0.0-beta.9 2022-09-07 16:21:37 +00:00
Darcy Ye
2e0ab8988a
chore(schemas,core,console): rename ConnectorDto to ConnectorResponse (#1884) 2022-09-07 16:12:18 +08:00
Gao Sun
8c451b4e3c
chore: upgrade silverhand packages (#1854) 2022-09-01 17:03:49 +08:00
silverhand-bot
301bd23b49
release: v1.0.0-beta.8 2022-09-01 06:11:38 +00:00
Gao Sun
139dec727d
refactor: connector-core types (#1843)
* refactor: connector-core types

* refactor: fix rebase issues

* refactor: remove unused types

* refactor: fix connector error code

* refactor(core): add comments

* refactor: remove unused types
2022-09-01 04:21:42 +00:00
Wang Sijie
d952d8660d
refactor(phrases,shared,connector-core): move language key to shared (#1838) 2022-08-30 16:53:49 +08:00
silverhand-bot
3d92f35589
release: v1.0.0-beta.6 2022-08-30 05:44:34 +00:00
Wang Sijie
8db355287c
refactor(connector): apply new design (#1817)
* feat(core,connector-core): add connector core (#1803)

* feat(core,connector-core): add connector core

* fix: create connector function

* refactor(connector): change connectors dependency from connector-types to connector-core (#1812)

* refactor(connector,core): change the connectors dependency from connector-types to connector-core

* refactor(core): do not need to test validator for specific connector implementation

* refactor(connector): remove unnecessary code snippets

* refactor(connector): keep UT placeholder for passwordless connectors

Co-authored-by: wangsijie <wangsijie@silverhand.io>

* fix(core): fix IT description and undestructure error (#1818)

fix(connector): fix connector routes and IT typos

* fix(connector): remove @logto/connector-types as it will not be used anymore (#1819)

fix(connector): remove @logto/connector-types as it will not be used anymore

* chore(connector): rename db in logto connector (#1821)

chore(connector): rename LogtoConnector db to dbEntry

Co-authored-by: Darcy Ye <darcyye@silverhand.io>
2022-08-26 16:25:08 +08:00
Gao Sun
35a4b7289a
refactor: watch all packages when dev (#1796) 2022-08-22 14:58:39 +08:00
silverhand-bot
a9241c5862
release: v1.0.0-beta.5 2022-08-19 13:49:33 +00:00
Xiao Yijun
72e7341c3d
refactor(core): import getEnvAsStringArray from silverhand/essentials (#1787)
* refactor(core): import `getEnvAsStringArray` from `silverhand/essentials`

* chore: bump `@silverhand/essentials` to `1.2.0`
2022-08-17 11:40:50 +08:00
silverhand-bot
e42172e757
release: v1.0.0-beta.4 2022-08-11 13:48:19 +00:00
renovate[bot]
36530fd6ef
chore(deps): update dependency @types/jest to v28 (#1759)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-10 14:55:10 +08:00
IceHe.Life
cdf210df10
feat(schemas): guard string max length (#1737) 2022-08-10 06:10:19 +00:00
IceHe.Life
6327eb6c57
refactor(core,schemas,ui): fix non-consistent type definitions (#1742) 2022-08-05 23:42:16 +08:00
Gao Sun
08bea22195
chore(deps): upgrade packages (#1738)
* chore(deps): upgrade packages

* refactor: update per lint report

* chore(deps): upgrade configs

* fix(ui): lint rules compatibility

* chore: remove unused override

* chore(deps): upgrade jest config
2022-08-05 05:58:31 +00:00
Wang Sijie
543ee04f53
feat(core,schemas): add application secret (#1715) 2022-08-02 16:18:50 +08:00
silverhand-bot
1e568e02c9
release: v1.0.0-beta.3 2022-08-01 15:02:50 +00:00
silverhand-bot
c2050b7ccc
release: v1.0.0-beta.2 2022-07-25 17:03:50 +00:00
Gao Sun
0a3e0b2d66
chore(deps): upgrade ts-node (#1624) 2022-07-20 07:57:50 +00:00
silverhand-bot
3af4f547ed
release: v1.0.0-beta.1 2022-07-19 01:05:03 +00:00
Gao Sun
e7c5e63304
refactor: remove import react (#1558) 2022-07-15 10:01:42 +00:00
Gao Sun
6c39790180
feat(core): add response guard (#1542)
* feat(core): add response guard

* refactor(core): print error if not prod
2022-07-15 17:01:51 +08:00
silverhand-bot
af5e3b416e
release: v1.0.0-beta.0 2022-07-14 16:40:44 +00:00
Gao Sun
23a1fe3aff
refactor: upgrade configs (#1537)
* refactor: upgrade configs

* fix(schemas): remove eslintignore
2022-07-13 16:39:30 +00:00
renovate[bot]
1cddf81a78
chore(deps): update dependency @silverhand/ts-config to ^0.15.0 (#1528)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-13 11:29:10 +08:00
IceHe.xyz
434e97d5cf
chore: bump eslint-config and eslint-config-react 0.15.0 (#1521)
* chore: bump eslint-config 0.15.0

* chore: bump eslint-config-react 0.15.0

* style: no explicit any
2022-07-12 23:00:05 +08:00
Xiao Yijun
acefafed72
refactor: rename DTO -> Dto (#1522) 2022-07-12 18:35:51 +08:00
silverhand-bot
ca8ec4862a
release: v1.0.0-alpha.4 2022-07-08 16:49:39 +00:00
Gao Sun
81b63f07bb
feat: expose zod error (#1474) 2022-07-08 16:05:43 +08:00
silverhand-bot
c7def1124d
release: v1.0.0-alpha.3 2022-07-07 16:40:33 +00:00
Wang Sijie
741347f226
refactor(console,schemas,shared): extract dark mode color generator (#1425) 2022-07-07 05:59:27 +00:00
silverhand-bot
577433ae2d
release: v1.0.0-alpha.2 2022-07-07 04:54:25 +00:00
simeng-li
4d7a091d24
refactor(core): adjust access token ttl (#1430)
adjust access token ttl
2022-07-06 20:33:32 +08:00
simeng-li
be73dbf4ef
fix(ui): dark mode seed (#1426)
* fix(ui): add dark logo seed

add dark logo seed

* style(ui): adjust notifiction style

adjust notification style

* chore(schemas): set default seed dark mode disabled

set default seed dark mode disabled
2022-07-05 13:36:11 +00:00
silverhand-bot
fcd70d1232
release: v1.0.0-alpha.1 2022-07-05 12:34:34 +00:00
Gao Sun
273720ea8c
refactor(core): use ENDPOINT to replace original env urls (#1416)
* refactor(core): use `ENDPOINT` to replace original env urls

* refactor(core): log endpoint if needed

* refactor: update AC App ID in tests

* fix(core): oidc issuer

* refactor: remove unnecessary `.toString()`
2022-07-05 10:01:49 +00:00
silverhand-bot
6a83732185
release: v1.0.0-alpha.0 2022-07-04 14:58:52 +00:00
simeng-li
d649755c3e
refactor(ui): refactor default logo (#1402)
* refactor(ui): refactor default logo

refactor default logo

* fix(ui): default logo update

default logo update

* style(ui): add darkLogo

add darkLogo
2022-07-04 10:43:49 +00:00
Gao Sun
49498f457f
refactor: update demo app id (#1399) 2022-07-04 14:09:33 +08:00
silverhand-bot
2caed68c88
release: v0.1.2-alpha.5 2022-07-03 09:04:51 +00:00
silverhand-bot
2faf429e5b
release: v0.1.2-alpha.4 2022-07-03 08:33:26 +00:00
simeng-li
8c4fea093d
refactor(ui): refactor ac signin exp (#1367)
* refactor(ui): refactor ac signin exp

refactor ac signin exp

* fix(ui): adjust style

adjust style

* fix(ui): cr fix

cr fix
2022-07-03 15:50:29 +08:00
silverhand-bot
e588ba204a
release: v0.1.2-alpha.3 2022-07-03 06:54:10 +00:00
Gao Sun
5d35531cba
ci: add changelog to release (#1372) 2022-07-03 12:07:00 +08:00
silverhand-bot
2fa633a99b
release: v0.1.2-alpha.2 2022-07-02 09:11:16 +00:00
silverhand-bot
e234f64cec
release: v0.1.2-alpha.1 2022-07-02 04:24:46 +00:00
silverhand-bot
9396808fa4
release: v0.1.2-alpha.0 2022-07-02 02:29:37 +00:00
Charles Zhao
a3f42413e9
refactor: get-started task corresponding keys in DB 2022-07-02 09:53:11 +08:00
silverhand-bot
39890c1c29
release: v0.1.1-alpha.0 2022-07-01 19:18:23 +00:00
Gao Sun
b77ba0e0fa
refactor(schemas): update sie seed dark primary color (#1307) 2022-06-29 23:19:55 +08:00
Wang Sijie
f72b21d160
feat(console,ui): generate dark mode color in console (#1231)
* feat(console,ui): generate dark mode color in console

* fix: cr fix

Co-authored-by: Gao Sun <gao@silverhand.io>

Co-authored-by: Gao Sun <gao@silverhand.io>
2022-06-29 07:56:05 +00:00
simeng-li
6865efff27
refactor(ui): refactor app notification logic (#1241)
refactor app notification logic
2022-06-27 13:22:17 +08:00
simeng-li
2a34684587
refactor(phrases): extract ui phrases (#1247)
* refactor(phrases): extract ui-phrases

extract ui phrases

* fix(phrase-ui): cr update

cr update
2022-06-27 03:55:28 +00:00
simeng-li
84a6ea28ec
refactor(console): refine some welcome page settings (#1246)
refine some welcome page settings
2022-06-26 15:18:39 +08:00
Wang Sijie
2c413341d1
feat(console): sie form reorg (#1218) 2022-06-24 02:26:30 +00:00
simeng-li
837ad523ce
feat(core): add role table seed (#1145)
* fix(core): add default role db seed

add defaylt role db seed

* fix(table): add role table default seed

add role table default seed

* fix(db): cr fix

cr fix
2022-06-20 02:22:23 +00:00
IceHe.xyz
3ac01d72f9
feat(schemas): make users.avatar URL length 2048 (#1141) 2022-06-17 17:04:04 +08:00
simeng-li
f640dad52f
feat(core): add sign-in-mode (#1132)
* feat(core): add sign-in-mode
add sign-in-mode

* fix(core): remove console.log

remove console.log

* fix(ui): hide secondary signin section
hide secondary signin section if is under register mode

* fix(core): ci fix

ci fix
2022-06-17 10:36:07 +08:00
Xiao Yijun
9262a6f3be
fix(console): update terms of use (#1122) 2022-06-15 12:16:37 +08:00
Charles Zhao
0014a4696b
chore: remove only-allow pnpm from all sub-packages 2022-06-14 17:18:13 +08:00
Wang Sijie
04211957e1
feat(console): log details page (#1064) 2022-06-08 15:58:50 +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
90ca76eeb5
feat(demo-app): show notification in main flow (#1038)
* feat(demo-app): show notification in main flow

* fix: add missing file
2022-06-02 08:05:27 +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
renovate[bot]
d1b9f9d28a
chore(deps): update dependency lint-staged to v13 (#1019)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-02 13:19:09 +08:00
Wang Sijie
fdd12de1cf
feat(console): audit log table (#1000) 2022-06-01 16:54:24 +08:00
Gao Sun
7f4f4f84ad
feat(demo-app): implementation (#982)
* feat(demo-app): init card

* feat(demo-app): ui

* feat(demo-app): sign in using React SDK

* fix: typo
2022-05-31 04:39:03 +00:00
IceHe.xyz
9d8ef7632b
fix(schemas): remove user foreign key on application id (#964) 2022-05-26 17:44:32 +08:00
IceHe.xyz
bf6e08c372
feat(schemas): create log indices on application id and user id (#933) 2022-05-25 12:59:35 +08:00
Darcy Ye
054b0f7b6a
feat: remove target, platform from connector schema and add id to metadata (#930)
* feat(core,schema,connectors): remove target,platform form connector schema and add id to metadata

* feat(schema,ui,console): unwrap ConnectorMetadata in ConnectorDTO

* feat(schema,ui,console): connector id use dashline instead of underscore

* feat(connector-alipay*): fix typos

* feat(connector-alipay*): remove unnecessary type declaration
2022-05-24 11:39:44 +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
IceHe.xyz
5d7f2e436c
refactor(core,schemas): remove passcode in logs (#916) 2022-05-20 17:04:22 +00:00
IceHe.xyz
e5196fc31d
feat(core): grantRevokedListener for logging revocation of access and refresh token (#900)
* feat(core): grantRevokedListener for logging access and refresh token revocation

* chore(core): improve description of grantRevokedListener test cases

* refactor(core): extract addOidcEventListeners
2022-05-20 13:54:05 +08:00
Gao Sun
11d9488f4b
refactor(core): update management API indicator (#906) 2022-05-20 10:23:13 +08:00
IceHe.xyz
3b048a80a3
feat(core,schemas): log token exchange success (#809) 2022-05-19 11:24:26 +08:00
Xiao Yijun
85a407c5f6
feat: update field check rules (#854) 2022-05-18 04:12:51 +00:00
Wang Sijie
664a2180a5
feat(console): dark logo (#860) 2022-05-18 10:25:20 +08:00
renovate[bot]
8a012a393d
chore(deps): update dependency @silverhand/ts-config to ^0.14.0 (#859)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-17 11:04:12 +00:00
renovate[bot]
3316bbf429
chore(deps): update dependency @silverhand/eslint-config to ^0.14.0 (#866)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-17 10:42:15 +00:00
renovate[bot]
66b57ad4d5
chore(deps): update dependency @silverhand/eslint-config to ^0.13.0 (#858)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-17 18:07:13 +08:00
Wang Sijie
127664a62f
feat(core,console): social connector targets (#851)
* feat(core,console): social connector targets

* fix: add test
2022-05-17 17:09:42 +08:00
Wang Sijie
808a676da6
fix(console): align usage of customizeSignInExperience (#837) 2022-05-17 10:10:54 +08:00
IceHe.xyz
82c7138683
feat(core): log sending passcode with connector id (#824) 2022-05-16 06:40:51 +00: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
Charles Zhao
7fd42fdaa1
feat(console): hide get-started page on clicking 'Hide this' button 2022-05-13 00:43:24 +08:00
Darcy Ye
8e1533a702
feat(core): update connector db schema (#732)
* feat(core): update connector db schema

* feat(core): eliminate code redundancy for UTs

* feat(core): delete insertConnector on conflict logic and fix UTs

* feat(core): fix UI according to new connector type implementation

* feat(core): removed unused getConnectorByTargetAndPlatform methods

* feat(core): deprecate the function that updateConnector by giving target and platform

* feat(core): keep SSOT on combination of connector and corresponding metadata

* feat(core): rename index name in db
2022-05-12 12:17:17 +08:00
Wang Sijie
bafd09474c
feat(console): sign in exp guide (#755) 2022-05-12 04:05:10 +00:00
Renovate Bot
d36abe1ee5
chore(deps): update dependency @silverhand/ts-config to ^0.12.0 2022-05-11 12:26:08 +00:00
Renovate Bot
d5ef7ddbe3
chore(deps): update dependency @silverhand/eslint-config to ^0.12.0 2022-05-11 11:48:42 +00:00
Charles Zhao
1255c6d1e7
Merge pull request #791 from logto-io/charles-log-2403-store-get-started-progress-in-settings-config
feat(console): support persisting get-started progress in settings config
2022-05-11 17:52:26 +08:00
renovate[bot]
87a9f8a2ae
chore(deps): update dependency @silverhand/eslint-config to ^0.11.0 (#775)
* chore(deps): update dependency @silverhand/eslint-config to ^0.11.0

* chore: add comments

* fix: lockfile

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Gao Sun <gao@silverhand.io>
2022-05-11 06:13:06 +00:00
Charles Zhao
43b2309c99
feat(console): support persisting get-started progress in settings config 2022-05-11 14:02:26 +08:00
Renovate Bot
43db7374c9
chore(deps): update dependency @silverhand/ts-config to ^0.11.0 2022-05-09 16:15:27 +00:00
Gao Sun
d78c115db1
refactor(schemas): remove src/db-entries from source control (#764) 2022-05-09 15:04:36 +08:00
Wang Sijie
08904b8f93
feat(core): add experience configs (#745) 2022-05-06 17:59:18 +08:00
Gao Sun
5909727ebc
refactor(core): use argon2 for password encryption (#738)
* refactor(core): use argon2 for password encryption

* refactor(core): adjust time cost
2022-05-06 16:38:38 +08:00
Wang Sijie
a0355872c6
feat(console): add application column in user management (#728) 2022-05-06 16:16:59 +08:00
Wang Sijie
8a48fb6225
fix: delete custom domain (#737)
* fix: delete custom domain

* fix: use sql wrapper
2022-05-06 02:48:34 +00:00
Gao Sun
3b17324d18
fix: lint:report script (#730) 2022-05-05 10:26:30 +00:00
Wang Sijie
a0b4b98c35
feat(console): add column lastSignIn in user management (#679)
* feat(core): user last sign in

* fix(core): rename last_sign_in to last_sign_in_at for updating its timestamptz value

* fix: rename column name in frontend

* fix: test

* fix: toLocaleDateString

Co-authored-by: IceHe.xyz <icehe@silverhand.io>
2022-05-05 16:22:43 +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
Charles Zhao
a04f818ffb
feat(console): integrate dark mode settings 2022-05-01 01:08:03 +08:00
Xiao Yijun
4a0577accd
feat(console): configure cors-allowed-origins (#695) 2022-04-29 19:01:36 +08:00
IceHe.xyz
a10b427c87
feat(core,schemas): log register (#601) 2022-04-26 03:49:11 +00:00
IceHe.xyz
3aa4342f2e
feat(core,schemas): make it type-safer to log (#656) 2022-04-26 11:31:07 +08:00
Gao Sun
1636f10f30
chore: align author (#657) 2022-04-25 03:26:41 +00:00
Darcy Ye
f669f6b657
feat(core): fix packages' dependencies 2022-04-24 20:53:34 +08:00
Wang Sijie
96848e6b0f
feat(console): page settings (#612) 2022-04-24 11:46:35 +08:00
Gao Sun
0a21303b41
refactor: align node version (#625) 2022-04-24 09:50:59 +08:00
renovate[bot]
7b485aebab
chore(deps): update dependency lint-staged to v12 (#634) 2022-04-22 16:46:39 +00:00
renovate[bot]
603b2e1cfe
chore(deps): update dependency @types/node to v16 (#623)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-22 09:43:31 +00:00
IceHe.xyz
4ba37e7e73
feat(core,schemas): log sign-in (#594)
* feat(schemas): sign-in log types

* feat(core): log username-password sign-in

* feat(core): log passwordless sign-in

* feat(core): log social sign-in
2022-04-21 15:07:54 +08:00
IceHe.xyz
4e5927a788
chore(schemas): conform sql style (#600) 2022-04-21 05:31:29 +00:00
IceHe.xyz
e21d8d38f3
chore(core,schemas): remove old user logs (#597)
* chore(core): remove user logs

* chore(schemas): remove user logs
2022-04-21 11:04:34 +08:00
IceHe.xyz
7990b813ab
refactor(core,phrases,schemas): move language enum and fix Chinese enum value (#593) 2022-04-21 10:55:06 +08:00
IceHe.xyz
4491eab5b4
feat(core): koa-log middleware (#590) 2022-04-20 06:56:33 +00:00
Xiao Yijun
975e715c47
fix(core): revert add oidc config to application response (#566) 2022-04-18 22:30:57 +08:00
IceHe.xyz
afaaed9f29
fix(schemas): remove wrong default values from sign-in experience schema (#565) 2022-04-18 17:06:13 +08:00
IceHe.xyz
5386bcee23
feat(schemas): logs schema and log payload type (#561) 2022-04-18 15:44:36 +08:00
IceHe.xyz
77e0b4fec6
refactor(schemas): conform id length (#555) 2022-04-18 15:27:58 +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
df46593844
refactor(schemas): extract sign-in method key (#556) 2022-04-18 12:49:31 +08:00
Xiao Yijun
d238168ebf
feat(core): add oidc config to the response of application apis (#536) 2022-04-14 14:48:56 +08:00
IceHe.xyz
c3c2bf20f1
feat(core): validate custom client metadata when post or patch application (#529) 2022-04-13 15:23:04 +08:00
Charles Zhao
a710ec6ba5
feat(core): add connector config json templates 2022-04-12 16:59:19 +08:00
Gao Sun
ada4da2fbf
feat(cli): seed tables 2022-04-09 21:53:53 +08:00
IceHe.xyz
fb65c65893
feat(core,schemas): cors allowed origins (#507)
* feat(schemas): cors allowed origins of application in custom OIDC client metadata

* refactor(schemas): rename CustomClientMetadataType to CustomClientMetadataKey

* feat(core): cors allowed origins
2022-04-08 18:16:20 +08:00
Gao Sun
91c79bb44c
Merge pull request #520 from logto-io/gao-remove-resource-scopes
refactor(core): remove resource scopes
2022-04-08 16:15:50 +08:00
Xiao Yijun
3a8b9d7bd7
feat(core): validate redirect uris of application (#519) 2022-04-08 16:13:51 +08:00
Gao Sun
0499024fdf
refactor(core): remove resource scopes 2022-04-08 16:07:34 +08:00
Darcy Ye
09703896f3
fix(core): fix default enable value of new connectors (#500) 2022-04-06 15:34:18 +08:00
Gao Sun
4a904f2953
ci: upload eslint annotations (#490)
* ci: upload eslint annotations

* ci: update `upload-annotations.yml`
2022-04-06 06:06:34 +00:00
IceHe.xyz
71465ca999
feat(schemas,core,phrases)!: add type to connector schema and sync to DB (#491)
* feat(schemas,core,phrases)!: add type in connector schema and sync to DB

* chore(core): fix code about connector type
2022-04-06 12:11:06 +08:00
Charles Zhao
48bd57c94e
chore: bump version of configs 2022-03-31 15:18:34 +08:00
IceHe.xyz
cd63388ab1
feat(schemas): zod type guards of sign-in experience jsonb fields (#473)
* feat(schemas): guard branding logo url and terms-of-use content url

* feat(schemas): guard branding logo url non-optional

* feat(schemas): guard branding colors and slogan nonempty

* chore(core,schemas): upgrade zod dependency version from 3.8.1 to 3.14.3

* feat(schemas): jsonb types guard hex color values

* feat(core): hex color regex
2022-03-31 14:19:12 +08:00
Wang Sijie
e8b4862843
feat(console): user details connectors (#434)
* feat(console): user details connectors

* fix: is submiting
2022-03-23 11:48:42 +08:00
IceHe.xyz
9f3fc5a5cc
feat(schemas): sign-in-experiences (#361)
* chore(schemas): remove useless table sign_in_methods

* feat(schemas): sign-in-experiences

* chore(core): update mock.ts and sign-in-experience.test.ts about sign-in-experiences schema

* chore(core): fix typo in test
2022-03-15 16:46:23 +08:00
Darcy Ye
cde61b77b1
feat(core): add README.md for connectors (#362)
* feat(core): add README.md for connectors

* feat(core): add README.md files' existence check

* feat(core): fix path of README.md
2022-03-14 11:17:24 +08:00
Darcy Ye
9ed146645b
revert(core): manually revert forgot password logic (#365)
* Revert "feat(core): add email forgot password flow (send/verify passcode) (#336)"

* Revert "feat(core): post /session/forgot-password/phone/verify-passcode-and-reset-password (#334)"

* Revert "feat(core): add forgot password send a passcode to phone route (#326)"
2022-03-11 17:45:42 +08:00
Gao Sun
38df1ec8f4
chore: upgrade packages 2022-03-11 16:30:22 +08:00
Gao Sun
1399c9258e
chore: upgrade configs (#339) 2022-03-08 15:58:55 +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
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
Xiao Yijun
76aba43ae3
refactor(core): replace arbitrary data guard type with arbitrary object guard (#290) 2022-02-28 11:22:48 +08:00
Xiao Yijun
861833c01a
refactor(core): add prefix for password_encryption_method (#281) 2022-02-24 18:01:17 +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
Xiao Yijun
77b520deba
feat(core): patch /users/:userId (#246) 2022-02-18 14:34:22 +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
Gao Sun
eb319a3b89
refactor: upgrade TypeScript (#241) 2022-02-16 15:17:43 +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
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
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
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
ffeabbedcf
fix(passcode): use interaction_jti instead of session_id (#207) 2022-01-29 15:30:50 +08: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
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
6fadd4a420
feat: passcode table (#198)
* feat: passcode table

* fix: consumed
2022-01-26 15:32:03 +08:00
simeng-li
f85b922836
feat(core): add sign-in-experiences table (#191)
* feat(core): add sign-in-experience-setting table

add sign-in-experience-setting table

* fix(core): fix typo

fix typo

* refactor: rename sign-in-experience table name

rename sign-in-experience table name

* fix(core): cr fix update sign_in_method schema

update sign_in_method schema

* fix(schema): cr fix

remove signinMethodsMetadata jsonb field
2022-01-25 11:48:47 +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
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
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
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
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
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
Darcy Ye
14d8b18c1d
feat: settings DB schema (#165)
* feat: fix settings design schema
2022-01-11 03:15:10 +00:00
Wang Sijie
bf165644c9
feat: connector DB schema (#164)
* chore: add boolean type for postgres

* chore: remove bool

* feat: connector DB

* fix: remove identifier

* chore: genenrate

* chore: remove data

* chore: todo

* chore: test TODO
2022-01-10 12:24:22 +08:00
Wang Sijie
5b404e2b2e
chore: add boolean type for postgres (#163)
* chore: add boolean type for postgres

* chore: remove bool
2022-01-07 12:09:38 +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
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
simeng-li
d54f77d78a
fix(schema): fix zod guard infer type for option fields (#148)
fix manual guard infer type breaks optional zod field type
2021-12-02 17:22:39 +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
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
acdbc5db56
feat(schema): user logs (#137)
* feat(schema): user logs

* fix(core): use z.object

* fix(core): add log result type

* fix: comments in sql

* fix: user_log_type and user_log_result
2021-11-29 15:47:43 +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
simeng-li
34e979d7d9
fix(schema): update db-entries generation job (#120)
On Node 16.x.x fs.rmdir throw err if dir does not exist
Also from Node 16.x.x fs.rmdir will be deprecated, use fs.rm instead
2021-09-28 10:02:30 +08:00