-
-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(console): refactor useApi #5549
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
COMPARE TO
|
Name | Diff |
---|---|
packages/console/src/hooks/use-api.ts | 📈 +1.16 KB |
wangsijie
approved these changes
Mar 26, 2024
b18569b
to
44bf8e3
Compare
d8efb8a
to
16ca939
Compare
Base automatically changed from
simeng-refactor-sso-provider-data-structure
to
master
March 27, 2024 03:10
refactor useApi hideToast logic
16ca939
to
843b4a4
Compare
SamSalvatico
added a commit
to ogcio/logto
that referenced
this pull request
Apr 11, 2024
* chore(schemas): renaming * refactor(core): refactor code * refactor(core): overload function interface * refactor(core): refactor * feat(core): add GET /configs/jwt-customizer API * chore(core,test): update tests and refactor getJwtCustomizer query * fix(test): fix tests * refactor(core): refactor * feat(core): add GET /configs/jwt-customizer API * feat(core): add DELETE /configs/jwt-customizer API * fix(core): fix rebase * refactor(console): implement environment variables input field (1/2) (logto-io#5471) * refactor(console): extract the KeyValueInput ds component extract the KeyValueInput ds component * fix(console): remove unused styles remove unused styles * refactor(console): extract the FormField from KeyValueInput extract the FormField from KeyValueInput * fix(console): refactor some code based on code review comment refactor some code based the code review comment * feat(console,phrases): implement environment variables input field (2/2) (logto-io#5473) feat(console,phrases): implement environment variables input field implement environment variables input field * feat(console,phrases): add test sample code editor (logto-io#5475) * feat(console,phrases): add test sample code editor add test sample code editor * fix(console): remove unused styles remove unused styles * refactor(console): refactor the components structure erfactor the components structure * refactor(console): clean up the root component clean up the root component * feat(console,phrases): add test result component (logto-io#5479) * feat(console,phrases): add test result component add test result component * fix(console): remove unused styles remove unused styles * feat(core): create user with avatar and custom data (logto-io#5476) * feat(core): add password algorithm transition (logto-io#5481) * chore(console): component rename (logto-io#5480) rename component XXXPanel -> XXXSection * fix(console): fix input field background color (logto-io#5478) * feat(console, phrases): implement the copy, clear and reset button (logto-io#5490) * refactor(console): replace copy button with CopyToClipboard component replace copy button with CopyToClipboard component * feat(console): implement the clear and reset button implement the clear and reset button * refactor(console): bind RHF controller to the code editor bind RHF controller to the code editor * chore(console): add some comments add some comments * feat(core,schemas): update jwt customizer user info context * feat(console): add change alert and save changes footer (logto-io#5492) * feat(console): add change alert and save changes footer add change alert and save changes footer * chore(console): add useMemo hook add useMemo hook * refactor(experience): skip non-object messages in native (logto-io#5491) * refactor(experience): skip non-object messages in native * chore: add changeset * chore(schemas): add cloud scope, service log type and API guard * refactor(core): update organization invitation apis (logto-io#5474) * refactor(core): update organization invitation apis * chore: add api tests * refactor(core,console): align the jwt token path enum (logto-io#5493) align the jwt token path enum used in console and core * feat(console,phrases): integrate jwt customizer api (logto-io#5495) * feat(console,phrases): integrate jwt customizer api integrate jwt customizer api * chore(console): update the comment update the comment * fix(console): clear the console logs clear the console logs * refactor(console,core,schemas): rename the jwtCustomizer related type and guards (logto-io#5496) rename the jwtCustomizer related type and guards * feat(phrases): add i18n phrases for cloud collaboration * feat(console): add global loading skeleton (logto-io#5498) add global loading skeleton * fix(console): fix code edtior set undefined value bug (logto-io#5499) fix the code editor set undefined value bug * fix(core): the koa response status guard missing 422 in sso integration API (logto-io#5506) * chore(schemas): export custom JWT API request body type (logto-io#5510) chore(schemas): export custom jwt API request body type * refactor: remove slonik from shared * refactor: fix errors * refactor: use silverhand slonik * chore: upgrade slonik * refactor: remove unused files * chore: add changeset for the bug fix PR (logto-io#5507) add changeset for the bug fix PR * feat(core): set oidc issuer to custom domain (logto-io#5509) * feat(core): set oidc issuer to custom domain * refactor(core): get tenant id return whether is custom domain * test(core): mock crypto functions in password tests (logto-io#5522) * refactor: update invitation apis * feat: allow get invitations by invitee * refactor(console): refactor the code editor type definition (logto-io#5516) * refactor(console): refactor the code editor type definition refactor the code editor type definition * refactor(console): extract type definition gen process extract the type definition gen step to the build time. As typescript is not available at run time. * fix(console): add generate to console build script add generate to console build script * fix(console): add prettier format add prettier format * refactor(console): replace the field table with type definition code (logto-io#5519) * refactor(console): replace the field table with type definition code replace the field table with type definition code * refactor(console): rebase and pickup the generated type definitions rebase and pickup the generated type definitions * feat: return and store connector raw data * chore: add exception for connector template * refactor(core): update user context type * feat: add oidc standard claims to user * refactor(core,schemas): refactor to improve lib method performance * fix(console): fix some user related type in console * refactor(console,phrases): refactor the jwt customizer content (logto-io#5527) * refactor(console,phrases): refactor the jwt customizer content refactor the jwt customizer content * fix(console): add isDev guard add isDev guard * refactor(core): refactor oidc sso connector (logto-io#5528) refactor oidc sso connector * refactor: fix type issues * refactor: fix tests * chore: remove org role scopes field since it relies on pagination setup * feat: add profile api, update api and database, add tests * chore: add changeset and api doc * ci: bump workflow version (logto-io#5533) * fix(schemas): fix the get interation/consent api bug (logto-io#5503) * 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 (logto-io#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 * chore: add comments * feat(core): add POST /configs/jwt-customizer/test API * refactor(core): use discriminate union for custom jwt test API * chore: update core dependency * chore: add todo * chore: remove 500 status guard * refactor: refactor * refactor(core): add cloud-only API prune for API docs * refactor: remove cloud only operations when needed * refactor: keep origin customJwtFetcherGuard * refactor: adopt suggestion * chore(schemas): remove deprecated `prune:logs` scope (logto-io#5524) * chore: add status 403 for custom jwt test API * feat(console): integrate jwt customizer test api (logto-io#5532) * feat(console): integrate jwt customizer test api integrate jwt customizer test api * refactor(console,core): jwt test api integration jwt test api integration * chore: add cloud connection scope config for fetching custom jwt --------- Co-authored-by: Darcy Ye <darcyye@silverhand.io> * feat(console): add tenant member and invitation lists (logto-io#5501) * feat(console): add tenant member and invitation lists * refactor: polish code per comments * fix: lockfile * Update README.md (logto-io#5535) logto-io#1937 (comment) * refactor: fix test and ci * feat(core): add the support on custom JWT feature * fix: cloud connection should bypass custom JWT flow * chore: update cloud dependency * refactor(core): add cache for cloud connection data * refactor: block admin tenant from using creating jwt-customizer API * refactor: remove credentials cache * refactor: try catch extraTokenClaims function to avoid breaking the auth process * style(console): fix the jwt test panel layout (logto-io#5538) fix the jwt test panel layout * chore: fix * chore: fix * refactor(core): remove unused mark mfa skip function (logto-io#5517) fixed logto-io#5482 * chore(schemas): add comments for `ReservedPlanId` (logto-io#5542) * refactor(console): extract shared quota between featured plan and comparison table (logto-io#5543) * refactor(console): avoid nested modal content for role creation (logto-io#5544) * refactor: reorder code * refactor: not update console cloud dependency * refactor(phrases,core,console): update API and console error handling/display * chore: add comments * refactor(schemas,core,console): skip onboarding if user has pending invitations (logto-io#5547) * fix(core): fix the post domains api error status code (logto-io#5552) fix the post domains api error status code * chore: bump @logto dependencies (logto-io#5548) * chore(phrases): add i18n phrases for console invitation interim pages (logto-io#5553) * refactor(console): reorg sidebar menu items (logto-io#5550) * fix(core,phrases): fix custom JWT PUT API block admin tenant logic * feat: support direct sign-in (logto-io#5536) * feat: support direct sign-in * chore: add changesets * refactor: add test cases * chore(deps): upgrade logto sdks * chore(deps): update softprops/action-gh-release action to v2 (logto-io#5486) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(schemas): update customJwtFetcherGuard to specify custom jwt use case * feat(console): invite members dialog (logto-io#5531) * feat(console): add console landing page to accept user invitation (logto-io#5554) * chore(deps): update packges (logto-io#5545) * chore(deps): upgrade puppeteer * chore: replace plugin * refactor: fix tests * feat(core,schemas): add new Azure OIDC SSO connector (logto-io#5540) add new Azure OIDC SSO connector * refactor(core,schemas): refactor the sso connector factory type (logto-io#5541) * refactor(core,schemas): refactor the sso connector factory type refactor the sso connector factory type and add providerType to the config data * fix(core): fix ut fix ut * refactor(schemas): add the providerType to the providerDetails return type add the new providerType property to the providerDetails return type * refactor(console): refactor useApi (logto-io#5549) refactor useApi hideToast logic * refactor(console): refactor sso detail pages (logto-io#5551) * refactor(console): refactor sso detail pages refactor sso details pages * fix(console): fix the sso paywall guard content fix the sso paywall guard content * style(console): fix the color code white css (logto-io#5564) fix the color code white css * feat(console): support signing-key rotation for oss version (logto-io#5559) * fix(console,phrases): api resource indicator should be a valid absolute uri (logto-io#5561) * fix(console,phrases): api resource indicator should be a valid absolute uri * refactor: use vitest for connectors (logto-io#5562) * fix(console): fix jwt test context code editor bug (logto-io#5563) fix jwt test context code editor bug * fix(console): fix the zod-to-ts type infer bug (logto-io#5566) fix the zod-to-ts type infer bug * feat(console): implement interim landing page for new users to join invited tenants (logto-io#5560) * feat(console): support permission editing (logto-io#5567) * chore(schemas,core): update custom JWT sample token payload guard * feat(console): add quick join options in tenant selector dropdown (logto-io#5568) * feat(console): implement interim landing page for new users to join invited tenants * feat(console): add quick join options in tenant selector dropdown * chore(console): update the default user context as well * refactor: remove jest * refactor: remove jest * refactor: add back `build:test` for other packages * chore: add test coverage pacakge * refactor: remove jest * test: wait 0ms after each test * refactor(console): update tenant settings access per user tenant scopes (logto-io#5571) * test: add integration tests for jwt (logto-io#5565) * test: improve integration tests (logto-io#5577) * refactor(schemas): remove invite member scope from tenant member role (logto-io#5578) * fix(deps): update dependency snakecase-keys to v7 (logto-io#5556) * fix(deps): update dependency snakecase-keys to v7 * test: wait for 1ms for every api test --------- Co-authored-by: Gao Sun <gao@silverhand.io> * fix(deps): update dependency snake-case to v4 (logto-io#5534) Co-authored-by: Gao Sun <gao@silverhand.io> * chore: add comments for cloud seed data (logto-io#5583) * feat(schemas): add new scope read:member to both tenant admin and member roles (logto-io#5582) * chore: update cloud version and the way to call cloud custom JWT API * fix(console,phrases): should check duplicated emails when inviting members (logto-io#5581) fix(console,phrases): check duplicated emails when inviting members * fix(console): revert the custom jwt forms overflow hidden (logto-io#5573) revert the custom jwt forms overflow hidden styles * feat(schemas): add util method to convert admin tenant org id to user tenant id (logto-io#5570) * refactor: use ky in integration tests (logto-io#5584) * refactor: use ky in integration tests * refactor: remove node-fetch * refactor: fix test cases * refactor: remove waitFor after each test * feat: support direct sign-in for sso (logto-io#5589) * chore(core): update GET /configs/jwt-customizer/:tokenPath API error handling (logto-io#5595) * refactor(core): reorg and separate logto-config APIs into files * chore(cli): update translate CLI configs * fix(console): refresh invitation list after inviting members (logto-io#5593) * test: add tests for username case sensitive (logto-io#5597) * refactor(console): move organization template into a single page (logto-io#5590) * refactor(console): move organization template into a single page * feat(phrases): add org template translations * feat(console): implement custom jwt landing page implement custom jwt landing page * refactor(console): relocalte the component files relocate the component files * refactor(console): rename the jwtClaims page rename the jwtClaims page * refactor(console,phrases): refactor the customize jwt details page refactor the customize jwt details page * refactor(console): remove unused element remove unused element * refactor(console): redesign the jwt details page redesign the jwt details page * feat(console): update jwt create page button text update jwt create page button text * chore(console): align custom JWT path and hide the entrance for OSS * style(console): refine the SSO connector create model (logto-io#5594) refine the sso connector create model * fix(console): only pending invitations can be resent (logto-io#5601) * fix(core): update expired invitation to expired before inserting a new one (logto-io#5609) * feat(console): add leave tenant button in tenant settings (logto-io#5600) * fix(console): joining tenant should navigate user to the new tenant (logto-io#5602) * chore(core,console): update error handling of testing custom JWT * feat(core): add PATCH /configs/jwt-customizer API * fix(console): reset form as soon as JWT customizer is created (logto-io#5612) * feat(core,schemas): log extraTokenClaims exception (logto-io#5539) * refactor(console): improve invitation email input field (logto-io#5615) * refactor(schemas): rename tenant member role to collaborator (logto-io#5616) * fix(console,phrases): fix a batch of organization invitation console ui issues (logto-io#5614) * feat(console): support org permission management on new org template page (logto-io#5603) * feat(console): support org permission management on new org template page * refactor(console): rename org pages * refactor(console): rename phrase keys * refactor(console): rename org to organization * feat(console): add org role details general settings page (logto-io#5610) * chore(console,phrases): update content and fix console * chore(console,toolkit): update custom JWT details page code editor action buttons style * refactor(console,phrases): rename tenant member role to collaborator (logto-io#5618) * chore(console,toolkit): update custom JWT details page code editor action buttons style * chore(core,console,schemas): update variable name and field name * refactor(experience): fix sso callback page style (logto-io#5624) * refactor(phrases): add zh-cn phrases in OIDC consent page (logto-io#5606) * feat(phrases): add i18n phrases for zh-cn about OICD Authorize page * refactor: apply suggestions from code review --------- Co-authored-by: Gao Sun <gao@silverhand.io> * chore(console): update style chore(console): update style * refactor(console,phrases): display inviter name on tenant invitations table (logto-io#5622) * refactor(console,phrases): display inviter name on tenant invitations table * chore: bump @logto/cloud * chore: update pnpm lockfile * refactor: update dependency on @logto/cloud and update legacy JWT customizer * fix(console): temporarily fix pro plan cannot invite members issue (logto-io#5629) * feat(console): create organization role (logto-io#5630) * feat(console): add permissions page for org role details page (logto-io#5631) * refactor(console): reorg resource details page (logto-io#5634) * feat(core): search organization roles (logto-io#5627) * feat(core,schemas): add organization resource scope relations (logto-io#5608) * feat(console): add azure OIDC guide (logto-io#5592) add azure OIDC guide * feat(core,schemas): edit and query resource scopes for org role (logto-io#5613) * fix(console,phrases): update the jwt test section content (logto-io#5641) update the jwt test section content * style(console): fix the jwt details page style (logto-io#5642) * style(console): fix the jwt details page style fix the jwt details page style * fix(console): remove the unused style remove the unused style * fix(console): remove sticky position remove sticky position * feat(console,core,phrases): add quota guard for cloud collaboration in console (logto-io#5644) * fix(console): fix test result panel overflow bug (logto-io#5643) fix test result panel overflow bug * chore(schemas): fix alteration timestamp (logto-io#5645) chore(schemas): fix alteration scripts order * feat(console): support searching for organization roles (logto-io#5646) * chore(schemas): fix alteration down (logto-io#5648) * refactor(console): show confirm box when inviting a member as admin (logto-io#5649) * fix(console): should stop requesting invitations api for collaborator role (logto-io#5650) * feat(console): add guide for organization template page (logto-io#5647) * refactor(console): collaborator can see tenant domain settings in readonly mode (logto-io#5652) * refactor(console): hide switching tabs and invite button for collaborators (logto-io#5654) * refactor(console): improve switch button styles (logto-io#5655) * fix(console): user should switch account and accept invitation properly in console (logto-io#5657) * fix(console): bump js sdks to fix the cannot switch user account issue * fix(console): accept invitation automatically after switching account * refactor(console): improve tenant member role related experience (logto-io#5659) * refactor(console,phrases): improve invite email input (logto-io#5661) * fix(console): go to onboarding process on clicking create new tenant button (logto-io#5663) * fix(connector): fix microsoft social connector readme (logto-io#5658) * fix(connector): fix microsoft social connector readme fix microsoft social connector readme * fix(connector): improve wording improve wording * fix(experience): fix the terms of use not clickable bug (logto-io#5670) * fix(experience): fix the terms of use not clickable bug fix the terms of use not clickable bug * chore: remove changeset remove changeset * chore(console): remove dev feature flags for cloud collaboration (logto-io#5666) * chore(console): update pricing plan items for jwt claims (logto-io#5672) * refactor(console): redirect to sign-up page on clicking invitation links (logto-io#5669) * chore: add changeset (logto-io#5668) add changeset * refactor(experience): fall back to sign-in page when error (logto-io#5673) * refactor(experience): fall back to sign-in page for edge cases * refactor: add unit tests * refactor: fix tests * release: version packages (logto-io#5463) * feat(cli): updated references to slonik lib --------- Co-authored-by: Darcy Ye <darcyye@silverhand.io> Co-authored-by: simeng-li <simeng@silverhand.io> Co-authored-by: wangsijie <wangsijie@silverhand.io> Co-authored-by: Charles Zhao <charleszhao@silverhand.io> Co-authored-by: Gao Sun <gao@silverhand.io> Co-authored-by: Xiao Yijun <xiaoyijun@silverhand.io> Co-authored-by: Julian Hackenberg <julian@hackenberg.dev> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: pawn <115976311+the-pawn-2017@users.noreply.github.com> Co-authored-by: silverhand-bot <107667382+silverhand-bot@users.noreply.github.com>
peschina
added a commit
to ogcio/logto
that referenced
this pull request
Jun 13, 2024
* Updated Dockerfile to expose other ports and to seed db * Exposed 330x ports in docker-compose * Added pull request template * Change PG default port (#3) set postgres port default as 5433 * Feature: seed ogcio data (#4) * feat(cli): added organizations seeder * feat(cli): added rbac seeder * feat(cli): added root seeder * feat(cli): added ogcio seeder command * feat(cli): added queries file * feat(cli): use base queries * feat(cli): added applications * feat(cli): added resources * feat(cli): added resources * feat(cli): seed rbac resources * feat(cli): updated management * feat(cli): updated roles management * feat(cli): rollbacked index seeder to dev * feat(cli): moved to dedicated command * feat(cli): prepared for local use * feat(cli): fixed indendation in original docker compose * Feature/merge 1.15.0 (#5) * chore(schemas): renaming * refactor(core): refactor code * refactor(core): overload function interface * refactor(core): refactor * feat(core): add GET /configs/jwt-customizer API * chore(core,test): update tests and refactor getJwtCustomizer query * fix(test): fix tests * refactor(core): refactor * feat(core): add GET /configs/jwt-customizer API * feat(core): add DELETE /configs/jwt-customizer API * fix(core): fix rebase * refactor(console): implement environment variables input field (1/2) (#5471) * refactor(console): extract the KeyValueInput ds component extract the KeyValueInput ds component * fix(console): remove unused styles remove unused styles * refactor(console): extract the FormField from KeyValueInput extract the FormField from KeyValueInput * fix(console): refactor some code based on code review comment refactor some code based the code review comment * feat(console,phrases): implement environment variables input field (2/2) (#5473) feat(console,phrases): implement environment variables input field implement environment variables input field * feat(console,phrases): add test sample code editor (#5475) * feat(console,phrases): add test sample code editor add test sample code editor * fix(console): remove unused styles remove unused styles * refactor(console): refactor the components structure erfactor the components structure * refactor(console): clean up the root component clean up the root component * feat(console,phrases): add test result component (#5479) * feat(console,phrases): add test result component add test result component * fix(console): remove unused styles remove unused styles * feat(core): create user with avatar and custom data (#5476) * feat(core): add password algorithm transition (#5481) * chore(console): component rename (#5480) rename component XXXPanel -> XXXSection * fix(console): fix input field background color (#5478) * feat(console, phrases): implement the copy, clear and reset button (#5490) * refactor(console): replace copy button with CopyToClipboard component replace copy button with CopyToClipboard component * feat(console): implement the clear and reset button implement the clear and reset button * refactor(console): bind RHF controller to the code editor bind RHF controller to the code editor * chore(console): add some comments add some comments * feat(core,schemas): update jwt customizer user info context * feat(console): add change alert and save changes footer (#5492) * feat(console): add change alert and save changes footer add change alert and save changes footer * chore(console): add useMemo hook add useMemo hook * refactor(experience): skip non-object messages in native (#5491) * refactor(experience): skip non-object messages in native * chore: add changeset * chore(schemas): add cloud scope, service log type and API guard * refactor(core): update organization invitation apis (#5474) * refactor(core): update organization invitation apis * chore: add api tests * refactor(core,console): align the jwt token path enum (#5493) align the jwt token path enum used in console and core * feat(console,phrases): integrate jwt customizer api (#5495) * feat(console,phrases): integrate jwt customizer api integrate jwt customizer api * chore(console): update the comment update the comment * fix(console): clear the console logs clear the console logs * refactor(console,core,schemas): rename the jwtCustomizer related type and guards (#5496) rename the jwtCustomizer related type and guards * feat(phrases): add i18n phrases for cloud collaboration * feat(console): add global loading skeleton (#5498) add global loading skeleton * fix(console): fix code edtior set undefined value bug (#5499) fix the code editor set undefined value bug * fix(core): the koa response status guard missing 422 in sso integration API (#5506) * chore(schemas): export custom JWT API request body type (#5510) chore(schemas): export custom jwt API request body type * refactor: remove slonik from shared * refactor: fix errors * refactor: use silverhand slonik * chore: upgrade slonik * refactor: remove unused files * chore: add changeset for the bug fix PR (#5507) add changeset for the bug fix PR * feat(core): set oidc issuer to custom domain (#5509) * feat(core): set oidc issuer to custom domain * refactor(core): get tenant id return whether is custom domain * test(core): mock crypto functions in password tests (#5522) * refactor: update invitation apis * feat: allow get invitations by invitee * refactor(console): refactor the code editor type definition (#5516) * refactor(console): refactor the code editor type definition refactor the code editor type definition * refactor(console): extract type definition gen process extract the type definition gen step to the build time. As typescript is not available at run time. * fix(console): add generate to console build script add generate to console build script * fix(console): add prettier format add prettier format * refactor(console): replace the field table with type definition code (#5519) * refactor(console): replace the field table with type definition code replace the field table with type definition code * refactor(console): rebase and pickup the generated type definitions rebase and pickup the generated type definitions * feat: return and store connector raw data * chore: add exception for connector template * refactor(core): update user context type * feat: add oidc standard claims to user * refactor(core,schemas): refactor to improve lib method performance * fix(console): fix some user related type in console * refactor(console,phrases): refactor the jwt customizer content (#5527) * refactor(console,phrases): refactor the jwt customizer content refactor the jwt customizer content * fix(console): add isDev guard add isDev guard * refactor(core): refactor oidc sso connector (#5528) refactor oidc sso connector * refactor: fix type issues * refactor: fix tests * chore: remove org role scopes field since it relies on pagination setup * feat: add profile api, update api and database, add tests * chore: add changeset and api doc * ci: bump workflow version (#5533) * fix(schemas): fix the get interation/consent api bug (#5503) * 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 * chore: add comments * feat(core): add POST /configs/jwt-customizer/test API * refactor(core): use discriminate union for custom jwt test API * chore: update core dependency * chore: add todo * chore: remove 500 status guard * refactor: refactor * refactor(core): add cloud-only API prune for API docs * refactor: remove cloud only operations when needed * refactor: keep origin customJwtFetcherGuard * refactor: adopt suggestion * chore(schemas): remove deprecated `prune:logs` scope (#5524) * chore: add status 403 for custom jwt test API * feat(console): integrate jwt customizer test api (#5532) * feat(console): integrate jwt customizer test api integrate jwt customizer test api * refactor(console,core): jwt test api integration jwt test api integration * chore: add cloud connection scope config for fetching custom jwt --------- Co-authored-by: Darcy Ye <darcyye@silverhand.io> * feat(console): add tenant member and invitation lists (#5501) * feat(console): add tenant member and invitation lists * refactor: polish code per comments * fix: lockfile * Update README.md (#5535) https://github.com/logto-io/logto/issues/1937#issuecomment-1968113758 * refactor: fix test and ci * feat(core): add the support on custom JWT feature * fix: cloud connection should bypass custom JWT flow * chore: update cloud dependency * refactor(core): add cache for cloud connection data * refactor: block admin tenant from using creating jwt-customizer API * refactor: remove credentials cache * refactor: try catch extraTokenClaims function to avoid breaking the auth process * style(console): fix the jwt test panel layout (#5538) fix the jwt test panel layout * chore: fix * chore: fix * refactor(core): remove unused mark mfa skip function (#5517) fixed #5482 * chore(schemas): add comments for `ReservedPlanId` (#5542) * refactor(console): extract shared quota between featured plan and comparison table (#5543) * refactor(console): avoid nested modal content for role creation (#5544) * refactor: reorder code * refactor: not update console cloud dependency * refactor(phrases,core,console): update API and console error handling/display * chore: add comments * refactor(schemas,core,console): skip onboarding if user has pending invitations (#5547) * fix(core): fix the post domains api error status code (#5552) fix the post domains api error status code * chore: bump @logto dependencies (#5548) * chore(phrases): add i18n phrases for console invitation interim pages (#5553) * refactor(console): reorg sidebar menu items (#5550) * fix(core,phrases): fix custom JWT PUT API block admin tenant logic * feat: support direct sign-in (#5536) * feat: support direct sign-in * chore: add changesets * refactor: add test cases * chore(deps): upgrade logto sdks * chore(deps): update softprops/action-gh-release action to v2 (#5486) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(schemas): update customJwtFetcherGuard to specify custom jwt use case * feat(console): invite members dialog (#5531) * feat(console): add console landing page to accept user invitation (#5554) * chore(deps): update packges (#5545) * chore(deps): upgrade puppeteer * chore: replace plugin * refactor: fix tests * feat(core,schemas): add new Azure OIDC SSO connector (#5540) add new Azure OIDC SSO connector * refactor(core,schemas): refactor the sso connector factory type (#5541) * refactor(core,schemas): refactor the sso connector factory type refactor the sso connector factory type and add providerType to the config data * fix(core): fix ut fix ut * refactor(schemas): add the providerType to the providerDetails return type add the new providerType property to the providerDetails return type * refactor(console): refactor useApi (#5549) refactor useApi hideToast logic * refactor(console): refactor sso detail pages (#5551) * refactor(console): refactor sso detail pages refactor sso details pages * fix(console): fix the sso paywall guard content fix the sso paywall guard content * style(console): fix the color code white css (#5564) fix the color code white css * feat(console): support signing-key rotation for oss version (#5559) * fix(console,phrases): api resource indicator should be a valid absolute uri (#5561) * fix(console,phrases): api resource indicator should be a valid absolute uri * refactor: use vitest for connectors (#5562) * fix(console): fix jwt test context code editor bug (#5563) fix jwt test context code editor bug * fix(console): fix the zod-to-ts type infer bug (#5566) fix the zod-to-ts type infer bug * feat(console): implement interim landing page for new users to join invited tenants (#5560) * feat(console): support permission editing (#5567) * chore(schemas,core): update custom JWT sample token payload guard * feat(console): add quick join options in tenant selector dropdown (#5568) * feat(console): implement interim landing page for new users to join invited tenants * feat(console): add quick join options in tenant selector dropdown * chore(console): update the default user context as well * refactor: remove jest * refactor: remove jest * refactor: add back `build:test` for other packages * chore: add test coverage pacakge * refactor: remove jest * test: wait 0ms after each test * refactor(console): update tenant settings access per user tenant scopes (#5571) * test: add integration tests for jwt (#5565) * test: improve integration tests (#5577) * refactor(schemas): remove invite member scope from tenant member role (#5578) * fix(deps): update dependency snakecase-keys to v7 (#5556) * fix(deps): update dependency snakecase-keys to v7 * test: wait for 1ms for every api test --------- Co-authored-by: Gao Sun <gao@silverhand.io> * fix(deps): update dependency snake-case to v4 (#5534) Co-authored-by: Gao Sun <gao@silverhand.io> * chore: add comments for cloud seed data (#5583) * feat(schemas): add new scope read:member to both tenant admin and member roles (#5582) * chore: update cloud version and the way to call cloud custom JWT API * fix(console,phrases): should check duplicated emails when inviting members (#5581) fix(console,phrases): check duplicated emails when inviting members * fix(console): revert the custom jwt forms overflow hidden (#5573) revert the custom jwt forms overflow hidden styles * feat(schemas): add util method to convert admin tenant org id to user tenant id (#5570) * refactor: use ky in integration tests (#5584) * refactor: use ky in integration tests * refactor: remove node-fetch * refactor: fix test cases * refactor: remove waitFor after each test * feat: support direct sign-in for sso (#5589) * chore(core): update GET /configs/jwt-customizer/:tokenPath API error handling (#5595) * refactor(core): reorg and separate logto-config APIs into files * chore(cli): update translate CLI configs * fix(console): refresh invitation list after inviting members (#5593) * test: add tests for username case sensitive (#5597) * refactor(console): move organization template into a single page (#5590) * refactor(console): move organization template into a single page * feat(phrases): add org template translations * feat(console): implement custom jwt landing page implement custom jwt landing page * refactor(console): relocalte the component files relocate the component files * refactor(console): rename the jwtClaims page rename the jwtClaims page * refactor(console,phrases): refactor the customize jwt details page refactor the customize jwt details page * refactor(console): remove unused element remove unused element * refactor(console): redesign the jwt details page redesign the jwt details page * feat(console): update jwt create page button text update jwt create page button text * chore(console): align custom JWT path and hide the entrance for OSS * style(console): refine the SSO connector create model (#5594) refine the sso connector create model * fix(console): only pending invitations can be resent (#5601) * fix(core): update expired invitation to expired before inserting a new one (#5609) * feat(console): add leave tenant button in tenant settings (#5600) * fix(console): joining tenant should navigate user to the new tenant (#5602) * chore(core,console): update error handling of testing custom JWT * feat(core): add PATCH /configs/jwt-customizer API * fix(console): reset form as soon as JWT customizer is created (#5612) * feat(core,schemas): log extraTokenClaims exception (#5539) * refactor(console): improve invitation email input field (#5615) * refactor(schemas): rename tenant member role to collaborator (#5616) * fix(console,phrases): fix a batch of organization invitation console ui issues (#5614) * feat(console): support org permission management on new org template page (#5603) * feat(console): support org permission management on new org template page * refactor(console): rename org pages * refactor(console): rename phrase keys * refactor(console): rename org to organization * feat(console): add org role details general settings page (#5610) * chore(console,phrases): update content and fix console * chore(console,toolkit): update custom JWT details page code editor action buttons style * refactor(console,phrases): rename tenant member role to collaborator (#5618) * chore(console,toolkit): update custom JWT details page code editor action buttons style * chore(core,console,schemas): update variable name and field name * refactor(experience): fix sso callback page style (#5624) * refactor(phrases): add zh-cn phrases in OIDC consent page (#5606) * feat(phrases): add i18n phrases for zh-cn about OICD Authorize page * refactor: apply suggestions from code review --------- Co-authored-by: Gao Sun <gao@silverhand.io> * chore(console): update style chore(console): update style * refactor(console,phrases): display inviter name on tenant invitations table (#5622) * refactor(console,phrases): display inviter name on tenant invitations table * chore: bump @logto/cloud * chore: update pnpm lockfile * refactor: update dependency on @logto/cloud and update legacy JWT customizer * fix(console): temporarily fix pro plan cannot invite members issue (#5629) * feat(console): create organization role (#5630) * feat(console): add permissions page for org role details page (#5631) * refactor(console): reorg resource details page (#5634) * feat(core): search organization roles (#5627) * feat(core,schemas): add organization resource scope relations (#5608) * feat(console): add azure OIDC guide (#5592) add azure OIDC guide * feat(core,schemas): edit and query resource scopes for org role (#5613) * fix(console,phrases): update the jwt test section content (#5641) update the jwt test section content * style(console): fix the jwt details page style (#5642) * style(console): fix the jwt details page style fix the jwt details page style * fix(console): remove the unused style remove the unused style * fix(console): remove sticky position remove sticky position * feat(console,core,phrases): add quota guard for cloud collaboration in console (#5644) * fix(console): fix test result panel overflow bug (#5643) fix test result panel overflow bug * chore(schemas): fix alteration timestamp (#5645) chore(schemas): fix alteration scripts order * feat(console): support searching for organization roles (#5646) * chore(schemas): fix alteration down (#5648) * refactor(console): show confirm box when inviting a member as admin (#5649) * fix(console): should stop requesting invitations api for collaborator role (#5650) * feat(console): add guide for organization template page (#5647) * refactor(console): collaborator can see tenant domain settings in readonly mode (#5652) * refactor(console): hide switching tabs and invite button for collaborators (#5654) * refactor(console): improve switch button styles (#5655) * fix(console): user should switch account and accept invitation properly in console (#5657) * fix(console): bump js sdks to fix the cannot switch user account issue * fix(console): accept invitation automatically after switching account * refactor(console): improve tenant member role related experience (#5659) * refactor(console,phrases): improve invite email input (#5661) * fix(console): go to onboarding process on clicking create new tenant button (#5663) * fix(connector): fix microsoft social connector readme (#5658) * fix(connector): fix microsoft social connector readme fix microsoft social connector readme * fix(connector): improve wording improve wording * fix(experience): fix the terms of use not clickable bug (#5670) * fix(experience): fix the terms of use not clickable bug fix the terms of use not clickable bug * chore: remove changeset remove changeset * chore(console): remove dev feature flags for cloud collaboration (#5666) * chore(console): update pricing plan items for jwt claims (#5672) * refactor(console): redirect to sign-up page on clicking invitation links (#5669) * chore: add changeset (#5668) add changeset * refactor(experience): fall back to sign-in page when error (#5673) * refactor(experience): fall back to sign-in page for edge cases * refactor: add unit tests * refactor: fix tests * release: version packages (#5463) * feat(cli): updated references to slonik lib --------- Co-authored-by: Darcy Ye <darcyye@silverhand.io> Co-authored-by: simeng-li <simeng@silverhand.io> Co-authored-by: wangsijie <wangsijie@silverhand.io> Co-authored-by: Charles Zhao <charleszhao@silverhand.io> Co-authored-by: Gao Sun <gao@silverhand.io> Co-authored-by: Xiao Yijun <xiaoyijun@silverhand.io> Co-authored-by: Julian Hackenberg <julian@hackenberg.dev> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: pawn <115976311+the-pawn-2017@users.noreply.github.com> Co-authored-by: silverhand-bot <107667382+silverhand-bot@users.noreply.github.com> * Fix: permissions assignment (#6) fix(cli): fixed permissions assignment * fix(cli): set organization as created for default tenant (#7) * Feature: seeder by json (#8) * feat(cli): added seeder json file * temp * feat(cli): some updates on json management * fix(cli): tests * fix(cli): set promises * feat(cli): moved applications to json * feat(cli): updated resources management using json * feat(cli): refactored applications * feat(cli): added seeder json file * feat(cli): refactored * fix(cli): fixed seeding of rbac resources * fix(cli): use correct json to seed on docker compose local * fix(cli): deploy db alteration on run (#9) * fix(cli): deploy db alteration on run * Fixed resources names * Chore: env for pipeline (#10) fix(cli): added env vars management in entry point * Fix: fixed seeder using trailing slash (#11) fixed seeder using trailing slash * chore(makefile) Adds down command to makefile (#12) * chore(db persist) Added volume config to persist db data to volume * chore(db persist) Added volume config to persist db data to volume * Chore: seed fixed ids (#14) * chore(cli): added applications secrets in json * chore(cli): manage id in code --------- Co-authored-by: SamSalvatico <40636569+SamSalvatico@users.noreply.github.com> * Fix: added REDIS url in dockerfile * chore(cli): double quotes * Moving DB_URL composition to CMD * chore(core): added redis * chore(console): added redis url to package.json * chore(cli): forced urls * chore(cli): added REDIS USER * chore(cli): encoded password * chore(cli): added quotes to jq command * chore(cli): added quotes to jq command * chore(cli): updated jq command * chore(cli): removed Redis for local deployment * chore(core): removed redis url logging * chore(core): removed redis auth --------- Co-authored-by: William Monteiro <william.wd@gmail.com> * Chore: assign default organizations (#17) * chore(core): linked default user roles * chore(core): fixed queries * chore(core): added invokation during user create from dashboard * feat(core): added ogcio user library * chore(phrases): updated translations * Merge branch 'dev' into chore/link-user-roles * Feature/v1.16.0 (#18) * feat(schemas): add util method to convert admin tenant org id to user tenant id (#5570) * refactor: use ky in integration tests (#5584) * refactor: use ky in integration tests * refactor: remove node-fetch * refactor: fix test cases * refactor: remove waitFor after each test * feat: support direct sign-in for sso (#5589) * chore(core): update GET /configs/jwt-customizer/:tokenPath API error handling (#5595) * refactor(core): reorg and separate logto-config APIs into files * chore(cli): update translate CLI configs * fix(console): refresh invitation list after inviting members (#5593) * test: add tests for username case sensitive (#5597) * refactor(console): move organization template into a single page (#5590) * refactor(console): move organization template into a single page * feat(phrases): add org template translations * feat(console): implement custom jwt landing page implement custom jwt landing page * refactor(console): relocalte the component files relocate the component files * refactor(console): rename the jwtClaims page rename the jwtClaims page * refactor(console,phrases): refactor the customize jwt details page refactor the customize jwt details page * refactor(console): remove unused element remove unused element * refactor(console): redesign the jwt details page redesign the jwt details page * feat(console): update jwt create page button text update jwt create page button text * chore(console): align custom JWT path and hide the entrance for OSS * style(console): refine the SSO connector create model (#5594) refine the sso connector create model * fix(console): only pending invitations can be resent (#5601) * fix(core): update expired invitation to expired before inserting a new one (#5609) * feat(console): add leave tenant button in tenant settings (#5600) * fix(console): joining tenant should navigate user to the new tenant (#5602) * chore(core,console): update error handling of testing custom JWT * feat(core): add PATCH /configs/jwt-customizer API * fix(console): reset form as soon as JWT customizer is created (#5612) * feat(core,schemas): log extraTokenClaims exception (#5539) * refactor(console): improve invitation email input field (#5615) * refactor(schemas): rename tenant member role to collaborator (#5616) * fix(console,phrases): fix a batch of organization invitation console ui issues (#5614) * feat(console): support org permission management on new org template page (#5603) * feat(console): support org permission management on new org template page * refactor(console): rename org pages * refactor(console): rename phrase keys * refactor(console): rename org to organization * feat(console): add org role details general settings page (#5610) * chore(console,phrases): update content and fix console * chore(console,toolkit): update custom JWT details page code editor action buttons style * refactor(console,phrases): rename tenant member role to collaborator (#5618) * chore(console,toolkit): update custom JWT details page code editor action buttons style * chore(core,console,schemas): update variable name and field name * refactor(experience): fix sso callback page style (#5624) * refactor(phrases): add zh-cn phrases in OIDC consent page (#5606) * feat(phrases): add i18n phrases for zh-cn about OICD Authorize page * refactor: apply suggestions from code review --------- Co-authored-by: Gao Sun <gao@silverhand.io> * chore(console): update style chore(console): update style * refactor(console,phrases): display inviter name on tenant invitations table (#5622) * refactor(console,phrases): display inviter name on tenant invitations table * chore: bump @logto/cloud * chore: update pnpm lockfile * refactor: update dependency on @logto/cloud and update legacy JWT customizer * fix(console): temporarily fix pro plan cannot invite members issue (#5629) * feat(console): create organization role (#5630) * feat(console): add permissions page for org role details page (#5631) * refactor(console): reorg resource details page (#5634) * feat(core): search organization roles (#5627) * feat(core,schemas): add organization resource scope relations (#5608) * feat(console): add azure OIDC guide (#5592) add azure OIDC guide * feat(core,schemas): edit and query resource scopes for org role (#5613) * fix(console,phrases): update the jwt test section content (#5641) update the jwt test section content * style(console): fix the jwt details page style (#5642) * style(console): fix the jwt details page style fix the jwt details page style * fix(console): remove the unused style remove the unused style * fix(console): remove sticky position remove sticky position * feat(console,core,phrases): add quota guard for cloud collaboration in console (#5644) * fix(console): fix test result panel overflow bug (#5643) fix test result panel overflow bug * chore(schemas): fix alteration timestamp (#5645) chore(schemas): fix alteration scripts order * feat(console): support searching for organization roles (#5646) * chore(schemas): fix alteration down (#5648) * refactor(console): show confirm box when inviting a member as admin (#5649) * fix(console): should stop requesting invitations api for collaborator role (#5650) * feat(console): add guide for organization template page (#5647) * refactor(console): collaborator can see tenant domain settings in readonly mode (#5652) * refactor(console): hide switching tabs and invite button for collaborators (#5654) * refactor(console): improve switch button styles (#5655) * fix(console): user should switch account and accept invitation properly in console (#5657) * fix(console): bump js sdks to fix the cannot switch user account issue * fix(console): accept invitation automatically after switching account * refactor(console): improve tenant member role related experience (#5659) * refactor(console,phrases): improve invite email input (#5661) * fix(console): go to onboarding process on clicking create new tenant button (#5663) * fix(connector): fix microsoft social connector readme (#5658) * fix(connector): fix microsoft social connector readme fix microsoft social connector readme * fix(connector): improve wording improve wording * fix(experience): fix the terms of use not clickable bug (#5670) * fix(experience): fix the terms of use not clickable bug fix the terms of use not clickable bug * chore: remove changeset remove changeset * chore(console): remove dev feature flags for cloud collaboration (#5666) * chore(console): update pricing plan items for jwt claims (#5672) * refactor(console): redirect to sign-up page on clicking invitation links (#5669) * chore: add changeset (#5668) add changeset * refactor(experience): fall back to sign-in page when error (#5673) * refactor(experience): fall back to sign-in page for edge cases * refactor: add unit tests * refactor: fix tests * release: version packages (#5463) * fix(deps): update dependency tar to v6.2.1 [security] (#5675) Co-authored-by: Gao Sun <gao@silverhand.io> * fix(deps): update dependency snakecase-keys to v8 (#5667) Co-authored-by: Gao Sun <gao@silverhand.io> * fix(deps): update dependency samlify to v2.8.11 (#5458) Co-authored-by: Gao Sun <gao@silverhand.io> * feat(console): display api resources in org role permission table (#5671) * refactor: uncomment feature guard (#5676) * feat(console): assign permissions for org roles (#5664) * refactor(core): partially remove got (#5596) * refactor(core): partially remove got * refactor: use shared form-urlencoded headers * refactor(console): update protected app custom domain field to app domain (#5680) * fix(core): not allow to modify management api resource (#5626) * refactor(console): deprecate original organization template page (#5681) * feat(console): add paywall for organization template (#5679) * refactor(console): update reservation link (#5683) * chore(deps): update zaproxy/action-full-scan action to v0.10.0 (#5620) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat(core): add custom jwt worker deploy (#5682) call custom jwt worker deploy cloud service when upsert new jwt-customizers * feat(core): undeploy worker scripts when jwt customizer is deleted (#5685) undeloy work scripts when the jwt customizer is deleted * refactor(console,phrases): update organization template phrases (#5688) * refactor(console): use route objects * refactor(console): split route objects * chore(console): disable route component in pages * feat(core): add jwt-customizer test script deployment (#5686) feat(core): call cloud worker deploy service on custom jwt test call cloud worker deploy service on custom jwt test * feat(console): add api permission content for organization guide (#5697) * style(console): align resource icon with resource name (#5694) * refactor(console): update org template sidebar icon (#5691) * style(console): update signing key sidebar icon (#5692) * refactor(phrases): update organization template subtitle (#5693) * refactor(core,schemas): make the jwt customizer script field mandatory (#5696) * refactor(core,schemas): make the jwt customizer script field mandatory make the jwt customizer script field mandatory * fix(schemas): fix the alteration script fix the alteration script * fix(schemas): fix ut fix ut * fix(console): fix the quota guard layout (#5689) * fix(console): fix the quota guard layout fix the quota guard layout * chore(console): add some comments add some comments * refactor(console): reorg organization details routes (#5702) * refactor(console): update tab order on role details page (#5695) * chore: add Cloudflare worker config for custom JWT (#5709) * feat(core): add api to fetch organization scopes for a user (#5701) * 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 * refactor(console): update check guide button style on org template page (#5712) * style(console): update organization template layout (#5713) * refactor(console): update console routes (#5715) * fix(console): mutate org roles once a org role is deleted (#5716) * feat(core): handle access token with organization api resource (#5653) * style(console): minor custom jwt page style iteration (#5711) minor custom jwt page styles iteration * chore(test): improve organization user test stability (#5717) * feat(core): add customJwt paywall guard to core API (#5708) add customJwt paywall guard to core API * chore(core): fix typos in comment (#5718) * refactor(core): dont throw for status errors in prod (#5690) * refactor(core): dont throw for status errors in prod * refactor(core): report to AppInsights * chore(console): update incorrect swr cache key usages (#5724) * chore(deps): update dependency @testing-library/react to v15 (#5726) Co-authored-by: Gao Sun <gao@silverhand.io> * feat(console): update user access immediately on tenant role updates (#5720) * 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> * refactor: remove pnpm script (#5728) * fix(core): set oidc access denied error code to 403 (#5725) * feat(console): add plausible * refactor(console,phrases): update phrases for organization role (#5736) * fix(console): cloud collaboration minor bug fixes (#5734) * fix(console): oss version should not check user tenant scopes * fix(console): collaborators should leave immediately if they are removed from tenant * fix(core,console): invitee emails should be case insensitive (#5730) * fix(core,console): invitee email checks should be case insensitive * test: add integration test * chore: add changeset * refactor(console): remove AppInsights * refactor: upgrade packages (#5739) * refactor: upgrade packages * refactor: fix type issues * refactor: fix koa-guard * test(console): assign permissions to organization role (#5729) * refactor: remove AppInsights for React (#5742) * fix(console): always display create org button (#5746) * fix(console): force dev feature enabled false (#5752) * fix(console): force dev feature enabled false force dev feature enabled false * fix(console): avoid lint error avoid lint error * fix(console): enable dev feature for integration tests enable dev feature for integration tests * chore: upgrade packages (#5749) * feat(core): add redis cluster and tls extra options support (#5619) * feat: add redis cluster and tls extra options support * refactor(core): allow non-normative redis url --------- Co-authored-by: Gao Sun <gao@silverhand.io> * chore(deps): update silverhand configs monorepo packages to v6 (major) (#5750) * chore: upgrade configs * refactor: fix lint errors * refactor: fix lint errors * refactor: fix stylelint issues --------- Co-authored-by: Gao Sun <gao@silverhand.io> * fix(core): update cloud dependency, cloud client calls * chore: apply suggestions from code review Co-authored-by: Gao Sun <gao@silverhand.io> * chore: update util function interface and update comments * chore(console): update custom JWT scripts sample (#5747) * fix(console): revert the isDevFeaturesEnabled changes in console (#5755) revert the isDevFeatureEnabled hot fix * chore: upgrade json5 to 2.2.3 (#5757) * fix(console): pagination bar should be fully visible (#5758) * fix(console): replace ts with js for JWT customizer (#5760) replace ts with js for JWT customizer * fix(console): rotate signing-key dropdown should be visible (#5759) * fix(console): copy to clipboard component should display at full width properly (#5764) * fix(console): fix the jwt creation page idle bug after submit form (#5761) * fix(console): fix the jwt creation page idle bug after submit form fix the jwt creation page idle bug after submit the form * chore(console): add some comments add some comments * refactor(console): implement new jwt customizer delete modal (#5765) * refactor(console): clean up the global useConfirmModal provider clean up the global useConfirmModal provider * refactor(console): implement new jwt customizer delete modal implement new jwt customizer delete modal * refactor(console): update organization guide and tenant member routers (#5766) * chore(phrases): improve phrases on accessing invitations not made for you (#5744) * chore(experience): package update (#5769) react-device-deteck package update * style(experience): fix the terms of use link style (#5771) fix the terms of use link style in confirm modal * chore(core): fix typo in code comments (#5772) * feat(console): add spring boot integration guide (#5740) * feat(console): add spring boot integration guide add spring boot integration guide * chore: add changeset add changeset * chore: fix changeset typo * fix(console): update the spring boot guide description update the spring boot guide description * chore(console): remove extra empty space remove extra empty space * feat(core): support comma separated resource param (#5773) * chore(console,core): remove custom JWT dev feature guard (#5775) * chore(phrases): update custom JWT console phrases (#5776) * chore(deps): update ataylorme/eslint-annotate-action action to v3 (#5756) * chore(deps): update ataylorme/eslint-annotate-action action to v3 * ci: update upload-annotations.yml --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Gao Sun <gao@silverhand.io> * fix(core): bump oidc-provider to fix resource indicator check (#5782) * fix(core): bump oidc-provider to fix resource indicator check * chore: add changeset * chore(deps): upgrade formidable (#5780) * feat: add the new dockerize-edge job (#5777) * feat: add the new dockerize-edge-image job add the new dockerize-edge-image job * chore: rename the job rename the job * chore: fix the layout of docker-edge ci job fix the layout of docker-edge ci job * refactor(core): update `AuthedRouter` -> `ManagementApiRouter` * feat(connector): support `client_secret_basic` and `client_secret_jwt` methods for oauth2 connectors (#5762) * chore: ignore the hidden file found zap alert (#5786) ignore the hidden file found zap alert * fix: fix zap config file (#5788) fix zap config file * fix: fix zap config file syntax (#5790) fix zap config file syntax * fix(deps): update dependency tar to v7 (#5678) * fix(deps): update dependency tar to v7 * refactor: fix import --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Gao Sun <gao@silverhand.io> * chore(deps): update dependency supertest to v7 (#5791) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(experience): redirect to sign-in page on socical sign-in error (#5787) * 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 * refactor: reorg the implementation * feat: support organization custom data (#5785) * feat: support organization custom data * chore: update changeset * chore: add code coverage token (#5792) add code coverage token * fix(experience): use correct callback path for native environments (#5800) * refactor(console): remove useless log title definitions (#5798) remove useless log title definitions * fix(core): fix status code of create new user api (#5735) * fix(experience,core): fix SSO register hook event not triggering bug (#5796) * fix(experience,core): fix SSO register hook event not triggering bug fix the SSO register hook event not triggering bug * chore: update changeset content update changeset content * feat(schemas): add table for app org resource scope consent (#5803) feat(schemas): add table application_user_consent_organization_resource_scopes * fix: remove the plus sign in front of the phone number (#5801) * fix(core): fix upload file guard (#5810) fix: remove the plus sign in front of the phone number (#5801) Co-authored-by: Kamto <kam_to@outlook.com> * refactor: update plausible domain (#5799) refactor: update plausible domain * feat(core,schemas): add CRUD for consent organization resource scopes (#5804) feat(core,schemas): add crud for user consent organization resource scopes * refactor: implement request id (#5813) * refactor: implement request id * refactor: fix tests * refactor: add unit tests * refactor: remove app insights domains from security headers (#5814) * feat(connector): add hugging face connector (#5797) * fix(core): invitee email check should be case insensitive (#5823) * fix(core): invitee email check should be case insensitive * chore: add changeset * fix(console): hide org resource scopes tab from 3rd-party app modal (#5824) * chore(deps): upgrade withtyped packages (#5827) * refactor(core): optimize init (#5826) * chore(deps): upgrade withtyped packages (#5829) * refactor(console): make invitee email breakable in invitation list (#5825) * feat(core,schemas): add org resource scopes to consent get (#5808) * feat(experience): display org resource scopes on consent page (#5831) * feat: init management api hook middleware function (#5783) * 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> * feat(console): add webflow integration guide (#5832) * refactor(console): update conversion report timing (#5833) * feat(connector): can access all user email even if no public email is set (#5737) * feat(core,schemas): update consent info (#5822) * chore(deps): update pnpm to v9 (#5727) * chore(deps): update pnpm to v9 * ci: fix alteration --------- Co-authored-by: Gao Sun <gao@silverhand.io> * feat(console): support assign organization resource scopes for 3rd-party app (#5812) * fix(console): make profile a tenant independent page (#5687) * fix(console): make profile a tenant independent page * refactor(console): profile routes * chore(core): refactor later * fix(console): focus on org socpes tab on app scopes modal reopened (#5839) * fix(console): fix the link social feature on logto cloud (#5838) * fix(experience): hide scope list if no user scopes and resource scopes (#5840) * refactor(console): refactor some console global routes (#5841) * fix(console): move handle social route to global anonymous route enum (#5842) * refactor(console, phrases): update resource scopes assignment form title (#5846) * feat(core,console): enable custom JWT for OSS and can run script in local vm (#5794) * chore: add changeset for org api resource (#5719) chore: add change set for org api resource * chore(deps): update dependency @simplewebauthn/browser to v10 (#5703) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency @simplewebauthn/types to v10 (#5704) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency @simplewebauthn/server to v10 (#5705) * fix(deps): update dependency @simplewebauthn/server to v10 * fix(core): update code to support @simplewebauthn/server v10 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: wangsijie <wangsijie@silverhand.io> * fix(core): filter scopes for 3rd-party app (#5845) * chore: fix pnpm-lock (#5851) * ci(connector): build connectors before publish (#5853) * chore(console,experience): remove dev flags add changeset for organization updates (#5763) * chore(core,schemas): remove feature guard of organization api resource (#5743) * chore(console): update jwt claims status in plan comparison table (#5854) * feat(schemas): define data hook events (#5828) * 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(console): add wordpress integration guide (#5844) * ci: use default runner (#5848) * refactor(core, schemas): update interaction webhook middleware using contextManager (#5834) * feat(core): update interaction webhook middleware using contextManager updaet interaction webhook middleware using contextManager * fix(test): fix ut fix ut * refactor(core, schemas): refactor DataHook context structure refactor DataHook context structure * fix(core): fix demo-app application not found error fix demo-app application not found error * chore(core): update comments update comments * chore: build oauth2 connector on prepack (#5855) * chore(core): add custom domain host to app insights (#5852) * fix(core): add devFeature guard for DataHooks (#5861) fix(core): add devFeature guard add devFeature guard * refactor(core): update first admin user preconditions (#5858) * fix(core): fix consent scopes filter rule for non-3rd-party app (#5859) * refactor(console): do not parameterize guide id (#5863) * chore(phrases): update organization permission column name (#5864) * fix(core): should sign out user after deletion or suspension (#5857) fixed #5572 * chore(console): update sdk doc reference links (#5860) * release: version packages (#5684) * fix(core): check for tenant id before adding default roles --------- Co-authored-by: Charles Zhao <charleszhao@silverhand.io> Co-authored-by: Gao Sun <gao@silverhand.io> Co-authored-by: Darcy Ye <darcyye@silverhand.io> Co-authored-by: wangsijie <wangsijie@silverhand.io> Co-authored-by: Xiao Yijun <xiaoyijun@silverhand.io> Co-authored-by: simeng-li <simeng@silverhand.io> Co-authored-by: pawn <115976311+the-pawn-2017@users.noreply.github.com> Co-authored-by: silverhand-bot <107667382+silverhand-bot@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Alessandro Chitolina <alekitto@gmail.com> Co-authored-by: Kamto <kam_to@outlook.com> * mygovid connector (#19) * feat(cli): seeding social connector for mygovid integration * fix(cli): update seeder json files * fix(cli): small changes * fix(cli): update * feat(cli): seeding custom sign in experience config (#20) * MyGovId connector (#22) * wip * feat(connector): lock-file updated * feat(connector): fixed connector build * reverted pnpmlock * build working * Chore: write guide to sync with main repo (#21) * chore: started working on readme * chore: first steps * feat: added steps * chore: added add remote command * chore: typo * Update README.OGCIO.md * feat(cli): seed webhooks config (#25) * feat(cli): seed webhooks config * Fix typo Fix typo * feat(cli): seed mygovid connector (#26) * feat(cli): seed mygovid connector * feat(cli): update * Feature: merge with v1.17.0 (#24) * fix(deps): update dependency snakecase-keys to v8 (#5667) Co-authored-by: Gao Sun <gao@silverhand.io> * fix(deps): update dependency samlify to v2.8.11 (#5458) Co-authored-by: Gao Sun <gao@silverhand.io> * feat(console): display api resources in org role permission table (#5671) * refactor: uncomment feature guard (#5676) * feat(console): assign permissions for org roles (#5664) * refactor(core): partially remove got (#5596) * refactor(core): partially remove got * refactor: use shared form-urlencoded headers * refactor(console): update protected app custom domain field to app domain (#5680) * fix(core): not allow to modify management api resource (#5626) * refactor(console): deprecate original organization template page (#5681) * feat(console): add paywall for organization template (#5679) * refactor(console): update reservation link (#5683) * chore(deps): update zaproxy/action-full-scan action to v0.10.0 (#5620) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat(core): add custom jwt worker deploy (#5682) call custom jwt worker deploy cloud service when upsert new jwt-customizers * feat(core): undeploy worker scripts when jwt customizer is deleted (#5685) undeloy work scripts when the jwt customizer is deleted * refactor(console,phrases): update organization template phrases (#5688) * refactor(console): use route objects * refactor(console): split route objects * chore(console): disable route component in pages * feat(core): add jwt-customizer test script deployment (#5686) feat(core): call cloud worker deploy service on custom jwt test call cloud worker deploy service on custom jwt test * feat(console): add api permission content for organization guide (#5697) * style(console): align resource icon with resource name (#5694) * refactor(console): update org template sidebar icon (#5691) * style(console): update signing key sidebar icon (#5692) * refactor(phrases): update organization template subtitle (#5693) * refactor(core,schemas): make the jwt customizer script field mandatory (#5696) * refactor(core,schemas): make the jwt customizer script field mandatory make the jwt customizer script field mandatory * fix(schemas): fix the alteration script fix the alteration script * fix(schemas): fix ut fix ut * fix(console): fix the quota guard layout (#5689) * fix(console): fix the quota guard layout fix the quota guard layout * chore(console): add some comments add some comments * refactor(console): reorg organization details routes (#5702) * refactor(console): update tab order on role details page (#5695) * chore: add Cloudflare worker config for custom JWT (#5709) * feat(core): add api to fetch organization scopes for a user (#5701) * 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 * refactor(console): update check guide button style on org template page (#5712) * style(console): update organization template layout (#5713) * refactor(console): update console routes (#5715) * fix(console): mutate org roles once a org role is deleted (#5716) * feat(core): handle access token with organization api resource (#5653) * style(console): minor custom jwt page style iteration (#5711) minor custom jwt page styles iteration * chore(test): improve organization user test stability (#5717) * feat(core): add customJwt paywall guard to core API (#5708) add customJwt paywall guard to core API * chore(core): fix typos in comment (#5718) * refactor(core): dont throw for status errors in prod (#5690) * refactor(core): dont throw for status errors in prod * refactor(core): report to AppInsights * chore(console): update incorrect swr cache key usages (#5724) * chore(deps): update dependency @testing-library/react to v15 (#5726) Co-authored-by: Gao Sun <gao@silverhand.io> * feat(console): update user access immediately on tenant role updates (#5720) * 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> * refactor: remove pnpm script (#5728) * fix(core): set oidc access denied error code to 403 (#5725) * feat(console): add plausible * refactor(console,phrases): update phrases for organization role (#5736) * fix(console): cloud collaboration minor bug fixes (#5734) * fix(console): oss version should not check user tenant scopes * fix(console): collaborators should leave immediately if they are removed from tenant * fix(core,console): invitee emails should be case insensitive (#5730) * fix(core,console): invitee email checks should be case insensitive * test: add integration test * chore: add changeset * refactor(console): remove AppInsights * refactor: upgrade packages (#5739) * refactor: upgrade packages * refactor: fix type issues * refactor: fix koa-guard * test(console): assign permissions to organization role (#5729) * refactor: remove AppInsights for React (#5742) * fix(console): always display create org button (#5746) * fix(console): force dev feature enabled false (#5752) * fix(console): force dev feature enabled false force dev feature enabled false * fix(console): avoid lint error avoid lint error * fix(console): enable dev feature for integration tests enable dev feature for integration tests * chore: upgrade packages (#5749) * feat(core): add redis cluster and tls extra options support (#5619) * feat: add redis cluster and tls extra options support * refactor(core): allow non-normative redis url --------- Co-authored-by: Gao Sun <gao@silverhand.io> * chore(deps): update silverhand configs monorepo packages to v6 (major) (#5750) * chore: upgrade configs * refactor: fix lint errors * refactor: fix lint errors * refactor: fix stylelint issues --------- Co-authored-by: Gao Sun <gao@silverhand.io> * fix(core): update cloud dependency, cloud client calls * chore: apply suggestions from code review Co-authored-by: Gao Sun <gao@silverhand.io> * chore: update util function interface and update comments * chore(console): update custom JWT scripts sample (#5747) * fix(console): revert the isDevFeaturesEnabled changes in console (#5755) revert the isDevFeatureEnabled hot fix * chore: upgrade json5 to 2.2.3 (#5757) * fix(console): pagination bar should be fully visible (#5758) * fix(console): replace ts with js for JWT customizer (#5760) replace ts with js for JWT customizer * fix(console): rotate signing-key dropdown should be visible (#5759) * fix(console): copy to clipboard component should display at full width properly (#5764) * fix(console): fix the jwt creation page idle bug after submit form (#5761) * fix(console): fix the jwt creation page idle bug after submit form fix the jwt creation page idle bug after submit the form * chore(console): add some comments add some comments * refactor(console): implement new jwt customizer delete modal (#5765) * refactor(console): clean up the global useConfirmModal provider clean up the global useConfirmModal provider * refactor(console): implement new jwt customizer delete modal implement new jwt customizer delete modal * refactor(console): update organization guide and tenant member routers (#5766) * chore(phrases): improve phrases on accessing invitations not made for you (#5744) * chore(experience): package update (#5769) react-device-deteck package update * style(experience): fix the terms of use link style (#5771) fix the terms of use link style in confirm modal * chore(core): fix typo in code comments (#5772) * feat(console): add spring boot integration guide (#5740) * feat(console): add spring boot integration guide add spring boot integration guide * chore: add changeset add changeset * chore: fix changeset typo * fix(console): update the spring boot guide description update the spring boot guide description * chore(console): remove extra empty space remove extra empty space * feat(core): support comma separated resource param (#5773) * chore(console,core): remove custom JWT dev feature guard (#5775) * chore(phrases): update custom JWT console phrases (#5776) * chore(deps): update ataylorme/eslint-annotate-action action to v3 (#5756) * chore(deps): update ataylorme/eslint-annotate-action action to v3 * ci: update upload-annotations.yml --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Gao Sun <gao@silverhand.io> * fix(core): bump oidc-provider to fix resource indicator check (#5782) * fix(core): bump oidc-provider to fix resource indicator check * chore: add changeset * chore(deps): upgrade formidable (#5780) * feat: add the new dockerize-edge job (#5777) * feat: add the new dockerize-edge-image job add the new dockerize-edge-image job * chore: rename the job rename the job * chore: fix the layout of docker-edge ci job fix the layout of docker-edge ci job * refactor(core): update `AuthedRouter` -> `ManagementApiRouter` * feat(connector): support `client_secret_basic` and `client_secret_jwt` methods for oauth2 connectors (#5762) * chore: ignore the hidden file found zap alert (#5786) ignore the hidden file found zap alert * fix: fix zap config file (#5788) fix zap config file * fix: fix zap config file syntax (#5790) fix zap config file syntax * fix(deps): update dependency tar to v7 (#5678) * fix(deps): update dependency tar to v7 * refactor: fix import --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Gao Sun <gao@silverhand.io> * chore(deps): update dependency supertest to v7 (#5791) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(experience): redirect to sign-in page on socical sign-in error (#5787) * 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 * refactor: reorg the implementation * feat: support organization custom data (#5785) * feat: support organization custom data * chore: update changeset * chore: add code coverage token (#5792) add code coverage token * fix(experience): use correct callback path for native environments (#5800) * refactor(console): remove useless log title definitions (#5798) remove useless log title definitions * fix(core): fix status code of create new user api (#5735) * fix(experience,core): fix SSO register hook event not triggering bug (#5796) * fix(experience,core): fix SSO register hook event not triggering bug fix the SSO register hook event not triggering bug * chore: update changeset content update changeset content * feat(schemas): add table for app org resource scope consent (#5803) feat(schemas): add table application_user_consent_organization_resource_scopes * fix: remove the plus sign in front of the phone number (#5801) * fix(core): fix upload file guard (#5810) fix: remove the plus sign in front of the phone number (#5801) Co-authored-by: Kamto <kam_to@outlook.com> * refactor: update plausible domain (#5799) refactor: update plausible domain * feat(core,schemas): add CRUD for consent organization resource scopes (#5804) feat(core,schemas): add crud for user consent organization resource scopes * refactor: implement request id (#5813) * refactor: implement request id * refactor: fix tests * refactor: add unit tests * refactor: remove app insights domains from security headers (#5814) * feat(connector): add hugging face connector (#5797) * fix(core): invitee email check should be case insensitive (#5823) * fix(core): invitee email check should be case insensitive * chore: a…
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Refactor useApi
hideToast
logic to accept customLogtoErrorCodes
.toastError
method to a separateuseGlobalRequestErrorHandler
hook.hideToast
props to accept a bool or an array ofLogtoErrorCodes
. If bool value is provided the hideToast settings will be applied globally. If a an array ofLogtoErrorCodes
is provided, only request error with the specifiedLogtoErrorCode
will be muted, such errors need to be handled manually. All the request error will keep showing global toasts.Testing
test locally
Checklist
.changeset