feat: 🎸 Configurable favicons

use `favicon=URL_POINTING_TO_FAVICON_FILE` property to set it for the
MitreID gui
pull/1580/head
Dominik Frantisek Bucik 2021-12-10 08:16:29 +01:00
parent 99c5758812
commit bf227df26e
No known key found for this signature in database
GPG Key ID: 25014C8DB2E7E62D
19 changed files with 19 additions and 1 deletions

View File

@ -42,6 +42,7 @@
<!-- This property allows the server to create and accept fully-composed
user URIs (with the user-code emebedded) for the device flow -->
<property name="allowCompleteDeviceCodeUri" value="true" />
<property name="favicon" value="${favicon}"/>
</bean>
</beans>

View File

@ -12,6 +12,7 @@
<o:headerInit title="${title}" reqURL="${reqURL}" baseURL="${baseURL}" samlResourcesURL="${samlResourcesURL}" />
<link rel="icon" href="resources/images/bbmri.ico" />
<link rel="stylesheet" type="text/css" href="${samlResourcesURL}/module.php/bbmri/res/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="${samlResourcesURL}/module.php/bbmri/res/css/bbmri.css" />

View File

@ -12,6 +12,7 @@
<o:headerInit title="${title}" reqURL="${reqURL}" baseURL="${baseURL}" samlResourcesURL="${samlResourcesURL}"/>
<link rel="icon" href="resources/images/ceitec.ico" />
<link rel="stylesheet" type="text/css" href="${samlResourcesURL}/module.php/ceitec/res/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="${samlResourcesURL}/module.php/ceitec/res/css/ceitec.css" />

View File

@ -12,6 +12,7 @@
<o:headerInit title="${title}" reqURL="${reqURL}" baseURL="${baseURL}" samlResourcesURL="${samlResourcesURL}" />
<link rel="icon" href="resources/images/cesnet.ico" />
<link rel="stylesheet" type="text/css" href="${samlResourcesURL}/module.php/cesnet/res/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="${samlResourcesURL}/module.php/cesnet/res/css/cesnet.css" />

View File

@ -18,5 +18,6 @@
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0" />
<meta name="robots" content="noindex, nofollow" />
<link rel="icon" href="${config.favicon}"/>
<link rel="stylesheet" type="text/css" href="${samlResourcesURL}/resources/default.css" />
<link rel="stylesheet" type="text/css" href="resources/css/customs.css">

View File

@ -12,6 +12,7 @@
<o:headerInit title="${title}" reqURL="${reqURL}" baseURL="${baseURL}" samlResourcesURL="${samlResourcesURL}" />
<link rel="icon" href="resources/images/einfra.ico" />
<link rel="stylesheet" type="text/css" href="${samlResourcesURL}/module.php/cesnet/res/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="${samlResourcesURL}/module.php/cesnet/res/css/einfra.css" />

View File

@ -12,6 +12,7 @@
<o:headerInit title="${title}" reqURL="${reqURL}" baseURL="${baseURL}" samlResourcesURL="${samlResourcesURL}"/>
<link rel="icon" href="resources/images/elixir.ico" />
<link rel="stylesheet" type="text/css" href="${samlResourcesURL}/module.php/elixir/res/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="${samlResourcesURL}/module.php/elixir/res/css/elixir.css" />

View File

@ -12,6 +12,7 @@
<o:headerInit title="${title}" reqURL="${reqURL}" baseURL="${baseURL}" samlResourcesURL="${samlResourcesURL}" />
<link rel="icon" href="resources/images/europdx.ico" />
<link rel="stylesheet" type="text/css" href="${samlResourcesURL}/module.php/europdx/res/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="${samlResourcesURL}/module.php/europdx/res/css/europdx.css" />

View File

@ -30,7 +30,7 @@
<![endif]-->
<!-- favico -->
<link rel="shortcut icon" href="resources/images/mitreid-connect.ico">
<link rel="shortcut icon" href="${config.favicon}">
<!-- Load jQuery up here so that we can use in-page functions -->
<script type="text/javascript" src="resources/js/lib/jquery.js"></script>

View File

@ -18,6 +18,7 @@
<title><spring:message code="unified_login"/> | ${title}</title>
<link rel="icon" href="resources/images/muni.ico" />
<link rel="stylesheet" type="text/css" href="https://id.muni.cz/simplesaml/module.php/muni/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="https://id.muni.cz/simplesaml/module.php/muni/css/style-ie.css?1.2">
<link rel="stylesheet" type="text/css" href="https://id.muni.cz/simplesaml/module.php/muni/css/style.css?1.2">

View File

@ -97,6 +97,7 @@
<prop key="main.oidc.issuer.url">https://perun-dev.meta.zcu.cz/oidc/</prop>
<prop key="logo.image.url">resources/images/perun_24px.png</prop>
<prop key="topbar.title">Perun OIDC</prop>
<prop key="favicon">resources/images/mitreid-connect.ico</prop>
<prop key="admins">3197,59835</prop>
<prop key="perun.adapter.callFallback">true</prop>
<prop key="fill.missing.user.attrs">true</prop>

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 B

View File

@ -43,6 +43,7 @@ public class ConfigurationPropertiesBean {
private String topbarTitle;
private String shortTopbarTitle;
private String logoImageUrl;
private String favicon = "resources/images/mitreid-connect.ico";
private Long regTokenLifeTime;
private Long rqpTokenLifeTime;
private boolean forceHttps = false; // by default we just log a warning for HTTPS deployment
@ -178,4 +179,11 @@ public class ConfigurationPropertiesBean {
this.allowCompleteDeviceCodeUri = allowCompleteDeviceCodeUri;
}
public String getFavicon() {
return favicon;
}
public void setFavicon(String favicon) {
this.favicon = favicon;
}
}