protected JwtClaims buildJwtClaims(final SingleLogoutRequestContext request) {
        val configurationContext = configurationProvider.getObject();
        val claims = new JwtClaims();
        claims.setIssuer(configurationContext.getIssuerService().determineIssuer(Optional.empty()));
        claims.setSubject(request.getExecutionRequest().getTicketGrantingTicket().getAuthentication().getPrincipal().getId());
        claims.setAudience(((OAuthRegisteredService) request.getRegisteredService()).getClientId());
        claims.setIssuedAtToNow();
        claims.setJwtId(UUID.randomUUID().toString());
        claims.setExpirationTimeMinutesInTheFuture(1);
        val events = new HashMap<String, Object>();
        events.put("http://schemas.openid.net/event/backchannel-logout", new HashMap<>());
        claims.setClaim("events", events);
        claims.setClaim(OidcConstants.CLAIM_SESSION_ID,
                DigestUtils.sha(DigestUtils.sha512(request.getExecutionRequest().getTicketGrantingTicket().getId())));
        return claims;
    }
Build jwt claims.

@param request the request
@return the jwt claims
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/slo/OidcSingleLogoutMessageCreator.java