Skip to content

Commit

Permalink
Feature(OGCIO): merge to v1.19.0 (#124)
Browse files Browse the repository at this point in the history
* refactor(console): reorg logo uploads

* refactor(experience): add label for input field (logto-io#6200)

* feat(core): add quota guard for subject tokens (logto-io#6205)

* style(experience): update floating label position (logto-io#6211)

* refactor(core): update cache key

* refactor(console): rename file

* refactor(console): update all logo uploaders (logto-io#6209)

* refactor(experience): show dark favicon (logto-io#6210)

* feat(core): implement TOTP verification routes (logto-io#6201)

* feat(core): implmenent totp verification routes

implement totp verification routes

* fix(core): update comments

update comments

* feat(core,schemas): implement backup codes verification (logto-io#6207)

implement the backup code verification flow

* refactor: fix experience branding fallback

* fix(experience): use forgot password identifier in related flow (logto-io#6221)

* refactor(console): improve branding experience

* feat(core): handle dpop and client certificate for token exchange (logto-io#6199)

* refactor: fix third-party app experience branding (logto-io#6223)

* refactor(core): refactor organizations in grants (logto-io#6208)

* test: add resource test cases for token exchange (logto-io#6216)

* feat(core): handle dpop and client certificate for token exchange

* refactor(core): refactor organizations in grants

* test: add resource test cases for token exchange

* feat(core,schemas): introduce new PUT experience API (logto-io#6212)

* feat(core,schemas): introduce new PUT experience API

introduce new PUT experience API

* fix(core): fix some comments

fix some comments

* refactor: experience ssr (logto-io#6229)

* refactor: experience ssr

* refactor: fix parameter issue

* chore(deps): upgrade packages

* chore(deps): upgrade zod

* feat(experience): support loading state for buttons (logto-io#6232)

* refactor: patch type issues

* chore: add changesets (logto-io#6239)

* chore(deps): update vitest monorepo to v2 (major) (logto-io#6202)

* chore(deps): update vitest monorepo to v2

* refactor: remove unused lint ignorings

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Gao Sun <[email protected]>

* feat(core,schemas): implement the sie settings guard (logto-io#6215)

* feat(core,schemas): implement the sie settings guard

implement the sie settings guard

* fix(test): fix integration test

fix integration test

* test(core): add sie guard ut

add sie guard ut

* chore(core): add some comment

add some comment

* refactor(core): rename the sign-in-experience-settings class

rename the sign-in-experience-settings class

* feat: init elements

* refactor(core): remove subject token api prefix (logto-io#6235)

* feat(core): add get available sso connectors endpoint (logto-io#6224)

feat(core): implement get sso connectors
implement get sso connectors endpoint

* feat(elements): init i18n

* feat(core,schemas): implement the register flow (logto-io#6237)

* feat(core,schemas): implement the register flow

implement the register flow

* refactor(core,schemas): relocate the profile type defs

relocate the profile type defs

* fix(core): fix the validation guard logic

fix the validation guard logic

* fix(core): fix social and sso identity not created bug

fix social and sso identity not created bug

* fix(core): fix social identities profile key

fix social identities profile key

* fix(core): fix sso query method

fix sso query method

* feat(core,schemas): add post custom ui assets api (logto-io#6118)

* feat(core,schemas): add post custom ui assets api

* test(core): add register integration tests (logto-io#6248)

* test(core): add register integration tests

add register integration tests

* test: add enterprise sso integration tests

add enterprise sso integration tests

* feat(elements): add components

* feat(core,schemas): implement the username password registration flow (logto-io#6249)

* feat(core,schemas): implement the username password registration flow

implement the username password registration flow

* chore(core): update some comments

update some comments

* fix(test): fix integration tests

fix integration tests

* fix(test): fix lint

fix lint

* fix(experience): correct active state for input field (logto-io#6255)

* refactor(console): use button loading in experience flow if possible (logto-io#6234)

* refactor(experience): support and apply modal loading state (logto-io#6236)

* refactor(experience): support and apply modal loading state

* feat(experience): support cancel loading for modal

* chore(elements): update readme

* feat(core): add the new user provision (logto-io#6253)

add the new user provision

* feat(connector): enable custom headers for SMTP connector (logto-io#6256)

* fix(console): fix Google connector `scope` field can not be unset bug (logto-io#6254)

* style(experience): improve input filed style (logto-io#6260)

* feat(core): set up proxy to host custom ui assets if available (logto-io#6214)

* feat(core): set up proxy to host custom ui assets if available

* refactor: use object param for koa spa proxy middleware

* refactor: make queries param mandatory

* style(experience): remove autofill style from input component (logto-io#6261)

* fix(console): fix image upload in onboarding process (logto-io#6266)

* fix(console): fix grant data card height (logto-io#6264)

* fix(console): fix passwordless connector tester send failed bug (logto-io#6268)

* feat(console): implement custom ui assets upload component (logto-io#6217)

* ci: always set conclusion for alteration tests (logto-io#6276)

* style(experience): add transition for notched border (logto-io#6265)

* refactor(experience): avoid disabled button for continue button (logto-io#6271)

* feat(core): add api quota guard for bring your ui feature (logto-io#6273)

* fix(console): should not toast invitation sent message when creating tenant w/o invitee (logto-io#6270)

fix(console): should not toast invitation sent message when creating tenant without invitee

* feat(console): add impersonation price item (logto-io#6269)

* fix(experience): shrink input field when autofilled by the browser (logto-io#6280)

* feat(console): add impersonation tag to audit log (logto-io#6267)

* feat(core,schemas): implement social/sso link and sync logic (logto-io#6257)

* feat(core,schemas): implement social/sso link and sync logic

implement social/sso link and sync logic

* test(core): add intergration tests

add integration tests

* feat(core): add mfa verification guard (logto-io#6262)

add mfa verification guard

* chore: remove feature guard for token exchange (logto-io#6246)

* chore: add changeset for impersonation (logto-io#6251)

* chore(elements): move check to build

* chore(deps): upgrade typescript

* chore(elements): add locale changes

* chore(deps): upgrade react

* chore(elements): check git existence

* feat(schemas): init app_secrets table

* feat(core): multiple app secrets

* refactor(core,schemas): refactor `CodeVerification` (logto-io#6277)

* refactor(core,schemas): refactor the CodeVerification class

split the CodeVerification class into EmailCodeVerification and PhoneCodeVerification

* refactor(core,schemas): split CodeVerification type

split CodeVerification type

* fix(core): code review updates

code review updates

* feat: add content schema to HTTP 201 CREATED messages (logto-io#6244)

feat: add content schema to 201 messages

* feat(console,phrases): add bring your ui quota item to pricing table (logto-io#6274)

* refactor(console,phrases,schemas): increase file upload size limit to 10mb (logto-io#6258)

refactor(console,phrases,schemas): increase file upload size limit to 10 mb

* feat(elements): init modal and input

* refactor: fix phrases

* feat(elements): init user provider

* feat(elements): update name

* feat(console,phrases): add bring your UI feature paywall (logto-io#6275)

feat(console,phrases): add bring your ui feature paywall

* chore: update README.md (logto-io#6297)

* chore: update README.md

* chore: add awesome list

* style(experience): improve notched border animation (logto-io#6296)

* fix(console): sidebar width should not be shrunk (logto-io#6299)

* refactor(core): extract password-validator (logto-io#6282)

* refactor(core): extract password-validator

extract password validator

* fix(core): update comments and rename method name

update comment and rename method name

* refactor(console): update file uploader component to 80px fixed height

* fix(core): should not sync registered identifier from social (logto-io#6283)

should not sync registered identifier from social

* style(experience): use brand loading color for buttons (logto-io#6302)

* chore(console): remove dev feature guard (logto-io#6303)

* refactor(core): extract helpers and provision methods (logto-io#6285)

extract helpers and provision methods

* feat(console): support multiple app secrets

* refactor(phrases): improve bring your ui field description

* fix(console): add cloud guard to bring your ui form field

* refactor(schemas): increase max upload file size limit to 20MB

* fix(core): disable bring your ui feature for admin tenant (logto-io#6300)

* fix(console): should be able to remove the zip on upload error (logto-io#6306)

* refactor: generate application secret on creation

* fix(console): fix loading and error handling for org details page (logto-io#6313)

* refactor(console): keep button loading before redirecting to sign-in success page (logto-io#6305)

* refactor: use vite for demo app

* refactor(core): log app secret name

* chore(phrases): sync keys and translate (logto-io#6315)

* refactor(core): implement verification records map (logto-io#6289)

* refactor(core): implement verificaiton records map

implement verification records map

* fix(core): fix invalid verification type error

fix invalid verificaiton type error

* fix(core): update the verification record map

update the verification record map

* fix(core): update some comments

update some comments

* refactor(core): polish promise dependency

polish promise dependency

* fix(core): fix the social/sso syncing profile logic

fix the social/sso syncing profile logic

* refactor(core): optimize the verification records map

optimize the verification records map

* fix(core): fix set method of VerificationRecord map
fix set method of VerificationRecord map

* refactor(experience): use button loading for social sign-in (logto-io#6316)

* chore: add comment

* chore: add comment

* refactor(console): use vite

* refactor(experience): use vite

* refactor(console): use local mermaid import

* fix(console): use correct public url (logto-io#6325)

* refactor(console, experience): optimize bundling (logto-io#6326)

* refactor(console, experience): optimize bundling

* fix: use correct favicon paths

* chore: use dynamic react dependency checking in bundling

* refactor(core): rename some file names and methods (logto-io#6321)

* refactor(core): rename some files name and methods

rename some files name and methods, fix some comments

* chore: update comments

update comments

* chore: update comments

update comments

* chore: polish the words

polish the words

* fix(console): check scope only when data is ready (logto-io#6329)

* feat(core,schemas): implement profile fulfillment flow (logto-io#6293)

* feat(core,schemas): implement profile fulfillment flow

implement profile fulfillment flow

* fix(test): fix integration tests

fix integration tests

* fix(core): fix rebase issue

fix rebase issue

* refactor(core): refactor the interaction set profile flow

refactor the interaction set profile flow

* test(core): add profile fulfillment integration tests (logto-io#6294)

* test(core): add profile fufillment integration tests

add profile fufillment integration tests

* fix: fix integration tests

fix integration tests

* refactor(test): rebase and update the latest profile api

rebase and update the latest profile api

* fix(console): css loaded svg should be rendered properly (logto-io#6333)

* fix(core): fix some webhook api body status 404 bug (logto-io#6311)

* fix(core): fix some webhook api body status 404 bug

fix some webhook api body status 404 bug

* fix(core): improve the webhook trigger logic

improve the webhook trigger logic

* chore: add changeset

add changeset

* chore: update the changeset

update the changeset

* feat(core): implement the WebAuthn verification (logto-io#6308)

feat(core): implement the webauthn verification

implement the webauthn verification

* feat(schemas): add custom data to application (logto-io#6309)

* feat(core,schemas): add application custom data

add application custom data

* test(core): add update application with new custom data test

add update application with new custom data test

* refactor(console): increase custom ui assets upload timeout to 5 mins (logto-io#6319)

refactor(console): increase custom ui assets upload timeout to 5mins

* refactor: update logto/core cloud API usage

* refactor: update code according to CR

* refactor(console): update admin console using new pricing model (logto-io#6295)

* refactor(console): update cloud API calls

* refactor: update code according to CR

* refactor: correct component usage

* refactor(console): safely lazy load pages (logto-io#6332)

* refactor(console): safely lazy load pages

* chore(console): use react-safe-lazy

* feat(core): implement the missing mfa bind and guard flow (logto-io#6320)

* feat(core): implement the mfa binding flow

implment the mfa binding flow

* fix(test): fix integration tests

fix integration tests

* fix(core): fix the wrong status code

fix the wrong status code

* refactor(core): refactor bind backup codes

refactor bind backup codes

* refactor(core): extract isNewMfaVerification property (logto-io#6338)

extract isNewMfaVerifrication property

* refactor(core): refactor backup code generates flow (logto-io#6339)

refactor(core): refactor backup code generate flow

refactor backup code generate flow

* fix(console): dragging anchor in the color picker on application branding page (logto-io#6340)

* test(core): add the mfa binding integration tests (logto-io#6330)

* refactor(core): refactor backup code generate flow

refactor backup code generate flow

* fix(core): fix api payload

fix api payload

* test(core): implement the mfa binding integration tests

implement the mfa binding integration tests

* test(core): rebase backup code refactor

rebase backup code refactor

* style(console): fix custom jwt guide card style (logto-io#6343)

* refactor(console): block page navigation when uploading custom ui assets (logto-io#6342)

* chore(console): update bring your ui documentation link (logto-io#6317)

chore(console): add bring your ui documentation link

* fix(elements): fix user context tag name (logto-io#6346)

* chore: launch multiple app secrets

* chore: launch multiple app secrets

* refactor(core): use tsup for building

* refactor: use tsup for building

* refactor(console): improve ux

* chore: fix failed tests

* refactor(connector): use tsup for building

* ci: add check job

* feat(console): remove beta tag for protected app (logto-io#6341)

* feat(console): add passport.js guide (logto-io#6344)

* chore: update plausible urls (logto-io#6349)

* refactor(console, experience): solve sass deprecations (logto-io#6356)

* fix(console): fix the plan title for subscription plan selector (logto-io#6348)

* refactor(core): refactor openapi docs for protected app (logto-io#6331)

* refactor: update per review

* feat: allow app secret edit (logto-io#6352)

* fix(console): add dev guard on new pricing model subscription hooks (logto-io#6363)

* feat(core): migrate register flow affiliate report logic (logto-io#6334)

Migrate the new user affiliate flow from interaction API. 

- `postAffiliateLogs` is forked from  `routes/interaction/actions/helpers.ts`

* refactor(core): extract verified interaction guard middleware (logto-io#6336)

* refactor(core): refactor backup code generate flow

refactor backup code generate flow

* fix(core): fix api payload

fix api payload

* fix(core): fix rebase issue

fix rebase issue

* refactor(core): extract verified interaction guard middleware

extract verified interaction guard middleware

* refactor(console): fix text overflow issue (logto-io#6366)

* refactor(core): make the interaction event mandatory (logto-io#6337)

* refactor(core): refactor backup code generate flow

refactor backup code generate flow

* fix(core): fix api payload

fix api payload

* fix(core): fix rebase issue

fix rebase issue

* refactor(core): make the interaction event mandatory

make the interaction event mandatory

* test: update integration tests

update integration tests

* fix(core): fix the middleware apply bug

fix the koaExperienceInteraction middleware apply bug

* feat(core): add webhooks middleware to experience api (logto-io#6357)

* refactor(core): refactor backup code generate flow

refactor backup code generate flow

* fix(core): fix api payload

fix api payload

* fix(core): fix rebase issue

fix rebase issue

* feat(core): add hooks middleware to experience APIs

add interaction hooks to experience APIs

* refactor(core): refactor experience API context type

refactor experience API context type

* feat(connector): added postmark connector

* chore: remove unused deps (logto-io#6372)

* chore: remove unused deps

* chore: fix version

* refactor(core): improve swagger auth description (logto-io#6367)

* feat(core,schemas): add auditLogs to experience API (logto-io#6361)

* refactor(core): refactor backup code generate flow

refactor backup code generate flow

* fix(core): fix api payload

fix api payload

* fix(core): fix rebase issue

fix rebase issue

* feat(core,schemas): add auditLogs to experience API

add auditLogs to experience API

* refactor(core): allow cloudflare insights origin in csp (logto-io#6375)

refactor(core): allow cloudflare csp

* feat(core,schemas): add mandatory password guard on register (logto-io#6368)

* refactor(core): refactor backup code generate flow

refactor backup code generate flow

* fix(core): fix api payload

fix api payload

* fix(core): fix rebase issue

fix rebase issue

* feat(core,schemas): add mandatory password guard on register

add mandatory password guard on register

* feat: add advanced search params to all supported endpoints (logto-io#6358)

* feat: add search params to list users endpoint

* feat: implement advanced search for all supported endpoints

* chore(deps): update dependency nock to v14.0.0-beta.9 (logto-io#6243)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* feat(cli): add cli command to setup custom ui local debugging proxy (logto-io#6365)

* feat(cli): add proxy

* refactor(cli): polish code per comments

* refactor(cli): polish code

* refactor(cli): support serving static files

* chore: add changeset

* refactor: polish code

* refactor(cli): polish code

* refactor(cli): make json parse safer

* feat(core,console,phrases): add custom data editor to application details page (logto-io#6370)

* feat(core,console,phrases): add custom data editor to application details page

add custom data editor to application details page

* chore: add changeset

add changeset

* fix(core): fix input params bug

fix input params bug

* fix(test): fix the integration tests

fix the integration tests

* fix(console): use the form controller element

use the form controller element

* fix(core,console): remove deepPartial statement

remove deepPartial statement from the patch application API payload guard

* fix(test): fix backchannel integration test

fix backchannel integration test

* fix(core): allow non-json body type when parsing (logto-io#6379)

* refactor(core): make password optional in NewPasswordIdentity (logto-io#6377)

refactor(core): make password optional in NewPasswordIdentity verification

make password optioanl in NewPasswordIdentity verification

* refactor(console): get and check `skuId` from checkout session (logto-io#6369)

* refactor(console): get and check skuId from checkout session

* chore: update @logto/cloud dependency

* refactor: add tests for content-type in oidc apis (logto-io#6380)

* refactor(console): delay module loading suspense component display by 500ms (logto-io#6345)

* chore(console): remove redunant login hint usage for invitation (logto-io#6385)

* fix(core): error data bug fixing (logto-io#6382)

fix(core): error code bug fixing

error code bug fixing

* refactor(console): update billing info showed in subscription details page (logto-io#6384)

* fix(console): add in-line error message (logto-io#6386)

* fix(console): add in-line error message

add in-line error message

* refactor(console): remove old validation logic

remove old validation logic

* fix(console): create tenant button should stretch to full width (logto-io#6381)

* fix(console): manual update subscription data when add/delete resources (logto-io#6360)

* fix(console): add post response hook to update subscription info for useApi hook

* refactor: wrap sync subscription data method

* chore(phrases): update content (logto-io#6392)

chore: update content

* fix(console): fix the subscription plan display in tenant dropdown (logto-io#6393)

* refactor(core): should not guard sso authentication flow (logto-io#6394)

should not guard mfa and profile fulfillment for the sso authentication flow

* fix(core): should not throw when not adding any new roles to a user (logto-io#6387)

* fix(console): should not call cloud API when tenant ID is not valid (logto-io#6399)

* refactor(console): improve guide logo and contact us logo display (logto-io#6391)

* feat(core,schemas): add support for argon2d and argon2id (logto-io#6404)

* feat(console): support next auth v5 (logto-io#6397)

* feat: add add-on feature notice/tag

* chore: define add on unit price temporarily

* refactor: produce br outputs (logto-io#6376)

* refactor: produce br outputs

* refactor: fix favicon url

* refactor: add `report:subscription:updates` Cloud scope (logto-io#6403)

* Revert "refactor: add `report:subscription:updates` Cloud scope" (logto-io#6412)

Revert "refactor: add `report:subscription:updates` Cloud scope (logto-io#6403)"

This reverts commit e1922e9.

* fix(console): fix unexpected 401 error toast (logto-io#6416)

* feat(core): add Sentinel guard (logto-io#6374)

feat(core): add sentinel protection

add sentinel protection

* feat(core): support google one tap (logto-io#6395)

* feat(core): support google one tap

support google one tap verification

* fix(core): fix google one tap verification error

fix google one tap verification error

* fix(test): optimize social verification test

optimize social verificaiton tests

* fix(test): update social verification ut

update social verification util unit test

* refactor(core,schemas): refactor the register flow (logto-io#6401)

* refactor(core,schemas): refactor the registration flow

refactor the registraction flow

* fix(core): remove unused method

remove unused method

* fix(test): remove legacy test

remove legacy test

* fix(core): fix webauthn verificaiton api

fix webauthn verification api

* feat(console): add new usage display for pro subscription plan (logto-io#6413)

* release: version packages (logto-io#6197)

* feat(cli): added ogcio folder

* chore(cli): added ref to ogcio command

* feat(core): added env sample

* chore(cli): added port collision fix

* chore(core): updated docker compose

* chore(cli): fixed dockerfile

* chore(cli): added makefile

* chore(core): updated package json

* chore(core): updated run logto remote

* chore(core): updated pr request template

* chore(cli): ogcio connectors

* chore(phrases): updated errors

* chore(core): added lot of stuffs

* fix(cli): fixed port

* workflow main

* dockerignore

* readme

* basics

* basics

* basics

* basics

* eof

* eof

* eof

* chore(core): synced

---------

Co-authored-by: Gao Sun <[email protected]>
Co-authored-by: Xiao Yijun <[email protected]>
Co-authored-by: wangsijie <[email protected]>
Co-authored-by: simeng-li <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Charles Zhao <[email protected]>
Co-authored-by: Darcy Ye <[email protected]>
Co-authored-by: Mostafa Moradian <[email protected]>
Co-authored-by: Sten Roger Sandvik <[email protected]>
Co-authored-by: silverhand-bot <[email protected]>
  • Loading branch information
11 people committed Sep 3, 2024
1 parent a33ebc5 commit 6dcd516
Show file tree
Hide file tree
Showing 1,662 changed files with 36,073 additions and 10,736 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,4 @@ dump.rdb
.devcontainer
.github
.husky
.parcel-cache
.vscode
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,11 @@ jobs:
GH_TOKEN: ${{ github.token }}
GH_DEBUG: api
run: gh workflow run rerun.yml -F run_id=${{ github.run_id }}

alteration-compatibility-conclusion:
needs: run-logto
runs-on: ubuntu-latest
if: always() && (needs.run-logto.result == 'success' || needs.run-logto.result == 'skipped')
steps:
- name: Conclusion
run: echo "Alteration compatibility integration test completed successfully"
22 changes: 15 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,25 @@ jobs:

- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v5
with:
pnpm-version: 9

- name: Build
run: pnpm ci:build

main-check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v5

- name: Prepack
run: pnpm prepack

- name: Check
run: pnpm -r check

main-lint:
runs-on: ubuntu-latest

Expand All @@ -34,8 +47,6 @@ jobs:

- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v5
with:
pnpm-version: 9

- name: Prepack
run: pnpm prepack
Expand All @@ -54,8 +65,6 @@ jobs:

- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v5
with:
pnpm-version: 9

- name: Build for test
run: pnpm -r build:test
Expand Down Expand Up @@ -122,7 +131,6 @@ jobs:
- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v5
with:
pnpm-version: 9
run-install: false

# ** Prepack packages **
Expand Down
6 changes: 0 additions & 6 deletions .npmrc

This file was deleted.

4 changes: 2 additions & 2 deletions .scripts/compare-database.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ const queryDatabaseManifest = async (database) => {
`);

const { rows: constraints } = await pool.query(/* sql */`
select conrelid::regclass AS table, con.*, pg_get_constraintdef(con.oid)
select conrelid::regclass as r_table, con.*, pg_get_constraintdef(con.oid) as def
from pg_catalog.pg_constraint con
inner join pg_catalog.pg_class rel
on rel.oid = con.conrelid
inner join pg_catalog.pg_namespace nsp
on nsp.oid = connamespace
where nsp.nspname = 'public'
order by conname asc;
order by conname asc, def asc;
`);

const { rows: indexes } = await pool.query(/* sql */`
Expand Down
2 changes: 1 addition & 1 deletion .scripts/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fi

# Some node packages use `src` as their dist folder, so ignore them from the rm list in the end
find \
.git .changeset .devcontainer .github .husky .parcel-cache .scripts .vscode pnpm-*.yaml *.js \
.git .changeset .devcontainer .github .husky .scripts .vscode pnpm-*.yaml *.js \
packages/**/src \
packages/**/*.config.js packages/**/*.config.ts packages/**/tsconfig*.json \
! -path '**/node_modules/**' \
Expand Down
8 changes: 4 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"topbar",
"upsell",
"withtyped",
"backchannel"
],
"eslint.codeActionsOnSave.rules": null
}
"backchannel",
"deepmerge"
]
}
2 changes: 1 addition & 1 deletion .vscode/tsx.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"scope": "javascriptreact,typescriptreact",
"prefix": "isc",
"body": [
"import * as styles from './index.module.scss';",
"import styles from './index.module.scss';",
"$0"
],
"description": "Import SCSS styles from the same directory."
Expand Down
11 changes: 11 additions & 0 deletions AWESOME.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Logto awesome

Here's the list of awesome community-contributed resources for Logto. Feel free to add yours by submitting a pull request.

## Account

- [Logto Account Dashboard](https://github.com/t2vee/Logto-Account-Dashboard) by @t2vee

## API

- [Go API client for logto](https://github.com/mostafa/go-api-client) by @mostafa
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ RUN apk add --no-cache python3 make g++ rsync
COPY . .

### Install dependencies and build ###
RUN node .scripts/update-parcelrc.js
RUN pnpm i

### Set if dev features enabled ###
Expand All @@ -40,7 +39,7 @@ RUN rm -rf node_modules packages/**/node_modules
RUN NODE_ENV=production pnpm i

### Clean up ###
RUN rm -rf .scripts .parcel-cache pnpm-*.yaml packages/cloud
RUN rm -rf .scripts pnpm-*.yaml packages/cloud

###### [STAGE] Seal ######
FROM node:20-alpine as app
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Logto[^info] is an Auth0 alternative designed for modern apps and SaaS products.
- Enables OIDC-based authentication with Logto SDKs.
- Supports passwordless sign-in, along with various options like email, phone number, username, Google, Facebook, and other social sign-in methods.
- Offers beautiful UI components with customizable CSS to suit your business needs.
- Has an open community with many warm-hearted contributors and users. Check out our [awesome list](./AWESOME.md) of community-contributed resources.

📦 **Out-of-the-box infrastructure**

Expand All @@ -37,12 +38,12 @@ Logto[^info] is an Auth0 alternative designed for modern apps and SaaS products.
- Implements role-based access control (RBAC) for scalable role authorization, catering to a wide range of use cases.
- Facilitates user management and provides audit logs for understanding identity-related user information and maintaining security.
- Enables single sign-on (SSO) and multi-factor authentication (MFA) without extra coding.
- Leverages Logto Organizations to build multi-tenancy apps with ease.
- Leverages Logto organizations to build multi-tenancy apps with ease.

In a more approachable way, we refer to this solution as "[Customer Identity Access Management (CIAM)](https://en.wikipedia.org/wiki/Customer_identity_access_management)" or simply, the "Customer Identity Solution."

[Subscribe to us](https://logto.io/subscribe/?utm_source=github&utm_medium=repo_logto) now to stay updated with the latest information about the Logto Cloud (SaaS) and receive feature updates in real-time.

> [!IMPORTANT]
> [Subscribe to us](https://logto.io/subscribe/?utm_source=github&utm_medium=repo_logto) now to stay updated with the latest information about the Logto Cloud (SaaS) and receive feature updates in real-time.
## Get started

Expand Down
2 changes: 1 addition & 1 deletion commitlint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const config: UserConfig = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [2, 'always', [...conventional.rules['type-enum'][2], 'api', 'release']],
'scope-enum': [2, 'always', ['connector', 'console', 'core', 'demo-app', 'test', 'phrases', 'schemas', 'shared', 'experience', 'deps', 'deps-dev', 'cli', 'toolkit', 'cloud', 'app-insights']],
'scope-enum': [2, 'always', ['connector', 'console', 'core', 'demo-app', 'test', 'phrases', 'schemas', 'shared', 'experience', 'deps', 'deps-dev', 'cli', 'toolkit', 'cloud', 'app-insights', 'elements']],
// Slightly increase the tolerance to allow the appending PR number
...(isCi && { 'header-max-length': [2, 'always', 110] }),
'body-max-line-length': [2, 'always', 110],
Expand Down
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
"@types/pg": "^8.6.6",
"husky": "^9.0.0",
"pg": "^8.8.0",
"typescript": "^5.0.0"
"tsup": "^8.1.0",
"typescript": "^5.0.0",
"vite": "^5.3.4"
},
"engines": {
"node": "^20.9.0",
Expand All @@ -52,9 +54,5 @@
},
"dependencies": {
"@logto/cli": "workspace:^1.1.0"
},
"//": "@see https://parceljs.org/features/dependency-resolution/#package-exports",
"@parcel/resolver-default": {
"packageExports": true
}
}
6 changes: 3 additions & 3 deletions packages/app-insights/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
"@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0",
"@types/node": "^20.9.5",
"@vitest/coverage-v8": "^1.4.0",
"@vitest/coverage-v8": "^2.0.0",
"eslint": "^8.56.0",
"lint-staged": "^15.0.0",
"prettier": "^3.0.0",
"typescript": "^5.3.3",
"vitest": "^1.4.0"
"typescript": "^5.5.3",
"vitest": "^2.0.0"
},
"engines": {
"node": "^20.9.0"
Expand Down
48 changes: 48 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,53 @@
# Change Log

## 1.19.0

### Minor Changes

- 2d0502a42: add new cli command to setup proxy for developing and debugging custom ui locally

This command will establish a proxy tunnel between the following 3 entities together: your Logto cloud auth services, your application, and your custom sign-in UI.

Assuming you have a custom sign-in page running on `http://localhost:4000`.
Then you can execute the command this way:

```bash
npm cli proxy --endpoint https://<tenant-id>.logto.app --port 9000 --experience-uri http://localhost:4000
```

Or if you don't have your custom UI pages hosted on a dev server, you can use the `--experience-path` option to specify the path to your static files:
```bash
npm cli proxy --endpoint https://<tenant-id>.logto.app --port 9000 --experience-path /path/to/your/custom/ui
```
This command also works if you have enabled custom domain in your Logto tenant. E.g.:
```bash
npm cli proxy --endpoint https://your-custom-domain.com --port 9000 --experience-path /path/to/your/custom/ui
```
This should set up the proxy and it will be running on your local machine at `http://localhost:9000/`.
Finally, run your application and set its Logto endpoint to the proxy address `http://localhost:9000/` instead.
If all set up correctly, when you click the "sign-in" button in your application, you should be navigated to your custom sign-in page instead of Logto's built-in UI, along with valid session (cookies) that allows you to further interact with Logto experience API.

Happy coding!

### Patch Changes

- Updated dependencies [6477c6dee]
- Updated dependencies [3a839f6d6]
- Updated dependencies [b91ec0cd6]
- Updated dependencies [d203c8d2f]
- Updated dependencies [b188bb161]
- Updated dependencies [62f5e5e0c]
- Updated dependencies [d56bc2f73]
- Updated dependencies [510f681fa]
- @logto/[email protected]
- @logto/[email protected]

## 1.18.0

### Patch Changes
Expand Down
22 changes: 12 additions & 10 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@logto/cli",
"version": "1.18.0",
"version": "1.19.0",
"description": "Logto CLI.",
"author": "Silverhand Inc. <[email protected]>",
"homepage": "https://github.com/logto-io/logto#readme",
Expand Down Expand Up @@ -45,30 +45,32 @@
"@logto/connector-kit": "workspace:^4.0.0",
"@logto/core-kit": "workspace:^2.5.0",
"@logto/language-kit": "workspace:^1.1.0",
"@logto/phrases": "workspace:^1.12.0",
"@logto/phrases": "workspace:^1.13.0",
"@logto/phrases-experience": "workspace:^1.7.0",
"@logto/schemas": "workspace:1.18.0",
"@logto/schemas": "workspace:1.19.0",
"@logto/shared": "workspace:^3.1.1",
"@silverhand/essentials": "^2.9.1",
"@silverhand/slonik": "31.0.0-beta.2",
"chalk": "^5.0.0",
"chalk": "^5.3.0",
"decamelize": "^6.0.0",
"dotenv": "^16.0.0",
"dotenv": "^16.4.5",
"got": "^14.0.0",
"hpagent": "^1.2.0",
"http-proxy-middleware": "^3.0.0",
"inquirer": "^9.0.0",
"mime": "^4.0.4",
"nanoid": "^5.0.1",
"ora": "^8.0.1",
"p-limit": "^5.0.0",
"p-limit": "^6.0.0",
"p-queue": "^8.0.0",
"p-retry": "^6.0.0",
"pg-protocol": "^1.6.0",
"roarr": "^7.11.0",
"semver": "^7.3.8",
"tar": "^7.0.0",
"typescript": "^5.3.3",
"typescript": "^5.5.3",
"yargs": "^17.6.0",
"zod": "^3.22.4"
"zod": "^3.23.8"
},
"devDependencies": {
"@silverhand/eslint-config": "6.0.1",
Expand All @@ -79,13 +81,13 @@
"@types/sinon": "^17.0.0",
"@types/tar": "^6.1.12",
"@types/yargs": "^17.0.13",
"@vitest/coverage-v8": "^1.4.0",
"@vitest/coverage-v8": "^2.0.0",
"@withtyped/server": "^0.13.6",
"eslint": "^8.56.0",
"lint-staged": "^15.0.0",
"prettier": "^3.0.0",
"sinon": "^18.0.0",
"vitest": "^1.4.0"
"vitest": "^2.0.0"
},
"eslintConfig": {
"extends": "@silverhand",
Expand Down
Loading

0 comments on commit 6dcd516

Please sign in to comment.