Reinclude accidentally removed check if implicit token is null

This commit is contained in:
David Bateman authored and adam committed 2026-04-13 15:48:45 +01:00
1 parent 95f9d525ae
commit 5af9d38a7c
1 file changed
+7 -5
@@ -152,11 +152,13 @@ public class AuthenticationProviderService implements SSOAuthenticationProviderS
if (confService.getFlowType().equals("implicit")) { if (confService.getFlowType().equals("implicit")) {
String token = credentials.getParameter(IMPLICIT_TOKEN_PARAMETER_NAME); String token = credentials.getParameter(IMPLICIT_TOKEN_PARAMETER_NAME);
JwtClaims claims = tokenService.validateToken(token); if (token != null) {
if (claims != null) { JwtClaims claims = tokenService.validateToken(token);
username = tokenService.processUsername(claims); if (claims != null) {
groups = tokenService.processGroups(claims); username = tokenService.processUsername(claims);
tokens = tokenService.processAttributes(claims); groups = tokenService.processGroups(claims);
tokens = tokenService.processAttributes(claims);
}
} }
} else { } else {
String verifier = null; String verifier = null;