logto-io / logto

🧑‍🚀 The better identity infrastructure for developers and the open-source alternative to Auth0.
https://logto.io
Mozilla Public License 2.0
8.94k stars 446 forks source link

feat(core): redirect unknown session to app fallback uri #6785

Closed simeng-li closed 1 week ago

simeng-li commented 1 week ago

Summary

Redirect unknown session sign-in request to app fallback URI.

Testing

test locally

Checklist

github-actions[bot] commented 1 week ago

COMPARE TO master

Total Size Diff :chart_with_upwards_trend: +1.26 KB

Diff by File |Name|Diff| |---|---| |packages/cli/src/commands/database/seed/tables.ts|:chart_with_upwards_trend: +307 Bytes| |packages/console/src/containers/TenantAccess/index.tsx|:chart_with_upwards_trend: +488 Bytes| |packages/console/src/contexts/SubscriptionDataProvider/index.tsx|:chart_with_upwards_trend: +135 Bytes| |packages/console/src/contexts/TenantsProvider.tsx|:chart_with_upwards_trend: +300 Bytes| |packages/core/src/__mocks__/index.ts|:chart_with_upwards_trend: +70 Bytes| |packages/core/src/middleware/koa-spa-session-guard.test.ts|:chart_with_upwards_trend: +813 Bytes| |packages/core/src/middleware/koa-spa-session-guard.ts|:chart_with_upwards_trend: +990 Bytes| |packages/core/src/oidc/utils.ts|:chart_with_upwards_trend: +74 Bytes| |packages/core/src/queries/account-center.ts|:chart_with_upwards_trend: +745 Bytes| |packages/core/src/routes/account-center/index.openapi.json|:chart_with_upwards_trend: +1.2 KB| |packages/core/src/routes/account-center/index.ts|:chart_with_upwards_trend: +1.28 KB| |packages/core/src/routes/applications/application.ts|:chart_with_upwards_trend: +1.26 KB| |packages/core/src/routes/applications/types.ts|:chart_with_upwards_trend: +528 Bytes| |packages/core/src/routes/init.ts|:chart_with_upwards_trend: +162 Bytes| |packages/core/src/routes/swagger/utils/documents.ts|:chart_with_upwards_trend: +76 Bytes| |packages/core/src/tenants/Queries.ts|:chart_with_upwards_trend: +125 Bytes| |packages/integration-tests/src/api/account-center.ts|:chart_with_upwards_trend: +487 Bytes| |packages/integration-tests/src/tests/api/account-center.test.ts|:chart_with_upwards_trend: +776 Bytes| |packages/integration-tests/src/tests/api/application/application.unknown-session-fallback-uri.test.ts|:chart_with_upwards_trend: +4.38 KB| |packages/integration-tests/src/utils.ts|:chart_with_upwards_trend: +55 Bytes| |packages/phrases/src/locales/en/errors/application.ts|:chart_with_upwards_trend: +244 Bytes| |packages/schemas/alterations/next-1731037123-add-unknown-session-fallback-uri-column-to-application-table.ts|:chart_with_upwards_trend: +476 Bytes| |packages/schemas/alterations/next-1731054001-init-account-center.ts|:chart_with_upwards_trend: +705 Bytes| |packages/schemas/src/foundations/jsonb-types/account-center.ts|:chart_with_upwards_trend: +969 Bytes| |packages/schemas/src/seeds/account-center.ts|:chart_with_upwards_trend: +272 Bytes| |packages/schemas/src/seeds/application.ts|:chart_with_upwards_trend: +35 Bytes| |packages/schemas/tables/applications.sql|:chart_with_upwards_trend: +37 Bytes|