From 0c8f9559d8d464fcc54a5d48330c8341eb322dfb Mon Sep 17 00:00:00 2001 From: Timothy Stone <126263882+timothystone-knsl@users.noreply.github.com> Date: Sun, 4 Feb 2024 13:56:42 -0500 Subject: [PATCH] chore: correct misspelling in lambda expression (#25080) Observed a misspelling in the JwtAuthenticationTestUtils.java.ejs template using the JwtClaimsSet.builder setting claims via a Lambda expression. s/customClain/customClaim Fixes #25079 --- .../_package_/security/jwt/JwtAuthenticationTestUtils.java.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generators/server/templates/src/test/java/_package_/security/jwt/JwtAuthenticationTestUtils.java.ejs b/generators/server/templates/src/test/java/_package_/security/jwt/JwtAuthenticationTestUtils.java.ejs index 045619d5ceb9..c146720ff81d 100644 --- a/generators/server/templates/src/test/java/_package_/security/jwt/JwtAuthenticationTestUtils.java.ejs +++ b/generators/server/templates/src/test/java/_package_/security/jwt/JwtAuthenticationTestUtils.java.ejs @@ -77,7 +77,7 @@ public class JwtAuthenticationTestUtils { .issuedAt(now) .expiresAt(now.plusSeconds(60)) .subject(user) - .claims(customClain -> customClain.put(AUTHORITIES_KEY, Collections.singletonList("ROLE_ADMIN"))) + .claims(customClaim -> customClaim.put(AUTHORITIES_KEY, Collections.singletonList("ROLE_ADMIN"))) .build(); JwsHeader jwsHeader = JwsHeader.with(JWT_ALGORITHM).build();