Skip to content

IS-11318 Adjust dev setup script to copy dev loader template to new location + prod loader template improvements#193

Merged
luisgoncalves merged 4 commits into
integration/IS-5161/login-web-appfrom
fix/IS-11318-dev-setup
May 21, 2026
Merged

IS-11318 Adjust dev setup script to copy dev loader template to new location + prod loader template improvements#193
luisgoncalves merged 4 commits into
integration/IS-5161/login-web-appfrom
fix/IS-11318-dev-setup

Conversation

@luisgoncalves
Copy link
Copy Markdown
Contributor

@luisgoncalves luisgoncalves commented May 19, 2026

  • After integration the LWA build in the server build (available on the server LWA integration branch), the server now expects the loader template to be views/api-driven-ui/index.vm. ui-kit already has the production template in the correct location, but the script that configures the "development setup" (via Vite dev server et al) was still copying the dev loader to the old location.
  • Removal of an unnecessary cache busting query in theme CSS links in the main loader template, because that's already part of the path provided by the server in the Velocity variables.
  • Only set CSP img-src if not already set, because it can come from a configured theme variable
  • Include details about logo and page symbols in the bootstrap data. Example window.__CONFIG__:
{
  "initialUrl": "/authenticate/username",
  "haapi": {
    "clientId": "urn:se.curity:haapi:type-0",
    "tokenEndpoint": "https://example.com/token"
  },
  "theme": {
    "logo": {
      "path": "/assets/images/curity-logo.svg",
      "isInsideWell": false
    },
    "pageSymbols": {
      "paths": {
        "authenticate_desktop": "/assets/images/login-symbol-computer.svg",
        "authenticate_mobile": "/assets/images/login-symbol-user-computer.svg",
        "authenticate_email": "/assets/images/login-symbol-email.svg",
        "authenticate_card": "/assets/images/login-symbol-card.svg",
        "authenticate_sms": "/assets/images/login-symbol-sms.svg",
        "authenticate_pair_device": "/assets/images/login-symbol-pair-device.svg",
        "authenticate_htmlform": "/assets/images/login-symbol-password.svg",
        "authenticate_totp": "/assets/images/login-symbol-totp.svg",
        "authenticate_bankid": "/assets/images/login-symbol-bankid.svg",
        "authenticate_webauthn": "/assets/images/login-symbol-webauthn.svg",
        "authenticate_opt_in_mfa": "/assets/images/login-symbol-opt-in-mfa.svg",
        "authenticate_passkeys": "/assets/images/login-symbol-passkeys.svg",
        "authenticate_openid_wallet": "/assets/images/login-symbol-openid-wallet.svg",
        "error_generic": "/assets/images/login-symbol-exclamation.svg"
      },
      "basePath": "/assets/images/"
    }
  }
}

@luisgoncalves luisgoncalves requested a review from urre May 21, 2026 07:18
@luisgoncalves luisgoncalves changed the title IS-11318 Adjust dev setup script to copy loader template to new location IS-11318 Adjust dev setup script to copy dev loader template to new location + prod loader template improvements May 21, 2026
Comment thread src/identity-server/templates/core/views/api-driven-ui/index.vm Outdated
Comment thread src/login-web-app/index.html
@luisgoncalves luisgoncalves merged commit 4ccb7fc into integration/IS-5161/login-web-app May 21, 2026
2 checks passed
@luisgoncalves luisgoncalves deleted the fix/IS-11318-dev-setup branch May 21, 2026 12:26
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.

3 participants