diff --git a/hawkbit-ui/pom.xml b/hawkbit-ui/pom.xml
index f924c52fe..5873b5b9e 100644
--- a/hawkbit-ui/pom.xml
+++ b/hawkbit-ui/pom.xml
@@ -25,7 +25,7 @@
hawkBit :: UI
- 24.9.7
+ 25.0.2
diff --git a/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/MainLayout.java b/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/MainLayout.java
index a40f20d3d..8e4702a4f 100644
--- a/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/MainLayout.java
+++ b/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/MainLayout.java
@@ -13,6 +13,7 @@ import java.util.List;
import java.util.Optional;
import com.vaadin.flow.component.Component;
+import com.vaadin.flow.component.HasElement;
import com.vaadin.flow.component.UI;
import com.vaadin.flow.component.Unit;
import com.vaadin.flow.component.applayout.AppLayout;
@@ -68,8 +69,8 @@ public class MainLayout extends AppLayout {
}
@Override
- protected void afterNavigation() {
- super.afterNavigation();
+ public void showRouterLayoutContent(final HasElement content) {
+ super.showRouterLayoutContent(content);
viewTitle.setText(
Optional.ofNullable(getContent())
.map(c -> c.getClass().getAnnotation(PageTitle.class))
diff --git a/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/security/UserDetailsSetter.java b/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/security/UserDetailsSetter.java
index dacba1971..0340580ef 100644
--- a/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/security/UserDetailsSetter.java
+++ b/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/security/UserDetailsSetter.java
@@ -20,7 +20,6 @@ import jakarta.servlet.http.HttpServletResponse;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
-import org.jetbrains.annotations.NotNull;
import org.springframework.security.authentication.AccountExpiredException;
import org.springframework.security.authentication.AnonymousAuthenticationToken;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
@@ -42,32 +41,32 @@ class UserDetailsSetter extends OncePerRequestFilter {
@SuppressWarnings("java:S1066") // java:S1066 - readability preferred
@Override
- protected void doFilterInternal(@NotNull final HttpServletRequest request, @NotNull final HttpServletResponse response,
- @NotNull final FilterChain filterChain)
+ protected void doFilterInternal(final HttpServletRequest request, final HttpServletResponse response, final FilterChain filterChain)
throws ServletException, IOException {
-
- Authentication authentication = securityContextHolderStrategy.getContext().getAuthentication();
- Authentication newAuthentication;
+ final Authentication authentication = securityContextHolderStrategy.getContext().getAuthentication();
+ final Authentication newAuthentication;
if (!(authentication instanceof AnonymousAuthenticationToken) && authentication.isAuthenticated()) {
- Collection extends GrantedAuthority> grantedAuthorities = grantedAuthoritiesService.getGrantedAuthorities(authentication);
-
+ final Collection extends GrantedAuthority> grantedAuthorities = grantedAuthoritiesService.getGrantedAuthorities(authentication);
if (authentication instanceof OAuth2AuthenticationToken oAuth2AuthenticationToken) {
- newAuthentication = new OAuth2AuthenticationToken(oAuth2AuthenticationToken.getPrincipal(), grantedAuthorities,
+ newAuthentication = new OAuth2AuthenticationToken(
+ oAuth2AuthenticationToken.getPrincipal(), grantedAuthorities,
oAuth2AuthenticationToken.getAuthorizedClientRegistrationId());
if (authentication.getPrincipal() instanceof OidcUser user) {
- // if there is no refresh token and the access token is expired then relogin is required
+ // if there is no refresh token and the access token is expired then re-login is required
if (user.getIdToken().getExpiresAt() != null && Instant.now().isAfter(user.getIdToken().getExpiresAt())) {
throw new AccountExpiredException("Token expired");
}
}
} else {
- newAuthentication = new UsernamePasswordAuthenticationToken(authentication.getName(), authentication.getCredentials(),
- grantedAuthorities);
+ newAuthentication = new UsernamePasswordAuthenticationToken(
+ authentication.getName(), authentication.getCredentials(), grantedAuthorities);
}
securityContextHolderStrategy.getContext().setAuthentication(newAuthentication);
}
+
+ // proceed with the filter chain
filterChain.doFilter(request, response);
}
-}
+}
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 22e5e3a7a..3febeb390 100644
--- a/pom.xml
+++ b/pom.xml
@@ -17,7 +17,7 @@
org.springframework.boot
spring-boot-starter-parent
- 3.5.8
+ 3.5.9
org.eclipse.hawkbit
@@ -56,9 +56,9 @@
17
- 3.5.8
- 2025.0.0
- 2.8.14
+ 3.5.9
+ 2025.0.1
+ 2.8.15