private boolean includeClaimsInIdTokenForcefully(final IdTokenGenerationContext context) {
        val oidcService = (OidcRegisteredService) context.getRegisteredService();
        val properties = getConfigurationContext().getCasProperties().getAuthn().getOidc();
        return properties.getIdToken().isIncludeIdTokenClaims() || oidcService.isIncludeIdTokenClaims();
    }
This is {@link OidcIdTokenGeneratorService}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/token/OidcIdTokenGeneratorService.java