Skip to content

Commit f67b8ae

Browse files
committed
Fix: do not use (secured) theme in login page
closes #2218
1 parent 23172f4 commit f67b8ae

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

spring-boot-admin-samples/spring-boot-admin-sample-servlet/src/main/java/de/codecentric/boot/admin/SecuritySecureConfig.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ protected SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
6565

6666
http.authorizeHttpRequests((authorizeRequests) -> authorizeRequests //
6767
.requestMatchers(new AntPathRequestMatcher(this.adminServer.path("/assets/**"))).permitAll() // <1>
68-
.requestMatchers(new AntPathRequestMatcher(this.adminServer.path("/variables.css"))).permitAll()
6968
.requestMatchers(new AntPathRequestMatcher(this.adminServer.path("/actuator/info"))).permitAll()
7069
.requestMatchers(new AntPathRequestMatcher(adminServer.path("/actuator/health"))).permitAll()
7170
.requestMatchers(new AntPathRequestMatcher(this.adminServer.path("/login"))).permitAll()

spring-boot-admin-samples/spring-boot-admin-sample-servlet/src/main/resources/application.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ spring:
5050
de-service-test-5: A large content
5151
de-service-test-6: A large content
5252
kubectl.kubernetes.io/last-applied-configuration: '{"name":"jvm.threads.peak","description":"The peak live thread count since the Java virtual machine started or peak was reset","baseUnit":"threads","measurements":[{"statistic":"VALUE","value":64.0}],"availableTags":[]}'
53+
prefer-ip: true
5354
config:
5455
import: optional:configserver:http://localhost:8888/
5556
jmx:

spring-boot-admin-server-ui/src/main/frontend/login.css

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,24 @@
1717
@tailwind components;
1818
@tailwind utilities;
1919

20+
:root {
21+
--bg-color-start: #71e69c;
22+
--bg-color-stop: #09351a;
23+
}
24+
25+
.bg-color-start {
26+
transition: 0.4s ease;
27+
stop-color: var(--bg-color-start);
28+
}
29+
30+
.bg-color-stop {
31+
transition: 0.4s ease;
32+
stop-color: var(--bg-color-stop);
33+
}
34+
35+
2036
body {
21-
font-family: BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Oxygen,
37+
font-family: BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Oxygen,
2238
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, Helvetica, Arial,
2339
sans-serif;
2440
}

spring-boot-admin-server-ui/src/main/frontend/login.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
<meta name="format-detection" content="telephone=no,email=no" />
2525
<meta name="theme-color" content="#42d3a5" />
2626

27-
<link href="/variables.css" rel="stylesheet" />
28-
2927
<link
3028
rel="shortcut icon"
3129
th:href="${uiSettings.favicon}"

0 commit comments

Comments
 (0)