Skip to content

Commit

Permalink
Resolve PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Akila94 committed Dec 20, 2024
1 parent ef22366 commit 8304a92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";

}
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -50,7 +49,7 @@ public class CIBAWebLinkAuthenticatorExtensionImpl implements CIBAWebLinkAuthent
@Override
public List<AuthenticatedUser> 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)
Expand Down

0 comments on commit 8304a92

Please sign in to comment.