Skip to content

[Integrate-2599] upgrade Logto to 1.40.1 with D2E adaptations#2827

Open
suwarnoong wants to merge 1 commit into
developfrom
suwarnoong/2599
Open

[Integrate-2599] upgrade Logto to 1.40.1 with D2E adaptations#2827
suwarnoong wants to merge 1 commit into
developfrom
suwarnoong/2599

Conversation

@suwarnoong

@suwarnoong suwarnoong commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Merge Checklist

Please cross check this list if additions / modifications needs to be done on top of your core changes and tick them off. Reviewer can as well glance through and help the developer if something is missed out.

  • Automated Tests (Jasmine integration tests, Unit tests, and/or Performance tests)
  • Updated Manual tests / Demo Config
  • Documentation (Application guide, Admin guide, Markdown, Readme and/or Wiki)
  • Verified that local development environment is working with latest changes (integrated with latest develop branch)
  • following best practices in code review doc

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Upgrades the embedded Logto integration to align with Logto 1.40.1 while preserving Data2Evidence-specific adaptations (sign-in flow tweaks, custom JWT behavior, and deployment/config updates).

Changes:

  • Updates sign-in page behavior (redirect handling + password-only detection refactor).
  • Extends custom JWT customization support (application context, regional Azure Functions execution path, token passthrough extras).
  • Bumps connector dependencies and updates local/dev compose DB alteration deploy target to 1.40.1.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
services/alp-logto/to-replace/SignIn/Main.tsx Refactors sign-in routing/redirect and password-only flow selection logic.
services/alp-logto/to-replace/core/src/libraries/jwt-customizer.ts Adds regional Azure Functions execution path and additional JWT customizer context handling.
services/alp-logto/post-init/src/main.ts Updates injected Logto UI CSS customization used during post-init provisioning.
services/alp-logto/connector-alp-entra-external-id/package.json Updates connector-kit and zod versions for Entra External ID connector.
services/alp-logto/connector-alp-azuread/package.json Updates connector-kit and zod versions for Azure AD connector.
docker-compose.yml Updates Logto DB alteration deploy version used by compose startup to 1.40.1.

import useTerms from '@/hooks/use-terms';
import LoadingLayer from '@/shared/components/LoadingLayer';

import useIdentifierSignInMethods from '../IdentifierSignIn/use-identifier-sign-in-methods';
signInMethods.length > 0 &&
signInMethods.every(({ password, verificationCode }) => password && !verificationCode);

if (isPasswordOnly) {
Comment on lines +45 to 46
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [isRedirecting, isLogout]);
Comment on lines 106 to 109
if (globalThis.tokenMap) {
// @ts-ignore
delete globalThis.tokenMap[mapId];
// eslint-disable-next-line @silverhand/fp/no-mutation
globalThis.tokenMap[mapId] = undefined;
}
Comment on lines +337 to +344
const result = await got
.post(new URL('/api/custom-jwt', azureFunctionUntrustedAppEndpoint), {
json: payload,
headers: {
'x-functions-key': azureFunctionUntrustedAppKey,
},
})
.json<unknown>();
customCss:
process.env.LOGTO__CUSTOM_CSS ||
`a[aria-label="Powered By Logto"] { display: none; }
`[data-logto-signature="secured"][data-logto-signature="secured"] { display: none !important; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants