diff --git a/open-banking-accelerator/components/consent-management/com.wso2.openbanking.accelerator.consent.extensions/src/main/java/com/wso2/openbanking/accelerator/consent/extensions/ciba/authenticator/weblink/CIBAWebLinkAuthenticatorConstants.java b/open-banking-accelerator/components/consent-management/com.wso2.openbanking.accelerator.consent.extensions/src/main/java/com/wso2/openbanking/accelerator/consent/extensions/ciba/authenticator/weblink/CIBAWebLinkAuthenticatorConstants.java index 00f9cbe6..f81ab208 100644 --- a/open-banking-accelerator/components/consent-management/com.wso2.openbanking.accelerator.consent.extensions/src/main/java/com/wso2/openbanking/accelerator/consent/extensions/ciba/authenticator/weblink/CIBAWebLinkAuthenticatorConstants.java +++ b/open-banking-accelerator/components/consent-management/com.wso2.openbanking.accelerator.consent.extensions/src/main/java/com/wso2/openbanking/accelerator/consent/extensions/ciba/authenticator/weblink/CIBAWebLinkAuthenticatorConstants.java @@ -33,5 +33,6 @@ public class CIBAWebLinkAuthenticatorConstants { public static final String USER_INFO = "userinfo"; public static final String CLAIMS = "claims"; public static final String AUTHORIZE_URL_PATH = "/oauth2/authorize?"; + public static final String LOGIN_HINT = "login_hint"; } diff --git a/open-banking-accelerator/components/consent-management/com.wso2.openbanking.accelerator.consent.extensions/src/main/java/com/wso2/openbanking/accelerator/consent/extensions/ciba/authenticator/weblink/CIBAWebLinkAuthenticatorExtensionImpl.java b/open-banking-accelerator/components/consent-management/com.wso2.openbanking.accelerator.consent.extensions/src/main/java/com/wso2/openbanking/accelerator/consent/extensions/ciba/authenticator/weblink/CIBAWebLinkAuthenticatorExtensionImpl.java index f75915ab..daa5179e 100644 --- a/open-banking-accelerator/components/consent-management/com.wso2.openbanking.accelerator.consent.extensions/src/main/java/com/wso2/openbanking/accelerator/consent/extensions/ciba/authenticator/weblink/CIBAWebLinkAuthenticatorExtensionImpl.java +++ b/open-banking-accelerator/components/consent-management/com.wso2.openbanking.accelerator.consent.extensions/src/main/java/com/wso2/openbanking/accelerator/consent/extensions/ciba/authenticator/weblink/CIBAWebLinkAuthenticatorExtensionImpl.java @@ -39,7 +39,6 @@ public class CIBAWebLinkAuthenticatorExtensionImpl implements CIBAWebLinkAuthent private static final Log log = LogFactory.getLog(CIBAWebLinkAuthenticatorExtensionImpl.class); private static final ConsentCoreService consentCoreService = ConsentExtensionsDataHolder.getInstance().getConsentCoreService(); - public static final String LOGIN_HINT = "login_hint"; /** * Method to identify the user/users involved in the authentication. @@ -50,7 +49,7 @@ public class CIBAWebLinkAuthenticatorExtensionImpl implements CIBAWebLinkAuthent @Override public List getAuthenticatedUsers(HttpServletRequest request) { - return Arrays.stream(request.getParameter(LOGIN_HINT) + return Arrays.stream(request.getParameter(CIBAWebLinkAuthenticatorConstants.LOGIN_HINT) .split(",")) .map(String::trim) .map(AuthenticatedUser::createLocalAuthenticatedUserFromSubjectIdentifier)