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

1677 commits

Author SHA1 Message Date
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
simeng-li
4325007398
refactor(core): throw error on pagination middleware (#228)
throw internal error if no totalCount returned
2022-02-15 10:58:21 +08:00
Wang Sijie
a9b5dd6cbd
feat: update social info on sign in (#225) 2022-02-14 16:11:42 +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
Wang Sijie
78cc86ec77
feat: social register (#222) 2022-02-14 03:11:34 +00: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
77ca86cac6
feat(core): register with email (#212) 2022-02-08 20:15:36 +08:00
simeng-li
a5c9bf61d7
refactor(core): add OIDCRequestError (#214)
* refactor(core): add OIDCRequestError

inplement OIDCRequestError to normalize OIDCProviderError

* fix(coer): cr fix

code review update
2022-02-08 15:31:16 +08:00
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