<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    That's not a bug -- you're actually supposed to edit or overlay this
    file:<br>
    <br>
    openid-connect-server/src/main/webapp/WEB-INF/server-config.xml <br>
    <br>
    If you see in there, there's a property called "issuer". This needs
    to be set to the root URL for your server. This is important for not
    only the resources that get served, but also the tokens and other
    things that are generated by the server. So you'll want to change
    the header.tag file back to what it was originally, and change the
    issuer value instead -- your browser won't always get the base right
    in all circumstances. Our documentation mentions this:<br>
    <br>
<a class="moz-txt-link-freetext" href="https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/wiki/Server-configuration">https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/wiki/Server-configuration</a><br>
    <br>
    But if that could be written better, please suggest how we can fix
    this. Thanks!<br>
    <br>
    &nbsp;-- Justin<br>
    <br>
    <div class="moz-cite-prefix">On 07/29/2013 08:58 AM, Claes
      Gyllensv&auml;rd wrote:<br>
    </div>
    <blockquote
cite="mid:CAMkGO6L+beMuGrJiT4JDQp+shu3GXD1c4TJ0r8NvE547GdLs2A@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <div dir="ltr">
        <div>
          <div>For what it's worth, wrapping<br>
            <br>
            &lt;base href="${config.issuer}"&gt;<br>
            <br>
            in<br>
            <br>
openid-connect-server/src/main/webapp/WEB-INF/tags/header.tag<br>
            <br>
          </div>
          with an HTML comment,<br>
          <br>
          &lt;!-- &lt;base href="${config.issuer}"&gt; --&gt;<br>
          <br>
        </div>
        solves the issue for me, as the browser gets the base right even
        without the explicit reference.<br>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">
          2013/7/29 Claes Gyllensv&auml;rd <span dir="ltr">&lt;<a
              moz-do-not-send="true" href="mailto:letharion@gmail.com"
              target="_blank">letharion@gmail.com</a>&gt;</span><br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">
              <div>
                <div>
                  <div>
                    <div>
                      <div>
                        <div>I've setup a server instance, with simply<br>
                          <br>
                        </div>
                        mvn package<br>
                        cp server.war /path/to/tomcat<br>
                        <br>
                      </div>
                      The instance itself seem to come up just fine, and
                      when I try to access it, I get something that
                      vaguely resembles the page at <a
                        moz-do-not-send="true"
                        href="https://id.mitre.org/connect/"
                        target="_blank">https://id.mitre.org/connect/</a><br>
                      <br>
                    </div>
                    However, all resources the page wants, such as
                    bootstrap, are being loaded from "localhost:8080",
                    instead of from "internal-ip:8080", where the
                    initial request fetches the HTML page.<br>
                    <br>
                  </div>
                  So what's happening is that browser then tried to
                  fetch these resources from the client machine, instead
                  of the server, which doesn't work to well.<br>
                  <br>
                </div>
                The cause seems to be this head tag:<br>
                <br>
                &lt;base href="<a moz-do-not-send="true"
                  href="http://localhost:8080/openid-connect-server/"
                  target="_blank">http://localhost:8080/openid-connect-server/</a>"&gt;<br>
                <br>
              </div>
              Any suggestions for how I can get the base href corrected?<br>
              <br>
              Kind regards, Claes<br>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
mitreid-connect mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mitreid-connect@mit.edu">mitreid-connect@mit.edu</a>
<a class="moz-txt-link-freetext" href="http://mailman.mit.edu/mailman/listinfo/mitreid-connect">http://mailman.mit.edu/mailman/listinfo/mitreid-connect</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>