Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-12698

Custom GitHub end-user UI not working with proxy

    XMLWordPrintable

    Details

    • Target Version/s:
    • Verified Version/s:
    • Story Points:
      1
    • Sprint:
      OpenIDM Sprint 7.0-5

      Description

      Can't get a custom end-user interface to work when deployed behind a proxy.

      Download and build interface source ...

       
      https://github.com/ForgeRock/end-user-ui
       
      set config/index.js

      proxyTable:target: ‘https://idp.frdpcloud.com/openidm'
      host: ‘idp.frdpcloud.com’
      port: 8280

       
      update Apache proxy:

      RewriteEngine On

      RewriteRule ^/custom$ /custom/ [R] 

      <Location /custom>   

      ProxyPass        http://idp.frdpcloud.com:8280   

      ProxyPassReverse http://idp.frdpcloud.com:8280

      </Location>

      Started UI in dev mode:

      npm run dev 

      Access interface  …  loads index.html
       

      <!DOCTYPE html>
      <html>
        <head>
          <meta charset="utf-8">
          <meta name="viewport" content="width=device-width,initial-scale=1.0">
          <meta http-equiv="X-UA-Compatible" content="IE=edge" />
          <link rel="shortcut icon" type="image/png" href="static/favicon.ico"/>
          <link rel="stylesheet" href="static/css/font-awesome.min.css">
          <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
          <script type="text/javascript">var context='/openidm'</script>
          <title>Identity Management</title>
        </head>
        <body>
          <div id="app"></div>
          <!-- built files will be auto injected -->
        <script type="text/javascript" src="/app.js"></script></body>
      </html>

       
      The auto injected <script> fails because the src value “/app.js” was not found.
       
      The src value is currently an absolute path, beginning with a “/“.  When behind a proxy this value either needs to include the proxy path (“/custom/app.js”) or be a relative path (“app.js”)
       
      Is there a configuration that supports being deployed behind a proxy.
       
       

       

        Attachments

          Activity

            People

            Assignee:
            jason.browne Jason Browne [X] (Inactive)
            Reporter:
            sfehrman Scott Fehrman [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: