// Merge params from request object
finalParams.putAll(requestObjectParams);
// Parse again
AuthenticationRequest finalAuthRequest;
try {
finalAuthRequest = AuthenticationRequest.parse(request.getEndpointURI(), finalParams);
} catch (ParseException e) {
throw new ResolveException("Couldn't create final OpenID Connect authentication request: " + e.getMessage(), e);
}
return new AuthenticationRequest(
finalAuthRequest.getEndpointURI(),
finalAuthRequest.getResponseType(),
finalAuthRequest.getScope(),
finalAuthRequest.getClientID(),
finalAuthRequest.getRedirectionURI(),
finalAuthRequest.getState(),
finalAuthRequest.getNonce(),
finalAuthRequest.getDisplay(),
finalAuthRequest.getPrompt(),
finalAuthRequest.getMaxAge(),
finalAuthRequest.getUILocales(),
finalAuthRequest.getClaimsLocales(),
finalAuthRequest.getIDTokenHint(),
finalAuthRequest.getLoginHint(),
finalAuthRequest.getACRValues(),
finalAuthRequest.getClaims(),
null, // request object
null); // request URI
} catch (ResolveException e) {