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

368 commits

Author SHA1 Message Date
Charles Zhao
3767229389
Merge pull request #543 from logto-io/charles-log-1943-connectors-get-started
feat(console): connectors get-started page
2022-04-13 20:14:16 +08:00
Charles Zhao
eeeb80ba4b
feat(console): connectors guide page 2022-04-13 20:09:25 +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
simeng-li
85c9eabfca
feat(core): add sign-in-settings api for client use (#534)
add sample sign-in-settigns api for client use
2022-04-12 12:05:29 +08:00
IceHe.xyz
26c3e1fe2c
fix(core): extraClientMetadata properties (#530) 2022-04-11 14:22:16 +08:00
Gao Sun
06ff890358
fix(core): test cases 2022-04-09 22:06:41 +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
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
Gao Sun
0499024fdf
refactor(core): remove resource scopes 2022-04-08 16:07:34 +08:00
IceHe.xyz
7eb2e41936
refactor(core): remove find-many (#511) 2022-04-07 21:16:59 +08:00
IceHe.xyz
e969e15e3e
test(core): guard sign-in methods and social connector ids (#498)
* test(core): sign-in-methods guard of sign-in experience

* test(core): social-sign-in-connector-ids guard of sign-in experience

* test(core): guard branding of sign-in experience
2022-04-07 12:18:27 +08:00
IceHe.xyz
9d15b584ca
test(core): guard terms of use and language info (#497)
* test(core): terms-of-use guard of sign-in experience

* test(core): add null test cases for guards of sign-in experience

* test(core): language-info guard of sign-in experience
2022-04-07 12:04:09 +08:00
IceHe.xyz
9e25a097bb
test(core): guard branding of sign-in experience (#494)
* chore(core,ui): upgrade jest related dev dependencies to latest versions

* test(core): branding guard of sign-in experience
2022-04-07 11:56:21 +08:00
IceHe.xyz
b0de73a4a1
test(core): get sign-in experience (#499) 2022-04-07 11:42:20 +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
IceHe.xyz
812841494a
feat(core): update social sign-in connector IDs only when social sign-in is enabled (#488) 2022-04-02 11:34:55 +08:00
IceHe.xyz
58d03ae715
feat(core,phrases): validate social sign-in method with social connector IDs (#485) 2022-04-01 17:57:29 +08:00
IceHe.xyz
efdb24833e
feat(core,phrases): validate sign-in methods with enabled connectors (#480) 2022-04-01 16:32:45 +08:00
IceHe.xyz
bf94ee2d10
feat(core,phrases): validate there must be one and only one primary sign-in method (#475) 2022-04-01 13:52:01 +08:00
IceHe.xyz
2356c2ae2e
feat(core): validate sign-in experience branding and terms of use (#477) 2022-04-01 13:40:32 +08:00
Darcy Ye
2a153c2b6d
feat(core): add wechat-native connector (#470)
* feat(core): add wechat-native connector

* feat(core): add wechat native getAuthorizationUri UT
2022-03-31 18:03:51 +08:00
Darcy Ye
004fe65d5a
feat(core): validate connector config before enabling (#478)
* feat(core): validate connector config before enabling

* feat(core): remove code redundancy
2022-03-31 18:02:35 +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
Darcy Ye
84f30fe04b
fix(core): fix did not mock request error which results in timeouts (#471) 2022-03-30 18:31:42 +08:00
Wang Sijie
10fc7e4205
feat(console): support icon in text-input (#458)
* feat(console): support icon in text-input

* feat(console): user search (#460)

* fix: inputValue empty

* fix: remove contional
2022-03-30 14:01:18 +08:00
Darcy Ye
c0337f502d
fix(core): fix wechat web response code and related UTs (#461) 2022-03-29 23:59:47 +08:00
IceHe.xyz
f260d2bb56
fix(core): error message interpolation (#465) 2022-03-29 21:47:12 +08:00
IceHe.xyz
14ac317358
refactor(core): make initConnectors check existing connectors in DB once (#451)
* refactor(core): make initConnectors check existing connectors in DB once

* refactor(core): remove unnecessary hasConnector
2022-03-25 15:55:51 +08:00
Darcy Ye
82d104a0d3
feat(core): add DELETE /users/:userId/identities/:connectorId (#437)
* feat(core): add DELETE /users/:userId/identities/:connectorId

* feat(core): add user query methods UT cases for better testing coverage

* feat(core): rewrite deletion of connector info from user identities using postgresql operator
2022-03-25 15:48:53 +08:00
IceHe.xyz
2ee88d19ee
refactor(core): make getConnectorInstances access DB only once (#429)
* refactor(core): make getConnectorInstances access DB only once

* test(core): make getConnectorInstances access DB only once

* refactor(core): getConnectorInstanceByType merge .filter into .find for running in one loop
2022-03-25 14:45:34 +08:00
IceHe.xyz
28625f6894
feat(core): order connectors by enabled desc, id asc (#430) 2022-03-25 12:26:42 +08:00
IceHe.xyz
04ba181a64
fix(core): missing some commits (#444) 2022-03-23 18:54:26 +08:00
IceHe.xyz
d9670fd709
refactor(core): get sign-in experience (#426)
* feat(core): getEnabledSocialConnectorIds

* test(core): getEnabledSocialConnectorIds

* refactor(core): get sign-in experience

* test(core): get sign-in experience
2022-03-23 12:44:48 +08:00
Darcy Ye
2e08ec9db0
fix(core): fix response code for requesting wechat APIs (#422) 2022-03-22 09:41:25 +08:00
Charles Zhao
f256c2c38c
feat(core): copy markdown files to build folder when building project 2022-03-21 14:27:44 +08:00
Wang Sijie
c4a0299b1c
feat(console): user details settings (#403) 2022-03-21 11:48:27 +08:00
Darcy Ye
fa757c3d12
feat(core): add wechat-web connector (#394)
* feat(core): add WeChat connector as well as corresponding UTs

* feat(core): move TODO from comment block
2022-03-18 17:39:20 +08:00
IceHe.xyz
c3d447b081
test(core): connectors (#413) 2022-03-18 15:42:03 +08:00
IceHe.xyz
8dd05f776f
chore(core): fix connector typos (#411) 2022-03-17 23:01:15 +08:00
Gao Sun
bfc8a64c44
refactor(console): add dev origin to allowed CORS domain in OIDC (#397) 2022-03-16 16:35:45 +08:00
IceHe.xyz
b288e8eb6c
refactor(core): rename sign-in-experience api paths from sign-in-ex to sign-in-exp (#392) 2022-03-16 15:25:26 +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
Gao Sun
b9dab8a9da
fix(console): connect sign in with core 2022-03-15 13:46:50 +08:00
Wang Sijie
6640c0c18d
feat(console): markdown component (#378) 2022-03-15 11:31:50 +08:00
Darcy Ye
f2bfc30ef9
feat(core): fix connector route tests (#377) 2022-03-14 14:06:34 +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
Xiao Yijun
043b20a05a
feat(console): connector sender test (#367) 2022-03-14 11:11:37 +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
IceHe.xyz
4eb2c6ca42
feat(core): findAllApplications order by createdAt desc (#344)
* feat(core): find many data order by

* test(core): find many data order by

* feat(core): findAllApplications order by createdAt desc

* test(core): findAllApplications order by createdAt desc
2022-03-10 15:50:05 +08: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
Darcy Ye
811fe39852
feat(core): add email forgot password flow (send/verify passcode) (#336)
* feat(core): add email forgot password flow (send/verify passcode)

* feat(core): reset password once passcode verification succeed

* feat(core): remove username+password existence check

* feat(core): fix phone not exist error code
2022-03-10 14:15:20 +08:00
Darcy Ye
67aad46a2c
test(core): add UTs for connector route (#357) 2022-03-10 11:54:33 +08:00
Darcy Ye
9e677ca97a
feat(core): post /session/forgot-password/phone/verify-passcode-and-reset-password (#334)
* feat(core): add post /session/forgot-password/phone/verify-passcode and UT

* feat(core): reset password once passcode verification succeed
2022-03-08 16:09:06 +08:00
Gao Sun
1399c9258e
chore: upgrade configs (#339) 2022-03-08 15:58:55 +08:00
Wang Sijie
4cc45696a8
feat(core): only allow one enabled sms/email (#337) 2022-03-08 15:57:57 +08:00
IceHe.xyz
31779e0a3d
feat(core): facebook connector (#321)
* feat(core): facebook connector

* test(core): facebook connector
2022-03-08 12:39:55 +08:00
Wang Sijie
387ee50684
feat(console): init connectors (#332) 2022-03-08 11:10:46 +08:00
IceHe.xyz
fc113fba99
refactor(core): simplify check-and-throw-ConnectorError with assertThat (#333) 2022-03-07 16:08:05 +08:00
Darcy Ye
b14c30beca
feat(core): add forgot password send a passcode to phone route (#326)
* feat(core): add forgot password send a passcode to phone route

* feat(core): add UT for forget password send passcode to phone flow
2022-03-07 15:10:36 +08:00
Wang Sijie
12769e277b
feat(console): init connector page (#331) 2022-03-07 13:58:07 +08:00
IceHe.xyz
607a5344c2
chore(core): add TODO comments for adding the real connector logo URL (#330) 2022-03-07 13:49:57 +08:00
IceHe.xyz
c42b2a5a67
refactor(core): remove unnecessary check in github and aliyun-sms connector (#329) 2022-03-07 13:41:28 +08:00
IceHe.xyz
3dd7d496ef
test(core): fix typos in connectors/*/index.test.ts (#328) 2022-03-07 12:01:24 +08:00
Gao Sun
bb1d3c0a37
feat(console): retrieve applications from api (#320)
* feat(console): retrieve applications from api

* fix(console): i18n key

* fix(console): update per review
2022-03-04 17:26:34 +08:00
Gao Sun
9e0f60ebc8
fix(console): set base url when needed (#312)
* fix(console): set base url when needed

* fix(console): replace `a` with `Link`

* refactor(console): update var name
2022-03-03 15:44:42 +08:00
Gao Sun
365c63b2c7
feat(core): connect console (#306)
* feat(core): connect console

* fix(core): prod spa dist

* fix(core): test

* test(core): refactor spa proxy tests
2022-03-03 14:25:32 +08:00
Darcy Ye
5734333dea
test(core): add UT for aliyun sms (#305)
* test(core): add UT for aliyun sms

* test(core): define some params as top-level consts
2022-03-02 16:50:26 +08:00
Xiao Yijun
8ae42e9666
feat(core): google connector (#300) 2022-03-02 16:26:07 +08:00
Xiao Yijun
dcd84086f6
refactor(core): slonik error handling (#307) 2022-03-02 15:44:57 +08:00
Darcy Ye
16396cf231
test(core): add UTs for session routes (#299)
* test(core): add email not exists check to sign-in email code verification

* test(core): add remaining UTs except for /session/consent

* test(core): fix username validity check according to new username rules

* test(core): remove UT for /session/consent as an individual PR

* test(core): fix error code 500
2022-03-02 14:16:09 +08:00
IceHe.xyz
c5a9eef852
chore(core): fix typos (#303)
* chore(core): fix typos in routes/session.ts

* chore(core): fix typos in utils/password.ts

* chore(core): fix Connector typos

* chore(core): fix typos in connectors/utilities/aliyun.ts

* chore(core): fix 'custom' typos in database/update-where.test.ts

* chore(core): fix typos in middleware/koa-oidc-error-handler.ts
2022-03-02 12:24:07 +08:00
Wang Sijie
ba2b499637
test(core): session consent (#304) 2022-03-02 11:24:15 +08:00
Wang Sijie
4d7ea642a0
refactor(core): session tests (#302) 2022-03-01 17:03:41 +08:00
simeng-li
b03a666fde
ci(core): add codecov github action (#297)
* ci(core): add codecov github action

add codecov github action

* ci(core): update codecov uploader

update codecov uoloader

* ci(core): delete useless codecov yml

delete codecov yml

* chore(core): remove deprecated packages

remove deprecated pacakages
2022-03-01 11:05:25 +08:00
Wang Sijie
7af6973079
test(core): aliyun-dm (#295) 2022-03-01 11:04:20 +08:00
Gao Sun
f7925d9332
chore: upgrade configs and eslint (#294)
* chore: upgrade configs and eslint

* chore: update lockfile

* fix(ui): stylelint
2022-02-28 15:21:48 +08:00
simeng-li
fb6a1dc236
test(core): add ut for queires (#287)
* test(core): add ut for queires

add ut for queries

* test(core): add user query ut

add user query ut

* fix(core): remove test code

remove console log
2022-02-28 14:30:27 +08:00
Wang Sijie
c9400d0a4d
test(core): github and connector utilities (#291) 2022-02-28 06:27:45 +00:00
Xiao Yijun
3a583e81e4
fix(core): patch /users/:userId should not fail if only name or avatar is provided 2022-02-28 13:18:17 +08:00
Xiao Yijun
755176e252
refactor(core): add regex for commonly used fields (#288) 2022-02-28 13:16:02 +08:00
Xiao Yijun
76aba43ae3
refactor(core): replace arbitrary data guard type with arbitrary object guard (#290) 2022-02-28 11:22:48 +08:00
Wang Sijie
94e583111d
test: session route (#283) 2022-02-25 07:09:20 +00:00
Darcy Ye
ddd695dd33
feat(core): enable pass redirectUri when sign-in with social (#284) 2022-02-25 14:52:38 +08:00
simeng-li
2109b7be31
test(core): add ut for application query (#282)
add ut for appliction query
2022-02-25 13:52:29 +08:00
Darcy Ye
5fa6e2b280
chore(core): username/phone/email validity checks to koaGuard middleware (in /session routes) (#285)
* feat(core): all username/phone/email validity checks are put in koaGuard middleware

* feat(core): remove unnecessary comments

* feat(core): unwrap unnecessary methods
2022-02-25 10:50:50 +08:00
Darcy Ye
bd6dc4261c
feat(core): get /session/register/:username/existence (#275)
* feat(core): add username existence check when resgitering

* feat(core): add username existence check

* feat(core): update username guard to avoid empty strings
2022-02-24 18:30:34 +08:00
Darcy Ye
75d2bb3e9b
feat(core): separate passwordless flow routes (#280)
* feat(core): separate passwordless flow routes

* feat(core): rename routes

* feat(core): wrap frequently called methods and rerank log assignment order

* feat(core): rerank log assignment order
2022-02-24 18:21:59 +08:00
Xiao Yijun
861833c01a
refactor(core): add prefix for password_encryption_method (#281) 2022-02-24 18:01:17 +08:00
Xiao Yijun
4144051cad
test(core): add ut for admin-user (#279) 2022-02-24 17:59:08 +08:00
Xiao Yijun
e63ca4c06f
feat(core): get /users with search (#270) 2022-02-24 12:29:34 +08:00
Darcy Ye
89a185c845
chore(core): refactor sign-in routes (#273)
* chore(core): refactor sign-in routes

* feat(core): fix order of userLog assignments
2022-02-24 11:58:52 +08:00
Wang Sijie
be916b274c
test(session): test setup for session route (#276) 2022-02-23 17:23:21 +08:00
Wang Sijie
c033c5e4ec
chore: rename route for bind and sign in (#277) 2022-02-23 16:17:42 +08:00
Darcy Ye
fe0ece4e49
chore(core): hide settings default id (#261)
* chore(core): hide settings default id

* chore(core): fix patch /settings UT
2022-02-23 13:51:02 +08:00
simeng-li
d2b8aa9355
test(core): update the requester test utils (#274)
update the requester test utils
2022-02-23 11:09:26 +08:00