From a21e95c5aedf755693b97cdc2425dc56b249395f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9da=20Housni=20Alaoui?= Date: Wed, 3 Jan 2024 15:13:06 +0100 Subject: [PATCH] In UserProfileContext.IDP_REVIEW, NPE on UserModel#getEmail because UserModelDelegate#delegate is null MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: RĂ©da Housni Alaoui --- .../broker/IdpReviewProfileAuthenticator.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/services/src/main/java/org/keycloak/authentication/authenticators/broker/IdpReviewProfileAuthenticator.java b/services/src/main/java/org/keycloak/authentication/authenticators/broker/IdpReviewProfileAuthenticator.java index b3408e5070..510f3b02d0 100755 --- a/services/src/main/java/org/keycloak/authentication/authenticators/broker/IdpReviewProfileAuthenticator.java +++ b/services/src/main/java/org/keycloak/authentication/authenticators/broker/IdpReviewProfileAuthenticator.java @@ -144,16 +144,31 @@ public class IdpReviewProfileAuthenticator extends AbstractIdpAuthenticator { return userCtx.getFirstAttribute(name); } + @Override + public String getFirstName() { + return userCtx.getFirstName(); + } + @Override public void setFirstName(String firstName) { userCtx.setFirstName(firstName); } + @Override + public String getEmail() { + return userCtx.getEmail(); + } + @Override public void setEmail(String email) { userCtx.setEmail(email); } + @Override + public String getLastName() { + return userCtx.getLastName(); + } + @Override public void setLastName(String lastName) { userCtx.setLastName(lastName);