Description
TokenLoginModule#commit should throw an exception if TokenInfo is not created
if (ti != null) { TokenCredentials tc = new TokenCredentials(ti.getToken()); Map<String, String> attributes = ti.getPrivateAttributes(); for (String name : attributes.keySet()) { tc.setAttribute(name, attributes.get(name)); } attributes = ti.getPublicAttributes(); for (String name : attributes.keySet()) { tc.setAttribute(name, attributes.get(name)); } subject.getPublicCredentials().add(tc); }
the code above should contain an else statement throwing a LoginException