Skip to content

Commit edf45c2

Browse files
committed
Add import
1 parent 56f1e4e commit edf45c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

example/src/main/java/eu/webeid/example/security/ui/WebEidLoginPageGeneratingFilter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import org.springframework.security.web.util.matcher.RequestMatcher;
3535
import org.springframework.web.filter.OncePerRequestFilter;
3636
import org.thymeleaf.ITemplateEngine;
37+
import org.thymeleaf.context.Context;
3738

3839
import java.io.IOException;
3940
import java.nio.charset.StandardCharsets;
@@ -74,7 +75,7 @@ protected void doFilterInternal(@NonNull HttpServletRequest request, @NonNull Ht
7475
}
7576

7677
private String renderTemplate(CsrfToken csrf) {
77-
var ctx = new org.thymeleaf.context.Context();
78+
var ctx = new Context();
7879
ctx.setVariable("loginProcessingPath", loginProcessingPath);
7980
ctx.setVariable("csrfHeaderName", csrf != null ? csrf.getHeaderName() : "X-CSRF-TOKEN");
8081
ctx.setVariable("csrfToken", csrf != null ? csrf.getToken() : "");

0 commit comments

Comments
 (0)