This repository was archived by the owner on Dec 12, 2018. It is now read-only.
This repository was archived by the owner on Dec 12, 2018. It is now read-only.
Include what parameter was missing when throwing in DefaultIdSiteCallbackHandler.getRequiredValue #635
Open
Description
This is the current code:
private <T> T getRequiredValue(Map jsonMap, String parameterName) {
Object object = jsonMap.get(parameterName);
if (object == null) {
throw new InvalidJwtException(InvalidJwtException.JWT_RESPONSE_MISSING_PARAMETER_ERROR);
}
return (T) object;
}
Add parameterName
into the message passed into the InvalidJwtException
constructor.