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

604 commits

Author SHA1 Message Date
Darcy Ye
94a1b07c83
chore(test): add test cases for testing config on SSO details page experience tab (#5088) 2023-12-19 22:12:42 +08:00
simeng-li
5c936e0976
feat(core,schemas): add GET application user consent scopes api (#5103)
* feat(core,schemas): add GET application user consent scopes api

add GET application user consent scopes api

* fix(core): remove useless field declare

remove useless field declare
2023-12-15 18:12:52 +08:00
simeng-li
cb43ebb7d1
feat(core,phrases): add post application user consent scopes api (#5101)
add post application user consent scopes api
2023-12-15 16:59:48 +08:00
simeng-li
9222eb9f80
refactor(core): add on conflic ignore to the Relation insert query method (#5100)
* refactor(core): add on conflic ignore to the Relation insert query method

add on conflic ignore to the Relation insert query method

* chore: improve word

improve word

* test: add integration test

add integration test

* feat(core): update organization post api doc

update organization post api doc
2023-12-14 15:04:20 +08:00
simeng-li
dcc226b5d9
feat(core,phrases): update applications api to support third-party app (#5096)
update applications api to support third-party app
2023-12-13 11:00:03 +08:00
Darcy Ye
9870ddeff0
fix(console,test): should clear error message and add console integration test (#5081)
* fix(console,test): should clear error message and add console integration test

* refactor(test): refactor code using cls and dcls methods if possible
2023-12-11 05:02:33 +00:00
Darcy Ye
67ab1b3d52
chore(test): add console ITs for SSO connectors creation and deletion (#5073) 2023-12-08 10:55:52 +00:00
simeng-li
b204ba8f74
refactor(core,experience): simplify the consent path (#5072)
simplify the consent path
2023-12-08 15:14:51 +08:00
Darcy Ye
774de5cc7b
refactor(console): hide saml social connector entrance and fix SSO creation paywall (#5056) 2023-12-05 10:50: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
Xiao Yijun
3e92a20320
refactor(core): add user ip to webhook event payload (#5049) 2023-12-04 06:06:28 +00:00
Gao Sun
fc9c9ea721
chore: upgrade logto sdks (#5011)
* chore: upgrade logto sdks

* chore: fix tests

* fix(demo-app): fix hook infinite loop issue

* refactor(demo-app): use enum from sdk
2023-12-02 15:22:27 +08:00
simeng-li
997a0036d8
fix(core): should not guard email if SSO is disabled (#5032)
should not guard email is SSO is disabled
2023-12-01 14:56:59 +08:00
simeng-li
9fd49c6caa
feat(experience): disable chrome autofill on the register form (#5017)
feat(experience): replace input name identifier with id

trying to resolve chrome autofill problem
2023-12-01 13:29:18 +08:00
simeng-li
f80350d2e3
feat(console,phrases,experience): add sso toggle button to console (#5004)
* feat(phrases): add sso enabled phrases

add sso enabled phrases

* feat(console,phrases,experience): add sso toggle button to console

add sso toggle button to console

* test(experience): update ut

update ut

* feat(experience): apply ssoEnabled guard to the connector fetch endpoint

apply ssoEnabled guard to the connector fetch endpoint
2023-11-30 16:56:51 +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
Darcy Ye
14855cde2c
feat(console,core,phrases): add display name field, fix error display (#4983) 2023-11-28 15:49:46 +08:00
simeng-li
b48ab51098
refactor(core,schemas): add SSO displayName (#4969)
feat(core,schemas): add SSO connector displayName property

add SSO connector displayName property
2023-11-28 11:34:48 +08:00
simeng-li
030877b656
feat(core): guard sso config (#4962)
* feat(core): guard sso config

guard sso config

* refactor(core): simplify the sso error structure

simplify the sso error structure

* fix(test): fix integration tests

fix integration tests

* fix(test): fix integration-tests

fix integration-tests
2023-11-28 11:17:46 +08:00
Darcy Ye
ac099b1e64
chore(console,core): add/replace SSO connector logo resources (#4963) 2023-11-27 11:02:34 +08:00
simeng-li
3f84e724b9
refactor(core): remove SSO connector config partial update logic (#4958)
* refactor(core): remove SSO connector config partial update logic

remove SSO connector config partial update logic

* fix(test): fix integration tests

fix integration tests

* refactor(core): refactor SAML SSO idpConfig type (#4960)

refactor SAML SSO idepConfig type
2023-11-24 06:21:59 +00:00
Xiao Yijun
a376b71ae7
fix(test): fix experience ui test randomly fail issue (#4945) 2023-11-23 11:10:36 +08:00
simeng-li
f880329d16
feat(core,experience): implement google workspace connector (#4925)
* feat(core,experience): implement google workspace connector

implement google workspace connector

* fix(core): clean code

clean code

* fix(core): fix ut

fix ut

* fix(core): fix ut

fix ut

* fix(test): fix integration tests

fix integration tests

* fix(core): make the sso data as public property and remove getter

make the sso data as public perperty and remove getter
2023-11-21 11:13:59 +08:00
Darcy Ye
57655dfeb7
feat(console,phrases,core): add SSO connector creation guide (#4866) 2023-11-19 06:30:22 +00:00
Darcy Ye
5832b30276
fix(core,test): fix saml sp config and refactor saml class internal util methods (#4878) 2023-11-17 23:51:52 +08:00
simeng-li
edb2bdccec
feat(core): add the saml assertion handle flow (#4872)
* feat(core): add saml assertion handle flow

add saml assertion handle flow

* fix(core): address some comments

address some comments

* chore(core): comments update

comments update

* chore(core): add deprecated tag

add dreprecated tag

* refactor(core): use url object instead of plain string

use url object instead of plain string
2023-11-17 06:14:45 +00:00
Darcy Ye
787359c1c4
feat(console): show SSO identities on user details page and reorg the page (#4687) 2023-11-16 11:26:26 +08:00
Gao Sun
9a4da065dc
fix(core): generate correct swagger components (#4884)
* fix(core): generate correct swagger components

* refactor(core): fix tests
2023-11-16 11:19:54 +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
Gao Sun
bfea0b0fdd
refactor(core): fix org apis (#4890) 2023-11-15 09:20:31 +00:00
Gao Sun
5de7772186
Merge pull request #4863 from logto-io/gao-swagger-org-apis
refactor(core): add swagger data for org apis
2023-11-14 11:16:09 +08:00
Xiao Yijun
e676f0c6eb
feat(console): add tenant env migration modal (#4859) 2023-11-13 19:23:22 +08:00
Gao Sun
a53fcfc654
Merge pull request #4854 from logto-io/gao-use-refresh-token-grant
refactor(core): reuse `refresh_token` grant for org tokens
2023-11-13 18:45:55 +08:00
Darcy Ye
9b8d4c6b20
feat(console,phrases): add sso connector list page 2023-11-13 11:29:50 +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
Gao Sun
be1a164f98
refactor(core): add swagger data for org apis 2023-11-12 22:18:54 +08:00
Gao Sun
e5b7c1a6f0
refactor(test): update org integration tests 2023-11-10 15:20:57 +08:00
Gao Sun
d3e7cff0bd
refactor(core): reuse refresh_token grant for org tokens 2023-11-10 14:51:42 +08:00
Gao Sun
73f348af89
Merge pull request #4849 from logto-io/gao-add-oidc-org-integration-tests
refactor(test): add integration tests for org token grant
2023-11-10 14:50:20 +08:00
Gao Sun
a03c0dbe5e
Merge pull request #4847 from logto-io/gao-update-org-scopes
refactor: update organization scopes
2023-11-10 14:48:47 +08:00
simeng-li
d07a673a99
feat(core,experience): add sso link and email form (#4850)
* feat(core,experience): add sso link and email form

add sso link and email form

* chore(phrases): update phrases

phdate phrases

* fix(core): fix ut

fix ut

* test(experience): add single sign on link test

add single sign on link test

 Please enter the commit message for your changes. Lines starting
2023-11-10 14:41:59 +08:00
Xiao Yijun
c5809e4722
refactor(experience): remove demo app notification (#4851) 2023-11-10 11:52:44 +08:00
Gao Sun
52766acaa9
refactor(test): add integration tests for org token grant 2023-11-09 16:57:33 +08:00
Gao Sun
e057e2fc42
refactor: update organization scopes 2023-11-09 16:16:43 +08:00
Gao Sun
c9db7b2ed9
Merge pull request #4831 from logto-io/gao-support-org-scope-in-for-id-token 2023-11-09 10:49:30 +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
Xiao Yijun
f2a3f7e01f
test: add delay before clicking switch mfa factors link (#4840) 2023-11-08 10:41:05 +08:00
Darcy Ye
f694256461
Merge pull request #4806 from logto-io/yemq-log-7174-add-saml-sso-connector-class
feat(core): add SAML SSO class

feat(core,test): update SSO connector APIs for SAML class and add integration test cases
2023-11-07 22:11:41 +08:00
Darcy Ye
7fe41a0037
feat(core,test): update sso connector util functions, APIs and integration tests (#4807) 2023-11-07 21:12:29 +08:00
Gao Sun
9ae4d9aad7
feat: support organizations scope for ID token 2023-11-07 12:33:53 +08:00
Gao Sun
8dff98b1e0
refactor(test): fix integration test assertion 2023-11-06 10:36:46 +08:00
wangsijie
ddf4468189
feat(core,phrases): disable auto skip mfa (#4786)
* feat(core,phrases): disable auto skip mfa

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

---------

Co-authored-by: Xiao Yijun <xiaoyijun@silverhand.io>
2023-11-02 15:09:00 +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
a982e997c3
feat(core): add get sso-connectors by email interaction api (#4795)
* refactor(core,test,schemas): remove the domains property from sso connector in sie wellknown data

remove the domains property from sso connector in sie wellknown data

* refactor(core): extract getAvailableSsoConnectors library method

extract getAvailableSsoConnectors library method

* fix(core,test): should filter out empty domain connectors

should filter out empty domain connectors

* feat(core,test): add get sso-connectors by email interaction api

add get sso-connectors by email interaction api

* chore(core): update comments

update comments
2023-11-01 09:38:28 +08:00
simeng-li
8616496c61
feat(core): add post single-sign-on authentication endpoint (#4787)
* feat(core): add put interaction sso authentication api

add put interaction sso authentication api

* fix(test): fix integration test type

fix integration test type
2023-10-31 17:52:27 +08:00
Charles Zhao
cee5717423
feat(console,schemas): add new db config to record organization creation status (#4785) 2023-10-31 09:34:44 +08:00
Charles Zhao
fba54f42b6
chore(test): temporarily skip organization console integration tests (#4789)
* chore(test): temporarily skip organization console integration tests

* chore: add comment
2023-10-30 16:39:23 +00:00
Darcy Ye
1ab39d19b6
fix(console,core,test): support filter by type for GET roles and apps APIs (#4727)
* fix(console,core): do not reuse advanced search for role/app type

* chore(test): add integration test cases for using search component when assigning app/role

* chore: apply suggestions from code review

Co-authored-by: Gao Sun <gao@silverhand.io>

* chore(test): add API test cases for filtering roles/applications and add changeset

* chore: apply suggestions from code review

Co-authored-by: Gao Sun <gao@silverhand.io>

---------

Co-authored-by: Gao Sun <gao@silverhand.io>
2023-10-30 14:25:15 +00:00
Xiao Yijun
e748f8bc7e
refactor(phrases): update mfa phrases (#4781) 2023-10-30 06:20:50 +00:00
simeng-li
4080a2599b
feat(core): add ssoConnectors to the sie well-known api (#4777)
* feat(core): add ssoConnectors to the sie wellknown api

add ssoConnectors to the sie wellknown api

* fix(test): fix well-known sie ut

fix well-known sie ut
2023-10-30 10:28:03 +08:00
wangsijie
8798432a24
feat(core,phrases): add mfa verifications by api (#4765) 2023-10-28 07:00:24 +00:00
Xiao Yijun
de9810709f
refactor(experience): use last used factor when verifing mfa factors (#4775) 2023-10-27 16:59:48 +08:00
Gao Sun
38a307aeef
Merge pull request #4762 from logto-io/gao-org-integration-tests-1
chore(test): init org ui tests
2023-10-27 15:58:43 +08:00
simeng-li
85a39c35d7
refactor(core): refactor the sso-connector config guard logic (#4752)
* refactor(core): refactor the sso-connector config guard logic

refactor the sso-connector config guard logic

* chore(core): update with some more comments

update with some more comments

* refactor(core): adjust the input type of parseConnectorConfig

make the config requred in the parseConnectorConfig's input

* refactor(core): add the isSupportedSsoConnector type assertion (#4754)

* refactor(core): add the isSupportedSsoConnector type assertion

add the isSupportedSsoConnector type assertion

* chore(core): remove the useless comments

remove the useless comments

* refactor(core): reorg the sso utils

reorg the sso utils

* refactor(core): extract sso connector library

extract sso connector library
2023-10-27 11:47:58 +08:00
Xiao Yijun
bec525ebe4
style(console): update radio disabled styles (#4769) 2023-10-27 10:23:39 +08:00
Xiao Yijun
6b99cc1f2e
chore(test): wait for network idle to ensure the sign-in request to be handled (#4749) 2023-10-26 18:17:03 +08:00
Xiao Yijun
1fcc4152af
fix(experience): invoke webauthn on iOS devices (#4770) 2023-10-26 18:05:14 +08:00
Gao Sun
c4826556d9
chore(test): init org ui tests 2023-10-26 18:03:16 +08:00
Darcy Ye
4c7d80ea60
fix(test): make m2m RBAC console integration test stable (#4757) 2023-10-26 10:41:39 +08:00
Gao Sun
9b1f0ced09
Merge pull request #4755 from logto-io/gao-org-featured
feat: organization featured members
2023-10-25 21:11:57 -05:00
Gao Sun
83cd281173
Merge pull request #4748 from logto-io/gao-use-sentence-case
chore: use sentence case
2023-10-25 21:07:02 -05:00
Gao Sun
d06c6e520c
Merge pull request #4746 from logto-io/gao-fixing-review-to-dos
refactor(console): fixing code review to-dos
2023-10-25 21:02:50 -05:00
Gao Sun
889ca18e66
feat: organization featured members 2023-10-25 20:28:58 +08:00
simeng-li
2b15b13bbf
feat(core): add OIDC SSO connector class (#4701)
* feat(core): implement oidc and single sign on connector class

init oidc and single sign on connecter class

* refactor(core): refactor the structure of single sign-on classes

refactor the structure of single sign-on classes

* chore(core): provide more comments

provide more comments

* feat(core): add sso-connector-factories api (#4708)

* feat(core): add sso-connector-factories api

add sso-connector-factories api

* fix(test): remove hard code connector name

remove hard code connector name

* feat(core): add POST sso-connectors api (#4719)

* feat(core): add POST sso-connectors api

add POST sso-connectors api

* chore(core): add some comments
add some comments

* test(core): add post sso connectors integration tests

add post sso connectors integration tests

* feat(core): add GET sso-connectors api (#4723)

* feat(core): add GET sso-connectors api

add GET sso-connectors api

* test(core): add tests

add tests

* test(core): add ut

add ut

* fix(test): remove console statement

remove console statement

* feat(core): implement get sso-connector by id endpoint (#4730)

* feat(core): implement get sso-connector by id endpoint

implement get sso-connector by id endpoint

* feat(core): implement delete sso-connector by id endpoint (#4733)

* feat(core): implement delete sso-connector by id endpoint

implement delete sso-connector by id endpoint

* feat(core): implement patch sso-connectors api (#4734)

* feat(core): implement patch sso-connectors api

implement patch sso-connectors api

* fix(core): avoid patch api empty update case

avoid patch api empty update case

* feat(core): implement patch sso-connector config api (#4736)

implement patch sso-connector config api

* fix(test): replace SAML provider name with dummy name

replace SAML provider name with dummy name
as we are going to implement the SAML connector soon

* fix(core): fix rebase error of findAll query output type

fix rebase error of the findAll query output type
2023-10-25 14:44:58 +08:00
Gao Sun
0554ee9847
chore: use sentence case 2023-10-25 14:01:49 +08:00
Gao Sun
fb48db4185
Merge pull request #4739 from logto-io/gao-add-organization-user-api-tests
chore(test): add integration tests for new APIs
2023-10-24 23:46:04 -05:00
Gao Sun
7c4f0cd56f
Merge pull request #4738 from logto-io/gao-refactor-integration-tests
refactor(test): manage test resource lifecycle
2023-10-24 23:43:50 -05:00
Gao Sun
5b2e4c87b1
Merge pull request #4725 from logto-io/gao-console-org-12
refactor(core,console): fixing to-dos
2023-10-24 23:42:06 -05:00
Gao Sun
52d8e3ad37
refactor(console): fixing code review to-dos 2023-10-25 12:40:14 +08:00
Xiao Yijun
125a3dd230
fix(experience): correct mfa flow state for switch mfa factors link (#4737) 2023-10-24 23:12:33 +08:00
Gao Sun
63d6a3b7db
chore(test): add integration tests for new APIs 2023-10-24 22:00:18 +08:00
Charles Zhao
a976799621
refactor(console): improve responsiveness in all details pages (#4712) 2023-10-24 13:52:19 +00:00
Gao Sun
bdf5892c67
refactor(test): manage test resource lifecycle 2023-10-24 20:51:39 +08:00
Gao Sun
bc5a1039f0
refactor(core,console): fixing to-dos 2023-10-24 15:44:00 +08:00
Xiao Yijun
89e9b4810b
feat(experience): skip mfa binding (#4724) 2023-10-24 06:29:32 +00:00
wangsijie
478c0c5af9
feat(core): skippable bind mfa prompt (#4697)
feat(core): skipable bind mfa prompt
2023-10-24 12:56:48 +08:00
Gao Sun
c988d52de0
Merge pull request #4714 from logto-io/gao-console-org-8
feat(core): organization apis
2023-10-23 23:55:24 -05:00
Gao Sun
962204ef5e
Merge pull request #4696 from logto-io/gao-console-org-4
feat(console,core): edit permissions and roles
2023-10-23 23:49:02 -05:00
Gao Sun
6581108450
Merge pull request #4689 from logto-io/gao-console-org-3
feat(console): organization roles table
2023-10-23 23:43:15 -05:00
Xiao Yijun
02e72ea425
feat(experience): implement backup code experience flow (#4699) 2023-10-23 16:20:07 +08:00
wangsijie
a20e9a2641
feat(core,schemas): verify backup code (#4695) 2023-10-23 16:00:58 +08:00
Xiao Yijun
87df417d1a
feat(console): support HTTP for webhook requests (#4716) 2023-10-23 13:56:09 +08:00
Gao Sun
fbe9f7e89a
chore(test): fix integration tests 2023-10-23 13:06:55 +08:00
Gao Sun
a1e0d5843e
refactor(test): fix integration test 2023-10-20 16:21:06 +08:00
Gao Sun
d97b86175d
refactor(test): fix integration test 2023-10-20 15:39:14 +08:00
wangsijie
b972397f80
refactor(core,phrases): change interaction bind-mfa to array (#4680) 2023-10-20 13:48:36 +08:00
Gao Sun
d4d2a7256e
refactor(test): fix integration test 2023-10-19 18:46:10 +08:00
Xiao Yijun
76a7b1da3f
refactor(test): avoid sending connection tests to 3rd-party connector services (#4700) 2023-10-19 09:52:32 +00:00
Gao Sun
b8c2a25d4f
refactor(phrases): fix case 2023-10-18 17:27:41 +08:00
Xiao Yijun
c9886f2860
refactor(test): refactor connector ui tests (#4688) 2023-10-18 14:08:59 +08:00
Xiao Yijun
8c0b55ab06
refactor(core): add time window validation tolerance for otp authenticator (#4684) 2023-10-18 11:56:01 +08:00
Gao Sun
98b2eed6ec
Merge pull request #4666 from logto-io/gao-handle-db-errors
refactor(core): organization apis error handling
2023-10-17 04:25:50 -05:00
Gao Sun
8f1a4cb52e
Merge pull request #4665 from logto-io/gao-org-apis-7
feat(core): get organizations for user api
2023-10-17 04:24:49 -05:00
Xiao Yijun
f67b3a8d6b
test(experience): add tests for webauthn experience flow (#4643) 2023-10-17 07:49:36 +00:00
Charles Zhao
b991597342
refactor(schemas,core,console): unify the usage of OIDC "keyType" in both frontend and backend (#4670) 2023-10-16 22:27:46 -05:00
Xiao Yijun
a2ede7e36e
refactor(test): reset mfa settings after testing (#4671) 2023-10-16 09:42:42 +00:00
Xiao Yijun
7d7f435bc1
chore(console): update mfa phrases (#4669) 2023-10-16 17:18:10 +08:00
Gao Sun
718053739c
Merge pull request #4659 from logto-io/gao-org-apis-5
feat(core): organization - user relation apis
2023-10-16 03:21:34 -05:00
Gao Sun
33e9a5d695
Merge pull request #4658 from logto-io/gao-add-relation-routes
refactor(core): `addRelationRoutes()` for `SchemaRouter`
2023-10-16 02:16:41 -05:00
Gao Sun
d69a73617e
Merge pull request #4657 from logto-io/gao-org-apis-4
feat(core): role - scope relation apis
2023-10-16 02:15:18 -05:00
Gao Sun
a74e523bbe
Merge pull request #4651 from logto-io/gao-org-apis-3
feat(core): organization role APIs
2023-10-16 02:13:24 -05:00
Gao Sun
c3219f6fcd
refactor(core): organization apis error handling 2023-10-16 14:04:03 +08:00
Gao Sun
406e54e84f
feat(core): get organizations for user api 2023-10-15 23:15:09 +08:00
Gao Sun
dd8c299547
refactor(test): fix api test 2023-10-15 23:14:57 +08:00
Gao Sun
a3a4c8a431
refactor(core): add pagination to relation queries 2023-10-15 22:51:02 +08:00
Gao Sun
d393741366
feat(core): organization - user - organization role apis 2023-10-15 13:54:58 +08:00
Charles Zhao
35f57639e5
fix(core): dispose tenant cache on demand in order to hot reload oidc provider (#4641)
* fix(core): dispose tenant cache on demand

* chore: add comments for the tenant cache invalidation mechanism

* refactor(core): refactor dispose tenant cache implementation per review comments

* refactor(core): change `invalidateCache` to a class member method

* test(core): add test cases for Tenant class
2023-10-14 12:34:03 +00:00
Gao Sun
e6d3db6e80
feat(core): organization - user relation apis 2023-10-14 20:06:14 +08:00
Gao Sun
eae1c5849e
refactor(core): addRelationRoutes() for SchemaRouter 2023-10-14 19:32:08 +08:00
Gao Sun
6ffdf0581a
feat(core): role - scope relation apis 2023-10-14 17:00:03 +08:00
Gao Sun
57af573fe1
feat(core): organization role APIs 2023-10-13 18:57:34 +08:00
Gao Sun
d5a87623de
Merge pull request #4645 from logto-io/gao-refactor-integration-test-apis
refactor(test): add ApiFactory for integration tests
2023-10-13 05:09:36 -05:00
Gao Sun
f0e6cf3199
Merge pull request #4640 from logto-io/gao-org-apis-2
feat(core): add organization scope APIs
2023-10-13 05:08:47 -05:00
Xiao Yijun
dde18a4cac
chore: update experience test since it will fail randomly when running ci (#4649) 2023-10-13 17:41:30 +08:00
Gao Sun
e75a0cf1f1
refactor(test): add ApiFactory for integration tests 2023-10-12 16:31:27 +08:00
Gao Sun
5fca07ee8d
refactor(core): throw duplicate error 2023-10-12 15:12:29 +08:00
Gao Sun
996d550382
feat(core): add organization scope APIs 2023-10-12 14:57:13 +08:00
Gao Sun
c3b9e57fe3
Merge pull request #4620 from logto-io/gao-org-apis-1
feat(core): org basic apis
2023-10-11 05:58:07 -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
4110409bd1
refactor(core): organization crud apis 2023-10-11 12:48:20 +08:00
Xiao Yijun
b68588c0f6
test(experience): add tests for totp experience flow (#4619) 2023-10-09 11:44:03 +08:00
Gao Sun
2c340d3799
refactor(core): support roles scope for ID token (#4600)
* refactor(core): support `roles` scope for ID token

* chore: update changeset
2023-10-07 10:20:51 +00:00
Darcy Ye
c11fafd72c
chore(test): add M2M RBAC console test (#4598)
* chore(test): add m2m rbac console test

* fix: fix m2m rbac console ui test
2023-09-28 08:53:21 +00:00
Darcy Ye
aad3e2c7bb
chore(phrases,test): update M2M RBAC i18n content (#4595)
* chore: m2m rbac app/user details page assign role button sentence case

* chore(phrases,test): update m2m rbac i18n

* chore: remove untranslated tag in en
2023-09-28 11:24:22 +08:00
wangsijie
6a32f50d15
feat(core,schemas,phrases): verify totp to sign in (#4570) 2023-09-27 09:12:25 +08:00
Darcy Ye
acf460290c
chore(console,phrases): fix console UI issues (#4585) 2023-09-27 08:55:26 +08:00
wangsijie
c3f865ac2c
test: add tests for mfa totp flows (#4566) 2023-09-26 14:42:02 +08:00
Gao Sun
827123faa0
feat(core): integrate basic sentinel (#4562)
* feat(core): integrate basic sentinel

* chore: add integration tests

* refactor(test): fix toast matching

* chore: add changeset

* refactor(test): update naming
2023-09-25 08:20:17 +00:00
Darcy Ye
352ca03177
refactor(console,phrases,core): add roles and logs tabs for m2m app details page (#4548) 2023-09-21 16:54:17 +08:00
Darcy Ye
19e7292f49
refactor(console): refactor assign role modal (#4503) 2023-09-18 02:34:13 +00:00
Darcy Ye
8366af442a
chore(core,test): enable advanced search params for GET /applications API (#4495)
* chore(core,test): enable advanced search params for GET /applications API

* refactor: add query by app type(s) filter

* refactor: reuse search for app types
2023-09-17 03:48:56 +00:00
Gao Sun
f9322d02dc
fix(console): highlight current tab in sidebar (#4524) 2023-09-15 13:40:11 +00:00
Gao Sun
9eb512b5a4
refactor(test): add cls and dcls util functions (#4513)
To build string for matching class names.
2023-09-15 10:20:51 +00:00
Gao Sun
7f1cc078ba
Merge pull request #4508 from logto-io/gao-rename-ui-to-experience
refactor: ui -> experience (part 1)
2023-09-15 17:57:04 +08:00
Gao Sun
fb100ce0f0
refactor(console): add isDevFeaturesEnabled env const (#4506) 2023-09-15 15:43:03 +08:00
Gao Sun
ea6b475a72
chore: fix lint errors 2023-09-15 01:02:09 +08:00
Gao Sun
092b3d7aea
refactor: ui -> experience (part 1) 2023-09-15 00:50:13 +08:00
Gao Sun
e1fac554db
test: add console tests for password policy (#4493)
* test: add console tests for password policy

* test: increase time duration

* test: fix sequencer

* chore: add jest-pptr config

* ci: separate experience and console tests

* test: skip tests of unpublished features
2023-09-14 17:28:00 +08:00
Xiao Yijun
fcacbbbcc8
feat(console): implement mfa config page (#4492)
* feat(console): implement mfa config page

* test(console): add ui tests for mfa configuration

* chore(console): remove unused eslint command comment
2023-09-13 15:14:59 +08:00
Gao Sun
fa8ac7761d
Merge pull request #4466 from logto-io/gao-add-flows-integration-tests
refactor(test): add flows integration tests
2023-09-12 21:38:07 +08:00
Charles Zhao
2a9a9263ea
feat(console): add guide support in api resource creation process (#4457)
* feat(console): add guide support in api resource creation process

* fix(test): ui integration test
2023-09-12 20:48:56 +08:00
Gao Sun
281fd55e63
refactor(test): fix naming and add comments 2023-09-12 19:07:42 +08:00
Gao Sun
423e799b5d
refactor(test): add flows integration tests 2023-09-12 18:42:15 +08:00
wangsijie
6cdd33bf1c
feat(core): update mfa in sign in experience (#4467) 2023-09-12 17:53:16 +08:00
Gao Sun
d10a23dba4
refactor: refine password policy details 2023-09-12 14:55:49 +08:00
Xiao Yijun
9644fa0615
chore: remove deprecated challenge task flags (#4468) 2023-09-11 17:46:13 +08:00
Darcy Ye
9251c2bb40
feat(core,test,phrases): add application-role related APIs (#4425) 2023-09-11 14:06:40 +08:00
Darcy Ye
285aa745e7
feat(core): add role-application related APIs (#4384)
* feat(core): add role-app related APIs

* chore(core): add search for GET role-application
2023-09-11 14:04:37 +08:00
Gao Sun
668e0e82a0
refactor(test): rename directories 2023-09-11 12:41:12 +08:00
Darcy Ye
f6caeacb5a
refactor(core,phrases,test): add user role APIs guard (#4382)
refactor(core,phrases): update roles API logics since type field is added to roles

refactor(test): add integration test cases

fix(core): should not manually filter out m2m role assigned to user

chore: silently filter out existing entities
2023-09-11 03:51:46 +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
Xiao Yijun
d1b92e99aa
refactor(console): display webhook test result on details page (#4453) 2023-09-11 10:05:19 +08:00
Gao Sun
bbdf57b369
Merge pull request #4418 from logto-io/gao-console-others-to-content
refactor(console): update tab name others -> content
2023-09-05 14:28:34 +08:00
Xiao Yijun
8e4e08f731
refactor(console): remove no-data social section from changes alert modal (#4424)
* refactor(console): remove no-data social section from changes alert modal

* test(console): add sign-in config diff ui tests
2023-09-05 10:59:01 +08:00
Gao Sun
cb696d7e44
Merge pull request #4416 from logto-io/gao-implement-password-policy-guard
feat(core): guard password by policy
2023-09-05 00:11:34 +08:00
Xiao Yijun
f87c253128
refactor(phrases): update no-social connector notification (#4426) 2023-09-04 18:12:18 +08:00
Gao Sun
e599e3651c
fix(test): update integration test 2023-09-03 23:20:20 +08:00
Gao Sun
b1f809214c
refactor(core): fix integration tests 2023-09-03 17:45:33 +08:00
Xiao Yijun
2b39964fd2
test: add ui tests for applications (#4407)
* test: add ui tests for applications

* refactor(test): simplify application ui tests
2023-08-31 06:31:03 +00:00
Xiao Yijun
4f5881304e
refactor(test): add modal ui test helpers (#4412) 2023-08-31 12:14:19 +08:00
Xiao Yijun
1cf2657d7f
refactor(test): improve test codes about save & discard changes (#4401) 2023-08-28 18:27:52 +08:00
Xiao Yijun
c5a3513798
refactor(test): improve waitForToast ui test helper (#4400)
* refactor(test): improve `waitForToaster` ui test helper

* refactor(test): rename `waitForToaster` to `waitForToast`

* refactor(test): reorg connector deletion helper method
2023-08-28 17:30:04 +08:00
Xiao Yijun
4a532a358d
test: add ui tests for sign-in preview (#4377) 2023-08-18 09:15:45 +00:00
Xiao Yijun
462f677cdc
test: add ui tests for sign-up and sign-in settings (#4373) 2023-08-18 16:46:00 +08:00
Xiao Yijun
d958494848
test: add ui tests for sie branding config (#4324) 2023-08-16 17:20:51 +08:00
Xiao Yijun
b10ec5d1e9
test: add ui tests for RBAC operations (#4339) 2023-08-16 17:10:11 +08:00
Xiao Yijun
8354fa87ad
test: add ui tests for passwordless connectors (#4331) 2023-08-16 15:41:59 +08:00
Xiao Yijun
96634b06b7
test: add ui tests for social connectors (#4328) 2023-08-15 15:33:50 +08:00
Xiao Yijun
3c903b4778
test: interaction api counter cases and response status guard (#4306)
* test: add interaction api counter cases and response status guard

* fix(core): fix koa router method type definition
2023-08-14 10:38:05 +08:00
Xiao Yijun
0fcea5ae5e
test: add sad paths for register with identifiers flow (#4299) 2023-08-11 18:40:06 +08:00
Xiao Yijun
56c8436e19
test: add sad paths for sign in with password identifier flow (#4294)
* test: add sad paths for sign in with password identifier flow

* refactor(test): align sie config reset logic for interaction api tests
2023-08-10 13:24:37 +08:00
Xiao Yijun
24686cf0bb
test: add sad paths for reset password flow (#4298) 2023-08-10 11:37:23 +08:00
simeng-li
74849dde22
test(core): add hasActiveUser test case (#4307)
* test(core): add hasActiveUser test case

add hasActiveUser test case

* ci: remove integration-test code owner

remove integration-test code owner
2023-08-10 10:28:35 +08:00
Xiao Yijun
dfde117b6d
test: add sad paths for social interaction flow (#4300) 2023-08-09 12:10:49 +08:00
Xiao Yijun
2660a1e132
test: add sad paths for sign-in with passcode flow (#4296) 2023-08-09 11:17:25 +08:00
Xiao Yijun
ae0322621f
refactor(test): refactor expectRejects helper method to support status code checking (#4292)
* refactor(test): refactor `expectRejects` helper method to support status code checking

* refactor(test): replace `createResponseWithCode` with `expectRejects`
2023-08-07 13:16:09 +08:00
Darcy Ye
028ffae068
refactor(core,console): filter out webhook logs from audit logs list (#4243)
* refactor(core,console): filter out webhook logs from audit logs list

* refactor(core): separate the method of finding audit logs and webhook logs

* refactor(test): update integration tests

* chore: adopt code review suggestions

* refactor(core): refactor build log condition method and update its use cases
2023-08-01 03:23:03 +00:00
Gao Sun
a427ea05c3
refactor(test): add expectNavigation() (#4254) 2023-07-27 16:04:28 +08:00
Gao Sun
6d1ea26cdc
refactor(core): improve error handling (#4198)
* refactor(core): improve error handling

* test(core): add integration tests
2023-07-22 17:32:25 +08:00
Gao Sun
4c9aef827b
refactor(console): use global router (#4191)
* refactor(console): use global router

* refactor(console): clean swr cache when switching tenant

* refactor(console): bug fix

* chore(test): increase integration test timeout

* refactor: update packages/console/src/App.tsx

Co-authored-by: Charles Zhao <charleszhao@silverhand.io>

---------

Co-authored-by: Charles Zhao <charleszhao@silverhand.io>
2023-07-21 06:12:01 +00:00
Gao Sun
0a5aa54bc2
refactor(console): save console redirect after sign-in (#4180)
* refactor(console): save console redirect after sign-in

* test: add integration test for saved redirect
2023-07-20 22:44:14 +08:00
Darcy Ye
e441c089d7
fix(core,connector): fix patch connector api cannot reset config/metadata bug (#4166) 2023-07-14 17:38:56 +08:00
Gao Sun
e89ccd4d4c
refactor: cloud cleanup (#4103)
* refactor: cleanup cloud

* chore: fix cloud dependencies

* chore: update LICENSE
2023-07-03 14:33:19 +08:00
Darcy Ye
51fb943986
fix(console): fix multi tenancy flow and sync ui-test 2023-06-27 15:38:57 +08:00
Gao Sun
a3e3363b10
refactor: fix test and components 2023-06-23 01:07:33 +08:00
Darcy Ye
013022d24f
fix(console): direct to new created tenant and clear create modal on open (#4051) 2023-06-19 07:06:06 +00:00
Darcy Ye
8f78515976
fix(cloud,test): should block when users trying to create too many tenants (#4048) 2023-06-19 14:45:33 +08:00
Darcy Ye
8770facec1
feat(console): add tenant loading page (#4031) 2023-06-18 16:50:00 +08:00
Darcy Ye
9fa2bc9235
fix(test): fix cloud UI test create new account idling URL mismatch error (#4037) 2023-06-15 14:46:05 +08:00
Gao Sun
298d29c39f
Merge pull request #4026 from logto-io/gao-upgrade-withtyped
refactor(console): use withtyped client for SWR
2023-06-13 18:16:34 +08:00
Gao Sun
8de7e5538d
test: test 2023-06-13 17:33:32 +08:00
Gao Sun
99c98b6654
refactor: minor improvements 2023-06-13 16:01:40 +08:00
Darcy Ye
e96e92b2df
feat(schemas,cloud): align tenant types (#4004) 2023-06-12 18:36:15 +08:00
Darcy Ye
69bd7ac88b
fix(cloud): delete tenant api (#4000) 2023-06-08 14:53:26 +08:00
Xiao Yijun
12ae2622b1
refactor(core): return 422 if failed to send a webhook test payload (#3970) 2023-06-05 16:02:43 +08:00
Gao Sun
e8ed876878
test: add default resource integration test 2023-06-04 20:46:43 +08:00
Charles Zhao
f89af550de
test: improve ui test stability and remove unnecessary code (#3945) 2023-06-01 09:35:29 +00:00
Charles Zhao
1d7330835c
fix(core): verify an empty string password should return 400 instead of 500 (#3939)
* fix(core): verify an empty string password should return 400 instead of 500

* test(core,test): add unit and integration tests for verify password api
2023-06-01 07:10:21 +00:00
Xiao Yijun
813e216398
fix(core): trigger reset password hook (#3916) 2023-06-01 12:18:49 +08:00
Xiao Yijun
f38d734e40
test: add ui tests for webhook management (#3923) 2023-05-30 11:18:39 +08:00
Darcy Ye
1b57f26533
feat(cloud,test): add DELETE /tenants/:id API (#3900) 2023-05-30 02:50:06 +00:00
Darcy Ye
47abbd8cb6
feat(cloud,schemas): add PATCH /tenants/:id API (#3881) 2023-05-30 00:54:52 +08:00
Charles Zhao
bb77850e62
chore(phrases): remove unnecessary exclamation points from phrases (#3918)
* chore(phrases): remove unnecessary exclamation points from phrases

* chore: remove unnecessary white spaces
2023-05-29 06:31:07 +00:00
Darcy Ye
62b1ee6b72
feat(cloud,schemas,cli): update cloud service tenant APIs (#3875) 2023-05-29 04:57:10 +00:00
Xiao Yijun
51f61b455a
feat(core): support pagination for GET /hooks api (#3904) 2023-05-29 11:43:08 +08:00
wangsijie
0edd549365
feat(core): add domain routes (#3892) 2023-05-29 11:27:23 +08:00
Xiao Yijun
387e04ec4a
fix(console): allow wrap for toast content (#3910) 2023-05-26 22:19:47 +08:00
Darcy Ye
8cbf87bb73
feat(schemas,cli,core,cloud): add manage tenant self scope (#3865) 2023-05-26 17:38:09 +08:00
Xiao Yijun
9550552438
chore(test): clean up created hooks on test done (#3907) 2023-05-26 10:44:56 +08:00
Xiao Yijun
d3d63b1562
feat(core): test webhook (#3889) 2023-05-25 12:16:29 +08:00
Xiao Yijun
37c3f5952d
refactor(test): split hook integration tests into several files (#3891) 2023-05-24 15:01:32 +08:00
Xiao Yijun
166c6f7da0
feat(core): get hook execution stats (#3882) 2023-05-24 08:28:39 +08:00
Gao Sun
02eee1956f
Merge pull request #3879 from logto-io/gao-feature-updates-for-openai-plugins
feat: updates for openai plugins
2023-05-23 22:55:47 +08:00
Xiao Yijun
0c79437ba4
feat(core): sign hook payload data (#3854) 2023-05-23 18:02:17 +08:00
Gao Sun
c7ff18bbdf
refactor: fix api tests 2023-05-22 22:47:31 +08:00
Gao Sun
7e7f292534
refactor: fix api tests 2023-05-22 22:26:52 +08:00
simeng-li
adbed8e47d
refactor(core): sync social email and phone for new registered user
sync social verified email and phone for new registered user
2023-05-22 22:09:18 +08:00
Gao Sun
9c59102f97
chore: add integration tests 2023-05-22 22:04:09 +08:00
Xiao Yijun
b92508db3a
feat(core,schemas): support get hook recent logs (#3859) 2023-05-22 19:01:54 +08:00
Charles Zhao
f1730db70b
test(test): add tests for console user management (#3863)
* test(test): add tests for console user management

* chore: remove unused dependency

* chore: remove testing screenshots
2023-05-22 13:31:45 +08:00
Xiao Yijun
9423b273b6
refactor: update webhook API (#3819) 2023-05-19 16:48:05 +08:00
wangsijie
f953289f75
test: remove tests with defaultManagementApi.role.id (#3855) 2023-05-17 15:19:12 +08:00
Charles Zhao
0023dfe38a
feat(core): add management APIs to help with linking social identities to user (#3821)
* feat(core): add management APIs to help with linking social identities to user

* chore: add changeset

* test: add integration tests

* chore: improve wording

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

* chore: improve wording

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

* refactor: return user identities after update

* chore: rename test filename

* chore: add code annotation

---------

Co-authored-by: Darcy Ye <darcyye@silverhand.io>
2023-05-15 19:25:50 +08:00
simeng-li
30cd7727de
fix(schemas): remove the notnull string min-length guard from response type (#3844)
remove the notnull string min-length guard from response type
2023-05-15 09:10:40 +00:00
simeng-li
beb6ebad50
test(core): update the resource response guard and integration tests (#3824)
* test(core): update the resouce response guard and integration tests

update the resource response guard and integration tests

* fix(test): fix test

fix resource test

* fix(schemas): add non-empty string type guard (#3826)

* fix(schemas): add non-empty zod guard to the string typed schema field

add non-empty zod guard to the string typed schema field

* fix(schemas): comment out non-empty string guard

comment our non-empty string guard for now

* chore: add change set

add change set

* fix(schemas): remove the guard if has default value
remove the guard if has default value

* refactor(core): replace zod merge using zod extend

replace zod merge using zod extend
2023-05-15 15:12:15 +08:00
Xiao Yijun
af02321ba2
fix(core): compatibility for retries field in HookConfig (#3834) 2023-05-15 11:41:46 +08:00
wangsijie
ce5377d729
test(core): add integration test for application isAdmin (#3829) 2023-05-15 10:25:02 +08:00
Xiao Yijun
59a6ad3b7d
test(core): add api response guard and error case tests for verification code (#3825) 2023-05-12 17:17:51 +08:00
Xiao Yijun
8fc5b78def
refactor(schemas): update hook schema (#3788) 2023-05-09 09:25:45 +08:00
wangsijie
97363e01dc
test(core): add api response guard and error case tests to log api (#3807) 2023-05-08 03:00:58 +00:00
Darcy Ye
520e0c3df3
chore(core,test): add status code guard for SIE, custom phrase and config APIs (#3813) 2023-05-08 10:43:57 +08:00
Darcy Ye
4d475bfa3b
chore(test): update connector integration tests (#3765) 2023-05-06 10:47:48 +00:00
Charles Zhao
0e46ddacca
chore: add response guard and integration tests for application APIs (#3771) 2023-05-06 04:05:50 +00:00
wangsijie
8baf8e5be6
test(core): add api response guard and error case tests to admin user (#3809)
test(core): add api response guard and error case tests to admin user api
2023-05-05 21:21:09 +08:00
wangsijie
5875d4cb3b
test(core): add api response guard and error case tests to connector api (#3806) 2023-05-05 21:20:58 +08:00
simeng-li
fafe27f87a
test(core): add exception cases for role api and scope api (#3802)
* feat(core): add roles api guard

add roles api guard

* feat(core): add scope api response guard

add scope api response guard

* test(core): add exception cases for role api integration tests

add exception cases for role api integration tests

* fix(console): fix lint error

fix lint error

* fix(core): remove guard status code

remove guard status code

* fix(core): resolve comments

resolve comments

* fix(core): remove useless 401,403 code guard

remove useless 401,403 code guard

* fix(core): fix swagger 422 guard error

fix swagger 422 guard error
2023-05-05 16:18:27 +08:00
Charles Zhao
9200169f80
chore: add response guard and integration test for .well-known api (#3769) 2023-05-05 15:07:26 +08:00
simeng-li
f20f65407f
fix(core): add duplicate resource indicator error guard (#3797)
* fix(core): add duplicate resource indicator error guard

add duplicate resource indicator error guard

* fix(core): omit resource indicator from patch api

omit resource indicator from patch api

* fix(test): fix ut

fix ut
2023-05-04 15:33:13 +08:00
simeng-li
5c0ed8e79e
test(core): add api response guard and error case tests to dashboard api (#3789)
* test(core): add dashboard api response guard

add dashboard api response guard

* test(core): add dashboard integration tests

add dashboard integration tests
2023-05-02 20:58:48 +08:00
Darcy Ye
6e5b48bdcb
chore(schemas,test,core): add IT to ensure mock connectors are installed (#3762) 2023-04-28 15:42:43 +08:00