Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-3572

Use JavaScript for certificate installation redirect in public web

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Cosmetic
    • Resolution: Fixed
    • Affects Version/s: EJBCA 6.1.3
    • Fix Version/s: EJBCA 6.2.0
    • Component/s: Public Web UI
    • Labels:
    • Issue discovered during:
      Integration

      Description

      The current behavior:

      • You get a nice summary page
      • The certificate is installed automatically if your browser allows automatic meta redirects, otherwise you get a warning
      • Fallback: Click the link that triggers the installation.

      The wanted behavior:

      • You get a nice summary page
      • If JavaScript is available: The certificate is installed automatically using a JS redirect.
      • If JavaScript is disabled: The certificate is installed automatically if your browser allows automatic meta redirects
      • Fallback: Click the link that triggers the installation.

      This seems to be possible in at least Firefox by using the following in the :

      <head>
      ...
      <noscript><meta http-equiv='refresh' content='0;URL=..../></noscript>
      <script>//<![CDATA[\n
      setTimeout(function()

      {window.location = '....';}

      ,500);//]]>\n
      </script>
      ...
      </head>

        Attachments

          Activity

            People

            Assignee:
            samuel Samuel Lidén Borell
            Reporter:
            johan Johan Eklund
            Verified by:
            Mike Agrenius Kushner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: