Skip to content

Commit

Permalink
KEYCLOAK-14577 OIDCIdentityProvider incorrectly sets firstName and la…
Browse files Browse the repository at this point in the history
…stName in BrokeredIdentityContext
  • Loading branch information
gitdode authored and mposolda committed Feb 18, 2021
1 parent 00ee6bb commit 750f5fd
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ public void addIdpUser() {
createUserAndResetPasswordWithAdminClient(realm, user, "password");
user = new UserRepresentation();
user.setUsername(PARENT3_USERNAME);
user.setFirstName("firstname");
user.setLastName("lastname");
user.setFirstName("first name");
user.setLastName("last name");
user.setEmail("email");
user.setEnabled(true);
createUserAndResetPasswordWithAdminClient(realm, user, "password");
Expand Down Expand Up @@ -746,8 +746,8 @@ public void testExternalExchange_extractIdentityFromProfile() throws Exception {
Assert.assertNotNull(token);
Assert.assertNotNull(token.getSubject());
Assert.assertEquals(PARENT3_USERNAME, token.getPreferredUsername());
Assert.assertEquals("firstname", token.getGivenName());
Assert.assertEquals("lastname", token.getFamilyName());
Assert.assertEquals("first name", token.getGivenName());
Assert.assertEquals("last name", token.getFamilyName());
Assert.assertEquals("email", token.getEmail());

// cleanup remove the user
Expand Down

0 comments on commit 750f5fd

Please sign in to comment.