Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 40 additions & 3 deletions src/identity-server/templates/core/views/api-driven-ui/index.vm
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,23 @@
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>

#set($_cspImgsrc = "img-src 'self' data:;")
#if (!$_cspImgsrc)
#set($_cspImgsrc = "img-src 'self' data:;")
#end
#parse("fragments/csp")

<title></title>
<script type="module" crossorigin src="$!_staticResourceRootPath/assets/js/api-driven-ui.js?v=${_cacheBustingHash}"></script>
<link rel="stylesheet" crossorigin href="$!_staticResourceRootPath/assets/css/api-driven-ui.css?v=${_cacheBustingHash}">
#if ($_configured_ui_theme_css_path)
<link rel="stylesheet" type="text/css" href="${_configured_ui_theme_css_path}?v=${_cacheBustingHash}"/>
<link rel="stylesheet" href="${_configured_ui_theme_css_path}"/>
#end
#if ($_configured_ui_custom_theme_css_path)
<link rel="stylesheet" type="text/css" href="${_configured_ui_custom_theme_css_path}?v=${_cacheBustingHash}">
<link rel="stylesheet" href="${_configured_ui_custom_theme_css_path}">
#end

<link rel="icon" type="image/png" href="$favicon_path">
<link rel="apple-touch-icon" href="$favicon_path">
</head>
<body>
<script $nonceAttr>
Expand All @@ -36,6 +41,38 @@
clientId: '$_apiDrivenClientInfo.clientId',
tokenEndpoint: '$_apiDrivenClientInfo.tokenEndpoint',
},
theme: {
logo: {
path: '$!logo_path',
isInsideWell: #if ($logo_inside) true #else false #end,
},
#if ($show_symbol)
pageSymbols: {
## Free form mapping of page symbols names to full paths.
#macro(pageSymbolPath $jsonKey $variable)
#if($variable)$jsonKey: '$!variable',#end
#end
paths: {
#pageSymbolPath("authenticate_desktop" $page_symbol_authenticate_desktop)
#pageSymbolPath("authenticate_mobile" $page_symbol_authenticate_mobile)
#pageSymbolPath("authenticate_email" $page_symbol_authenticate_email)
#pageSymbolPath("authenticate_card" $page_symbol_authenticate_card)
#pageSymbolPath("authenticate_sms" $page_symbol_authenticate_sms)
#pageSymbolPath("authenticate_pair_device" $page_symbol_authenticate_pair_device)
#pageSymbolPath("authenticate_htmlform" $page_symbol_authenticate_htmlform)
#pageSymbolPath("authenticate_totp" $page_symbol_authenticate_totp)
#pageSymbolPath("authenticate_bankid" $page_symbol_authenticate_bankid)
#pageSymbolPath("authenticate_webauthn" $page_symbol_authenticate_webauthn)
#pageSymbolPath("authenticate_opt_in_mfa" $page_symbol_authenticate_opt_in_mfa)
#pageSymbolPath("authenticate_passkeys" $page_symbol_authenticate_passkeys)
#pageSymbolPath("authenticate_openid_wallet" $page_symbol_openid_wallet)
#pageSymbolPath("error_generic" $page_symbol_error_generic)
},
## Added in case the UI needs to build paths for other page symbols.
basePath: '$!page_symbol_path',
},
#end
},
};
</script>
<div id="root"></div>
Expand Down
2 changes: 1 addition & 1 deletion src/login-web-app/configure-idsvr-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ EOF
# Copy the loader template

OVERRIDES_DIR=$IDSVR_HOME/usr/share/templates/overrides
API_DRIVEN_UI_DIR=$OVERRIDES_DIR/api-driven-ui
API_DRIVEN_UI_DIR=$OVERRIDES_DIR/views/api-driven-ui

mkdir -p $API_DRIVEN_UI_DIR

Expand Down
2 changes: 1 addition & 1 deletion src/login-web-app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title></title>
<title>LWA - Development mode</title>
Comment thread
luisgoncalves marked this conversation as resolved.
</head>
<body>
<script>
Expand Down
Loading