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

216 commits

Author SHA1 Message Date
Gao Sun
beff82ae2c
feat: add oidc standard claims to user 2024-03-19 22:51:26 +08:00
wangsijie
79b49ab79a
feat(core): support more encrypt methods (#5444)
* feat(schemas): add more encryption methods

* feat(core): support more encrypt methods

* fix(schemas): fix alter down column name

* fix(core): fix tiny lint issue

* refactor(core,schemas): use uppercase value

* feat(core,schemas): add bcrypt

* fix(schemas): fix alter script

* refactor(core,schemas): rename bcrypt and use hash-wasm

* chore: fix lock file
2024-03-04 03:18:19 +00:00
5aaee9
0457df0e35
fix(schemas): set default password for tenant (#4535) (#5339)
* fix(schemas): set default password for tenant (#4535)

* feat(schemas): set password when enable encrypt
2024-03-01 13:50:49 +09:00
Xiao Yijun
c65730bcd2
refactor(core, schemas): enhance the time accuracy of dau data (#5451) 2024-03-01 12:43:55 +08:00
simeng-li
52f4e578a5
refactor(core,schemas): remove cloudConnection call in koaTenantGuard (#5395)
remove cloudConnection dependency in the koaTenantGuard
2024-02-19 10:45:57 +08:00
wangsijie
db2d10a2a8
fix(core,schemas): use database index to prevent custom domain conflict (#5342) 2024-01-31 11:05:20 +08:00
Gao Sun
70b8ff707e
Merge pull request #5335 from logto-io/gao-remove-magic-links
refactor: remove magic links
2024-01-30 15:29:21 +08:00
wangsijie
1963e12bd7
fix(core,schemas): use database index to prevent subdomain conflict (#5326) 2024-01-30 11:53:27 +08:00
Gao Sun
6d0f95739c
refactor: remove magic links 2024-01-29 20:21:45 +08:00
Gao Sun
ee91767ce9
refactor: add invitation api tests (#5324)
* refactor: add invitation api tests

* refactor: update alteration

* refactor: fix config guard
2024-01-29 01:39:52 +00:00
Gao Sun
e999f61187
refactor(schemas): allow null inviter (#5278) 2024-01-25 12:00:56 +00:00
simeng-li
de37e71239
feat(schemas): add new application user consent orgs table (#5235)
add new application user consent organizations table
2024-01-16 10:47:59 +08:00
Gao Sun
75b643ad2f
feat(schemas, core): init organization invitation apis 2024-01-11 18:08:26 +08:00
Gao Sun
41f7b4d8ad
refactor(schemas): use native enum for invitation status 2024-01-11 17:30:41 +08:00
Gao Sun
571b53d9cc
feat(schemas): init org invitation tables 2024-01-11 14:38:37 +08:00
Darcy Ye
8d5ff29e27
feat(core,schemas): add daily token usage table to ease the usage calculation (#5148) 2023-12-25 04:56:53 +00:00
simeng-li
541ea2919c
feat(schemas): add application sign-in-experience table (#5122)
* feat(schemas): add application sign-in-experience table

add application level sign-in-experience table

* fix(schemas): fix table name

fix table name

* fix(schemas): fix table file name

fix table file name
2023-12-21 10:20:45 +08:00
wangsijie
e28822997f
feat(schemas): add column protected_app_metadata (#5113)
* feat(schemas): add new application type for protected app

* feat(schemas): add column protected_app_configs
2023-12-19 17:04:14 +08:00
wangsijie
7e435c4749
feat(schemas): add new application type for protected app (#5112) 2023-12-19 15:59:27 +08:00
simeng-li
875e948186
feat(schemas): add application permissions relation tables (#5097)
* feat(schemas): add application permissions relation tables

add appliaction permissions relation tables

* refactor(schemas): redesign the application user scope relations table

redesign the application user scope relations table

* refactor(schemas): rename application user consent scopes table name

rename application user consent scopes table name

* fix(schemas): fix dirty char

fix dirty char

* refactor(schemas): rename resource scope column name

rename resource scope column name

* fix(schemas): fix the wrong column name

fix the wrong column name

* refactor(schemas): update the userscope column length

update the userscope column length
2023-12-15 10:18:44 +08:00
simeng-li
a93a39aa1b
feat(core,schemas): add isThirdParty column to the applications table (#5090)
* feat(core,schemas): add isThirdParty column to the applications table

add isThirdParty column to the applications table

* refactor(core): group the application routes under applications directory (#5091)

* refactor(core): group the application routes under applications directory

group the application routes under applications directory

* refactor(core,schemas): refactor the application api guard

refactor the application api guard

* fix(schemas): fix application patch guard

fix application patch guard

* fix(test): fix ut

fix ut
2023-12-12 14:54:49 +08:00
simeng-li
cdf5a22315
refactor(core,schemas,console): optimize the sso connector endpoints naming (#5047)
* refactor(core,schemas): rename the sso-connector-factory terms to connector-provider

shouls align the terms of api. Replace the factory using provider.

* refactor(core,console): rename the sso-connector-providers response property name

 rename the sso-connector-providers response property name

* chore(core): update api doc content

update api doc content

* feat(core): declare the SAMLResponse field in ACS api body

declare the SAMLResponse field in ACS api body

* refactor(console,core): categorize standard SSO providers at client side only

categorize standard SSO providers at client side only

* fix(core): fix rebase issue

fix rebase issue

* chore(console): remove useless useMemo

remove useless useMemo

* chore(core): update the api content

update the api content
2023-12-04 15:07:33 +08:00
simeng-li
5150ead19f
feat(core,schemas): add new singleSignOnEnabled field to sie (#5003)
* feat(core,schemas): add new singleSignOnEnabled field to sie

add new singleSignOnEnabled field to sie

* chore(core): add some comment

add some comment

* fix(experience): update mock data

update mock data
2023-11-30 16:34:08 +08:00
simeng-li
c47e0192ff
feat(schemas): add unique constrain to the SSO connectorName field (#4974)
add unique constrain to the SSO connectorName field
2023-11-28 13:55:47 +08:00
Gao Sun
bfda1d2c95
refactor(schemas): use user membership as foreign key for user org roles (#4885) 2023-11-16 11:19:44 +08:00
simeng-li
eeb1928e57
feat(core,schemas): remove the ssoOnly setting of the sso connectors (#4856)
feat(core,schemas): remove ssoOnly property

remove the ssoOnly property from sso connectors
2023-11-13 11:14:46 +08:00
simeng-li
8e07825f17
refactor(schemas): add new sso_connector_id column to the users_sso_identities table (#4843)
* refactor(schemas): add new sso_connector_id column to the users_sso_identities table

add new sso_connector_id column to the users_sso_identities table

* refactor(schemas): add new sso_connector_id row to the users_sso_identities table

add new sso_connector_id row to the users_sso_identities table

* fix(schemas): fix alteration script

fix alteration script

* fix(schemas): fix alteration script

fix alteration script

* feat(core): add single sign on authentication api (#4814)

* feat(core): add single sign on authentication api

add single sign on authentication api

* feat(core): finish up the single sign on authentication api

finish up the single sign on authentication api

* chore(core): fix typo

fix typo

* test(core): add ut for getSsoAuthorizationUrl method

add ut for getSsoAuthorizationUrl method

* fix(core): fix the userSsoIdentities sql

fix the userSsoIdentities sql

* test(core): add unit tests

add unit tests

* fix(core): saml sso rebase fix

saml sso rebase fix

* fix(core): fix rebase issue
 fix rebase issue

* feat(core): add sso email guard to interaction endpoint (#4838)

* feat(core): add sso email guard to interaction endpoint

add sso email guard to interaction endpoint

* fix(core): fix unit tests

fix unit tests

* chore(core): split files

split files
2023-11-08 08:55:45 +00:00
wangsijie
b118fc54a6
refactor(core,schemas): add user logto_data column to store mfa (#4792)
* feat(core,phrases): disable auto skip mfa

* refactor(experience): skip mfa manually (#4788)

* refactor(core,schemas): add user logto_data column to store mfa skipped info

---------

Co-authored-by: Xiao Yijun <xiaoyijun@silverhand.io>
2023-11-02 16:16:21 +08:00
simeng-li
e515c04d44
refactor(core,schemas,console): refactor log key types and sso-connector authn-url api name (#4798)
* refactor(core,schemas,console): refactor log key types and sso-connector authn-url api name

refactor log key types and sso-connector authn-url api name

* feat(schemas): add user sso identities table (#4801)

* feat(schemas): add user sso identities table

add user sso identities table

* fix(schemas): fix alterations

fix alterations

* refactor(schemas): use unique constrain

use unique constrain
2023-11-02 02:13:06 +00:00
simeng-li
54fd29e41f
feat(schemas): create sso_connectors table (#4694)
* feat(schemas): create sso_connectors table

create sso_connectors table

* chore(schemas): add comments

add comments

* fix(schemas): remove dummy comments

remove dummy comments

* fix(schemas): fix schema typo

fix schema typo

* fix(schemas): adjust the alteration column order

adjust the alteration column order

* fix(schemas): drop policy

drop policy

* chore: fix the db alteration compare job tag version

fix the db alteration compare job tag version

* fix(schemas): set sso table order

set sso table order

* fix(schemas): fix alteration script

fix alteration script
2023-10-20 10:46:09 +08:00
Charles Zhao
005bb660cd
Merge pull request #4594 from logto-io/charles-log-6861-api-to-rotate-private-keys
feat(core,phrases): add apis to fetch, delete and rotate oidc private keys
2023-10-11 02:52:46 -05:00
Charles Zhao
f01ada5760
feat(core,phrases,shared): add apis to fetch, delete and rotate oidc private keys 2023-10-11 15:28:24 +08:00
Gao Sun
c1df440682
refactor(schemas): make description nullable 2023-10-08 13:47:22 +08:00
Gao Sun
b81c573583
feat(schemas): init organization tables 2023-10-07 17:49:28 +08:00
Gao Sun
a856145f81
refactor(schemas): improve regexp 2023-09-19 12:03:58 +08:00
Gao Sun
d065cbc623
refactor(schemas): sentinel first version 2023-09-18 16:31:23 +08:00
Gao Sun
d0a44e93f8
refactor(schemas): support field JSDoc comments 2023-09-16 17:15:56 +08:00
Gao Sun
f702cc24a3
feat: init sentinel 2023-09-16 17:15:53 +08:00
wangsijie
08a0a6748b
feat(schemas): add user verifications column (#4480) 2023-09-15 11:16:47 +08:00
wangsijie
b91aa8d3d7
feat(schemas): add mfa to sign in experience table (#4396) 2023-09-12 10:36:47 +08:00
Darcy Ye
9f6fc6100d
fix(schemas): specify function db schema of check_role_type (#4469)
fix(schemas): specify db schema of function check_role_type
2023-09-11 08:58:17 +00:00
Darcy Ye
5d78c7271b
refactor(core,schemas): update roles table schemas, add type column (#4378)
refactor(core,schemas): update roles table schemas, add type col and fix UTs

refactor(test,core,schemas): add role type constraint to DB level to keep the data source clean
2023-09-11 03:27:49 +00:00
Gao Sun
b8a7b900e1
feat(core): guard password by policy 2023-09-03 02:11:22 +08:00
wangsijie
5ccdd7f31a
feat(core,schemas): record daily active users (#4113) 2023-07-07 15:14:29 +08:00
wangsijie
ab8c26226e
fix(schemas): modify domain table unique index (#3954) 2023-06-14 11:12:08 +09:00
wangsijie
62d3acfc7b
fix(schemas): set domain status enum guard (#3958) 2023-06-08 12:07:15 +09:00
Gao Sun
c933bf58f7
feat: support default API Resource 2023-06-04 20:46:36 +08:00
Darcy Ye
f1d8466919
chore(cli,cloud,schemas): change default tenant name (#3890) 2023-05-26 17:38:52 +08:00
wangsijie
7fb5374963
feat(schemas): add domains table (#3884) 2023-05-26 11:45:26 +08:00
Darcy Ye
0ebaec520e
feat(schemas): update tenants table schema (#3860) 2023-05-23 13:51:00 +08:00
Xiao Yijun
b92508db3a
feat(core,schemas): support get hook recent logs (#3859) 2023-05-22 19:01:54 +08:00
Xiao Yijun
8fc5b78def
refactor(schemas): update hook schema (#3788) 2023-05-09 09:25:45 +08:00
Darcy Ye
632b8b1d84
refactor(schemas,core,console): use JsonObject instead of ArbitraryObject (#3730) 2023-04-24 11:11:27 +08:00
Darcy Ye
ad3611f5a0
refactor(schemas,core,toolkit): remove connector db storage and disable access (#3505) 2023-03-19 11:45:13 +00:00
wangsijie
47881b6d6e
feat(schemas): add service logs table (#3390) 2023-03-14 15:15:45 +08:00
simeng-li
57eb6ee452
feat(schemas,ui): add custom content slot (#3369) 2023-03-14 03:06:01 +00:00
Gao Sun
fa85b7d0eb
refactor: remove withtyped in core (#3375)
Keeping withtyped will introduce an additional database pool per tenant,
which is not good for performance and it should be more like all-or-nothing choice.
So remove it for core, but keep it in cloud.
2023-03-13 04:01:14 +00:00
Charles Zhao
9896390065
fix(core,schemas): remove sessionId usage from verification status table (#3345) 2023-03-13 11:20:52 +08:00
Gao Sun
c5da152ddc
refactor: hide internal roles for user tenants
introduce internal roles which name starts with #internal:
with RLS policies to make them read-only.
2023-03-09 00:07:33 +08:00
Gao Sun
bdd7374d31
refactor(schemas): use restrictive policies
for enhanced security and scalability. restrictive policies can
be combined with permissive policies for advanced use cases.
2023-03-08 19:16:42 +08:00
Charles Zhao
43470c41f1
fix(core,schemas): add new verification status table (#3312) 2023-03-08 15:21:59 +08:00
simeng-li
05ada94f95
feat(core,console,schemas,phrases): add privacy policy url (#3315) 2023-03-08 10:56:26 +08:00
Gao Sun
1ef5519e75
feat: custom css (#3155) 2023-02-21 10:55:44 +08:00
Darcy Ye
a13d27a018
feat: enabled connector db read and write (#3127) 2023-02-20 18:54:02 +08:00
Gao Sun
76a04d97b3
feat(cloud): POST /tenants 2023-02-20 00:27:12 +08:00
Gao Sun
7a7d7f9f41
refactor: add alteration scripts 2023-02-12 18:43:02 +08:00
Gao Sun
0481a450be
refactor: decouple admin tenant and user tenant 2023-02-11 14:38:16 +08:00
Gao Sun
2af6fd114a
refactor!: add admin tenant 2023-02-10 13:06:52 +08:00
Gao Sun
6b09da2f5d
refactor: fix alteration 2023-02-09 18:31:14 +08:00
Gao Sun
99837b4e48
refactor: use RLS 2023-02-08 18:58:45 +08:00
Gao Sun
d0399eb8a4
refactor!: merge settings into logto configs table 2023-01-29 19:42:19 +08:00
Gao Sun
de4b0bae16
refactor: add function and trigger to set tenant_id 2023-01-28 19:26:29 +08:00
Gao Sun
54db878760
refactor: re-org alteration scripts 2023-01-28 12:58:42 +08:00
Gao Sun
ba44eb5fc6
refactor(schemas): init tenant sqls 2023-01-28 12:58:42 +08:00
wangsijie
ece866db7c
feat!: migrate application role names to RBAC (#2972) 2023-01-18 15:38:36 +08:00
wangsijie
92968c49dd
fix(schemas): set scope description to required (#2954) 2023-01-17 18:04:49 +08:00
simeng-li
3ff6554c08
refactor(core,console,schemas): remove logDto (#2889) 2023-01-10 05:57:24 +00:00
wangsijie
34aab882c3
feat(core): scope name within the same resource should be unique (#2861) 2023-01-10 05:15:48 +00:00
Charles Zhao
0decdb796d
refactor(schemas): alter passcodes table and set jti to nullable 2023-01-06 22:47:29 +08:00
wangsijie
f371a61460
feat(core): role-scope api (#2826) 2023-01-06 15:37:00 +08:00
wangsijie
cf900d4aef
feat(core): resource scopes crud (#2757) 2023-01-05 15:24:24 +08:00
wangsijie
61f4e7fd2d
feat: add users_roles table and remove role_names (#2525) 2023-01-04 15:39:27 +08:00
Gao Sun
01f718b258
refactor!: align PasscodeType to MessageTypes
refactor: apply suggestions from code review

Co-authored-by: Darcy Ye <darcyye@silverhand.io>

refactor(core): fix type names
2022-12-27 15:29:06 +08:00
Gao Sun
c24a57f2c4
refactor: update log types in database and console 2022-12-20 13:47:12 +08:00
Xiao Yijun
bc5f4b541a
refactor: replace termsOfUse with termsOfUseUrl (#2665) 2022-12-15 17:04:42 +08:00
Gao Sun
93cd6a27d0
refactor(schemas): add name index on users (#2668) 2022-12-15 10:50:48 +08:00
Darcy Ye
7ba40a7782
feat: remove enabled from table connectors (#2513) 2022-11-28 18:37:24 +08:00
wangsijie
3f41278a24
feat(schemas): add roles and permissions (#2494) 2022-11-24 11:09:03 +08:00
Darcy Ye
8a7a9e418e
feat: update connectors table and load connector logic (#2468)
Co-authored-by: wangsijie <wangsijie@silverhand.io>
2022-11-18 12:06:53 +08:00
wangsijie
854e373b81
Merge branch 'master' into merge/suspend 2022-11-09 11:05:32 +08:00
wangsijie
e699e3fb62
fix(core,schemas): fix email and sms verification for continue route (#2349) 2022-11-08 22:59:43 +08:00
wangsijie
73bb938c3c
feat(schemas): add user is suspended column (#2305)
Co-authored-by: Gao Sun <gao@silverhand.io>
2022-11-04 10:10:01 +08:00
wangsijie
5e571936c9
chore: remove old sign in methods (#2295) 2022-11-03 18:23:12 +08:00
wangsijie
1c50efe632
feat: remove forgot password control (#2291) 2022-11-03 10:31:57 +08:00
wangsijie
5959372325
Merge branch master into merge/sie-v2
merge
2022-10-21 10:43:56 +08:00
wangsijie
06ae2aff15
Revert "chore: merge master into sie-v2 (#2182)" (#2216) 2022-10-20 17:03:18 +08: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
696e7f181d
chore: merge branch 'master' into feature/manage-language 2022-10-10 15:52:06 +08:00
wangsijie
78eca37e87
feat(schemas): add sie2 schema (#2056) 2022-10-09 15:31:40 +08:00
IceHe
3eb44e1e56
refactor(core,console,phrases,schemas): replace language key with language tag (#2026) 2022-09-30 10:30:32 +08:00