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

[wwpass-plugin] Extract inline script block and event handler in com/wwpass/wwpassauth/WwpassSecurityRealm/firstUser.jelly

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Minor Minor
    • wwpass-plugin

      Problems

      == Inline Script Block
      Line: 77
      ----
      <script type="text/javascript">
              options = {
              'render': 'qrcode',
              'ticketURL' : '${app.rootURL}/federatedLoginService/wwpass/getTicket',
              callback : function(status, message) {
              auth_cb(status, message);
              }
              };
      
              wwpassQRCodeAuth(options);
          </script>
      ----
      
      == Inline Event Handler
      Line: 44
      ----
      <button type='button' id="btn-login" class="button-login" onclick="token_auth('${it.name}')">
      ----
      

      Solutions

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

          [JENKINS-74712] [wwpass-plugin] Extract inline script block and event handler in com/wwpass/wwpassauth/WwpassSecurityRealm/firstUser.jelly

          Basil Crow created issue -
          Basil Crow made changes -
          Description Original: h4. Problems

          {noformat}
          == Inline Event Handler
          Line: 44
          ----
          <button type='button' id="btn-login" class="button-login" onclick="token_auth('${it.name}')">
          ----

          == Inline Script Block
          Line: 77
          ----
          <script type="text/javascript">
                  options = {
                  'render': 'qrcode',
                  'ticketURL' : '${app.rootURL}/federatedLoginService/wwpass/getTicket',
                  callback : function(status, message) {
                  auth_cb(status, message);
                  }
                  };

                  wwpassQRCodeAuth(options);
              </script>
          ----

          == Inline Event Handler
          Line: 44
          ----
          <button type='button' id="btn-login" class="button-login" onclick="token_auth('${it.name}')">
          ----

          == Inline Script Block
          Line: 77
          ----
          <script type="text/javascript">
                  options = {
                  'render': 'qrcode',
                  'ticketURL' : '${app.rootURL}/federatedLoginService/wwpass/getTicket',
                  callback : function(status, message) {
                  auth_cb(status, message);
                  }
                  };

                  wwpassQRCodeAuth(options);
              </script>
          ----
          {noformat}

          h4. Solutions

          [https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks]
          [https://www.jenkins.io/doc/developer/security/csp/#inline-event-handlers]
          New: h4. Problems

          {noformat}
          == Inline Script Block
          Line: 77
          ----
          <script type="text/javascript">
                  options = {
                  'render': 'qrcode',
                  'ticketURL' : '${app.rootURL}/federatedLoginService/wwpass/getTicket',
                  callback : function(status, message) {
                  auth_cb(status, message);
                  }
                  };

                  wwpassQRCodeAuth(options);
              </script>
          ----

          == Inline Event Handler
          Line: 44
          ----
          <button type='button' id="btn-login" class="button-login" onclick="token_auth('${it.name}')">
          ----
          {noformat}

          h4. Solutions

          [https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks]
          [https://www.jenkins.io/doc/developer/security/csp/#inline-event-handlers]
          Summary Original: [wwpass-plugin] Extract inline script blocks and event handlers in com/wwpass/wwpassauth/WwpassSecurityRealm/firstUser.jelly New: [wwpass-plugin] Extract inline script block and event handler in com/wwpass/wwpassauth/WwpassSecurityRealm/firstUser.jelly

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

              Created:
              Updated: