Merge pull request #167 from stianst/master

Minor updates
This commit is contained in:
stianst 2014-01-20 11:31:36 -08:00
commit 66090e5cca
2 changed files with 2 additions and 10 deletions

View file

@ -332,7 +332,7 @@ $ keytool -import -alias yourdomain -keystore keycloak.jks -file your-certificat
</programlisting> </programlisting>
</para> </para>
<para> <para>
Check the <ulink url="https://docs.jboss.org/author/display/WFLY8/SSL+setup+guide">Wildfly</ulink> documentation for more information on fine tuning the socket connections. Check the <ulink url="https://docs.jboss.org/author/display/WFLY8/Undertow+(web)+subsystem+configuration">Wildfly Undertow</ulink> documentation for more information on fine tuning the socket connections.
</para> </para>
</section> </section>
<section> <section>

View file

@ -637,15 +637,7 @@ public class TokenService {
return true; return true;
} }
if (uriInfo.getBaseUri().getScheme().equals("https")) { return uriInfo.getBaseUri().getScheme().equals("https");
return true;
}
if ("https".equals(headers.getHeaderString("X-Forwarded-Proto"))) {
return true;
}
return false;
} }
} }