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

315 commits

Author SHA1 Message Date
simeng-li
eac74fae40
fix(core): hard code resource access_token format (#216) 2022-02-08 14:06:13 +08:00
IceHe.xyz
c2c1215820
chore: fix typo in the GitHub PR template (#213) 2022-02-07 14:31:25 +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
6a6ae9d7d5
Merge pull request #205 from logto-io/charles-upgrade-eslint-config-to-0.6.1
chore: upgrade eslint-config to v0.6.1
2022-01-27 19:39:29 +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
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
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
Wang Sijie
7d182e2b46
fix: initConnector use hasConnector (#195) 2022-01-25 11:32:05 +08:00
IceHe.xyz
070506f934
refactor(phrases): replace Normalize with NormalizeKeyPaths (#192) 2022-01-24 17:26:08 +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
Charles Zhao
b9aec921c2
Merge pull request #190 from logto-io/charles-fix-typo-in-pull-request-template
chore: fix typo in pull request template
2022-01-24 14:21:52 +08:00
Charles Zhao
52d8d3045d
chore: fix typo in pull request template 2022-01-24 14:05:51 +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
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