@Override
    protected Event doExecuteInternal(final RequestContext requestContext) throws Exception {
        val id = UUID.randomUUID().toString();
        LOGGER.debug("Generating QR code with channel id [{}]", id);
        val qrCodeBase64 = QRUtils.generateQRCode(id, QRUtils.SIZE, QRUtils.SIZE);
        val flowScope = requestContext.getFlowScope();
        flowScope.put("qrCode", qrCodeBase64);
        flowScope.put("qrChannel", id);
        flowScope.put("qrPrefix", QRAuthenticationConstants.QR_SIMPLE_BROKER_DESTINATION_PREFIX);
        return null;
    }
This is {@link QRAuthenticationGenerateCodeAction}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-qr-authentication/src/main/java/org/apereo/cas/qr/web/flow/QRAuthenticationGenerateCodeAction.java