<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Thanks for the feedback, I've added an issue for us to update the
build instructions.<br>
<br>
If I recall, the base href is needed for things like that Javascript
application, to make sure that things get pulled from the right API
endpoints for instance. The relative URLs weren't working without
the "base" tag, and the rest of the system needed the "issuer" URL
anyway so we just used that.<br>
<br>
-- Justin<br>
<br>
<div class="moz-cite-prefix">On 07/29/2013 10:01 AM, Claes
Gyllensvärd wrote:<br>
</div>
<blockquote
cite="mid:CAMkGO6+cA6iC8u598hy5_QpwfWeVnQTR-ZwUYW6+TLBcLmaz0Q@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>
<div>
<div>
<div>I see, thank you for explaining that. :)<br>
<br>
</div>
The build instructions were so incredibly simple (which is
of course great) that I assumed no more configuration was
necessary.<br>
<br>
</div>
Since it seems like this step is not optional, it might be
useful to link to the server configuration from the bottom
of <a moz-do-not-send="true"
href="https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/wiki/Build-instructions"
target="_blank">https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/wiki/Build-instructions</a><br>
</div>
to make it harder to miss. :)<br>
<br>
</div>
Perhaps it would also be useful to explain when the base href is
necessary? I've never come across the tag before, so at least to
me, it's not obvious in which situations it's necessary. :)<br>
<br>
Kind regards, Claes<br>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">2013/7/29 Justin Richer <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:jricher@mitre.org" target="_blank">jricher@mitre.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div 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 moz-do-not-send="true"
href="https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/wiki/Server-configuration"
target="_blank">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>
-- Justin
<div>
<div><br>
<br>
<div>On 07/29/2013 08:58 AM, Claes Gyllensvärd
wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div>
<div dir="ltr">
<div>
<div>For what it's worth, wrapping<br>
<br>
<base href="${config.issuer}"><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>
<!-- <base href="${config.issuer}">
--><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ärd <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:letharion@gmail.com"
target="_blank">letharion@gmail.com</a>></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>
<base href="<a moz-do-not-send="true"
href="http://localhost:8080/openid-connect-server/" target="_blank">http://localhost:8080/openid-connect-server/</a>"><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></fieldset>
<br>
</div>
</div>
<pre>_______________________________________________
mitreid-connect mailing list
<a moz-do-not-send="true" href="mailto:mitreid-connect@mit.edu" target="_blank">mitreid-connect@mit.edu</a>
<a moz-do-not-send="true" href="http://mailman.mit.edu/mailman/listinfo/mitreid-connect" target="_blank">http://mailman.mit.edu/mailman/listinfo/mitreid-connect</a>
</pre>
</blockquote>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
<br>
</body>
</html>