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

344 commits

Author SHA1 Message Date
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
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
2c93ef9237
chore: upgrade configs (#114) 2021-09-08 14:13:42 +08:00
Gao Sun
7ae7912642
refactor: adopt new ESLint rule set for FP (#111) 2021-09-07 20:24:27 +08:00
Gao Sun
54105fc614
fix(schemas): move zod into dependencies (#108) 2021-09-03 16:54:10 +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
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
6b6210feee
feat: PATCH /application/:id 2021-08-27 17:07:15 +08:00
Gao Sun
4973053fda
refactor: integrate zod in schemas (#90) 2021-08-26 13:05:23 +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
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
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
Simeng Li
f6229641aa refactor: add phrases dependency to schema 2021-08-11 23:07:39 +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
1b6a755376 Merge pull request #71 from logto-io/gao--refactor-applications
refactor(schemas): oidc_clients -> applications
2021-08-10 21:00:29 +08:00
Gao Sun
525fe97728
refactor(schemas): oidc_clients -> applications 2021-08-10 17:21:34 +08:00
Gao Sun
2c6a64892a
chore: add preinstall script to packages 2021-08-10 15:29:32 +08:00
Gao Sun
4eb8d93d56
chore: yarn -> pnpm 2021-07-29 17:46:28 +08:00
Gao Sun
6c00d40aeb
refactor: use yarn workspace 2021-07-26 10:54:13 +08:00
Gao Sun
249d7897e5
chore: setup schemas workflow 2021-07-26 01:23:40 +08:00
Gao Sun
96474fed87
chore: upgrade eslint config 2021-07-26 00:18:45 +08:00
Gao Sun
9752dacf85
chore: unify dep and version 2021-07-25 22:36:22 +08:00
Gao Sun
e64fff0a35
refactor: using monorepo 2021-07-25 21:58:27 +08:00
Gao Sun
92c706ae98
chore: update vscode config 2021-07-25 17:40:51 +08:00
Gao Sun
b432b10df0
chore: use shared config 2021-07-25 17:40:51 +08:00
Gao Sun
5eab0a878a
v1.1.0-rc.1 2021-07-25 17:40:51 +08:00
Gao Sun
9d28c495c7
chore: update engines 2021-07-25 17:40:51 +08:00
Gao Sun
cbab8fd7d6
v1.1.0-rc.0 2021-07-25 17:40:51 +08:00
Gao Sun
ac53f7befb
feat: add OIDC clients table 2021-07-25 17:40:51 +08:00
Gao Sun
a7d939d88f
v1.0.6 2021-07-25 17:40:50 +08:00
Gao Sun
6e7a4700d9
feat: remove redundant fields and add TS type support in generated files 2021-07-25 17:40:50 +08:00
Gao Sun
f180f42d65
v1.0.5 2021-07-25 17:40:50 +08:00
Gao Sun
0584979dbb
refactor: user_name -> username 2021-07-25 17:40:50 +08:00
Gao Sun
99e4327fdb
v1.0.4 2021-07-25 17:40:50 +08:00
Gao Sun
fbd8498c25
feat: add fieldKeys in generated const 2021-07-25 17:40:50 +08:00
Gao Sun
1b0cce6de9
v1.0.3 2021-07-25 17:40:50 +08:00
Gao Sun
f273ad08e5
fix: add prepare script 2021-07-25 17:40:50 +08:00
Gao Sun
b6ff5ec6ca
v1.0.2 2021-07-25 17:40:50 +08:00
Gao Sun
d30260634d
feat: conditional generate custom types file and export types in index 2021-07-25 17:40:50 +08:00
Gao Sun
efa550834a
feat: generate enum types from SQL 2021-07-25 17:40:50 +08:00
Gao Sun
70a4c6f15a
Add password encryption salt 2021-07-25 17:40:50 +08:00
Gao Sun
e2301a75de
v1.0.1 2021-07-25 17:40:50 +08:00
Gao Sun
b4d45983b1
Add .npmrc 2021-07-25 17:40:50 +08:00
Gao Sun
68d67016ae
Add user table 2021-07-25 17:40:49 +08:00
Gao Sun
02a251b863
Update configs 2021-07-25 17:40:49 +08:00
Gao Sun
053b775e49
Use essentials 2021-07-25 17:40:49 +08:00
Gao Sun
163ca3e51f
Update instance to readonly const 2021-07-25 17:40:49 +08:00
Gao Sun
7961a7fbf0
Generate table metadata 2021-07-25 17:40:49 +08:00
Gao Sun
3b08c4aee8
Complete table types generation 2021-07-25 17:40:49 +08:00
Gao Sun
c8721ac1f8
Init table type generation 2021-07-25 17:40:49 +08:00
Gao Sun
8ae63eabef
Initial commit 2021-07-25 17:40:49 +08:00