Skip to content

Commit

Permalink
Stop saving boolean value if null.
Browse files Browse the repository at this point in the history
  • Loading branch information
mpmadhavig committed Jul 1, 2024
1 parent e0fc1dd commit 8e0ef0f
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1642,9 +1642,11 @@ private void addServiceProviderOIDCProperties(Connection connection,
addToBatchForOIDCPropertyAdd(processedClientId, spTenantId, prepStmtAddOIDCProperty,
TOKEN_AUTH_METHOD, consumerAppDO.getTokenEndpointAuthMethod());

addToBatchForOIDCPropertyAdd(processedClientId, spTenantId, prepStmtAddOIDCProperty,
TOKEN_EP_ALLOW_REUSE_PVT_KEY_JWT,
String.valueOf(consumerAppDO.isTokenEndpointAllowReusePvtKeyJwt()));
if (consumerAppDO.isTokenEndpointAllowReusePvtKeyJwt() != null) {
addToBatchForOIDCPropertyAdd(processedClientId, spTenantId, prepStmtAddOIDCProperty,
TOKEN_EP_ALLOW_REUSE_PVT_KEY_JWT,
String.valueOf(consumerAppDO.isTokenEndpointAllowReusePvtKeyJwt()));
}

addToBatchForOIDCPropertyAdd(processedClientId, spTenantId, prepStmtAddOIDCProperty,
TOKEN_AUTH_SIGNATURE_ALGORITHM, consumerAppDO.getTokenEndpointAuthSignatureAlgorithm());
Expand Down

0 comments on commit 8e0ef0f

Please sign in to comment.