* refactor(core,schemas): add user detail payload to User.Deleted DataHook event
add user detail data payload to the User.Deleted DataHook event
* fix(core): fix unit test
fix unit test
* feat(core): add suctom scopes.updated hook events
add scopes.updated hook event to role creation api
* chore(core): add dev feature guard
add dev feature gurad
* feat(core): fetch scopes details and return to the hook
fetch scopes details and return to the hook
* refactor(core): mark deprecated body of roles/:id/scopes api
mark deprecated body of roles/:id/scopes api
* fix(test): fix unit test
fix unit test
* feat(core): trigger user data hook event on interaction api call
trigger user data hook event on interaction api call
* chore(core): refine comments
refine comments
* fix(core): fix the interactionHookMiddleware
fix the interactionHookMiddleware
* test(core): add integration tests
add integration tests for interaction hooks
* chore(test): remove legacy test
remove legacy test
* feat(schemas): define data hook events
define data hook events
* fix(schemas,core): fix the type error
fix the type error
* fix(core): fix unit test
fix unit test
* feat(test): add integration tests for DataHooks
add integration tests for DataHooks
* fix(test): fix ut of management api hook middleware
fix ut of the management api hook middleware
* refactor(test,core,schemas): refactor some DataHook definiations
refactor some DataHook definitations
* chore(test): remove upper scope describe wrap
remove upper scope describe wrap
* fix(test): fix tests
fix tests
* refactor(schemas): rename the info.update events
rename the info.update events
* refactor(schemas): rename
rename
* refactor(core,schemas): refactor DataHook code
refactor DataHook code to address some code review comments
* fix(test): fix ut
fix ut
* fix(schemas): update DataHookEventPayload type
update DataHookEventPayload type
* chore(schemas): update comments
update comments
* feat: init management api hook middleware function
* refactor: fix type issues
* feat(core): implement auto triggered management api hooks
implement auto triggered managment api hooks
* refactor(console,core,schemas): rename the managementHook to dataHook
rename the managementHooke to dataHook and redefine the types
* feat(core): add dev feature guard
add dev feature guard
* chore: update changeset
update changeset
* refactor(core,console,schemas,shared): update the webhook logics
update the webhook logics. Address some PR review comments
* fix(test): fix integration tests
fix integration tests
* fix(test): remove legacy code
remove legacy code
* refactor(core,schemas): refactor the hook library code
refactor the webhooks library code. address some comments
* fix(core): address rebase issue
update console log using getConsoleLogFromContext
* fix(core): fix ut
fix ut
* fix(core): refactor data webhook code
refactor data webhook codes
* refactor(core): clean up some management api webhook code
clean up some management api webhook code
---------
Co-authored-by: simeng-li <simeng@silverhand.io>
* fix(experience): redirect to sign-in page on socical sign-in error
redirect user to sign-in page on social sign-in error
* test(experience): add integration tests
add integration tests
* feat(console): update user access immediately on tenant role updates
* chore: improve comments
Co-authored-by: Gao Sun <gao@silverhand.io>
---------
Co-authored-by: Gao Sun <gao@silverhand.io>
* feat(core): add api to fetch user organization scopes
* chore: add openapi.json
* fix: integration test
* chore: turn off max-lines lint rules for openapi json files
* chore: add changeset
* refactor: return all scope information instead of just the name
* fix(schemas): fix the get interation/consent api bug
fix the get interation/consent api bug
* chore: update changeset
update changeset
* fix: update changeset
update changeset
* refactor(schemas, console): alter the resource scopes description field to nullable (#5504)
* refactor(schemas, console): alter the resoruce scopes description field nullable
make the resourec scopes description nullable
* fix(test): fix the type issue in the integration test
fix the type issue in the integration test
* fix(console): add the field register
add the field register
* fix: update the changeset
update the changeset
* fix(console,test): update comments and rebase
update comments and rebase the master
* fix(core): mgmt API scopes are not assignable to user roles
* feat: add alteration script to remove mgmt api scopes already assigned to user role
* chore: use option object
* chore(deps): update logto js sdk monorepo packages
* chore: rebase master and update lock file
rebase master and update lock file
* fix(test): update the @logto/node version
update the @logto/node version
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: simeng-li <simeng@silverhand.io>
* feat(console): hide m2m and third-party app in the empty app list guide
hide m2m and third-party app in the empty app status guide
* fix(test): fix integration tests
fix integration tests
* feat(core): implement application user consent organizations api
implement application user consent organizations api
* test(core): add api integration tests
add api integration tests
* feat(console,phrases): add new third-party applicaiton to the guide library
add new third-party applicaiton to the guide library
* fix(test): adjust the test order
adjust the test order
* fix(phrases): add untranslated tag
add untranslated tag
* refactor(core): add koaAutoConsent middleware
Add koaAutoConsent middleware to allow auto consent and redirect direactly from the server side.
* refactor(core): use koaMount to apply the consent middleware
use koaMount to apply the consent middleware
* feat(test): update the integration tests
update the integration tests
* fix(test): update the unit test for consent
update the unit test for consent
* feat(core,schemas): add application user consent scope delete api
add application user consent scope delete api
* chore(core): add the invalid user consent scope type fallback error
add the invalid user consent scope type fallback error
* 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
* 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
* fix(console,test): should clear error message and add console integration test
* refactor(test): refactor code using cls and dcls methods if possible
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* feat(core): add put interaction sso authentication api
add put interaction sso authentication api
* fix(test): fix integration test type
fix integration test type
* 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>
* 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
* 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
* 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
* 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