Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-74747

[miniorange-saml-sp] Extract inline script blocks in MoSAMLManager

XMLWordPrintable

      Problems

      == Inline Script Block (Java)
      File: org/miniorange/saml/MoSAMLManager.java
      Line: 309
      ----
      <script>" + "document.querySelector(\"#copy-button\").onclick = function() {"
                      + "document.querySelector(\"#errormsg\").select();" + "document.execCommand('copy');" + "};"
                      + "</script>
      ----
      
      == Inline Script Block (Java)
      File: ./src/main/java/org/miniorange/saml/MoSAMLManager.java +
      Line: 391
      ----
      <script>\n" +
                      "        initiate();\n" +
                      "        function initiate() {\n" +
                      "            var form = document.getElementById('saml-request-form');\n" +
                      "            if(form){\n" +
                      "                form.submit();\n" +
                      "            }else{\n" +
                      "                setTimeout(initiate,50)\n" +
                      "            }\n" +
                      "        }\n" +
                      "    </script>
      ----
      

      Solution

      https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks

            Unassigned Unassigned
            basil Basil Crow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: