KEYCLOAK-9893 Use SSL in EAP6, add / to url for EAP6 deployment

This commit is contained in:
mhajas 2019-03-11 11:54:07 +01:00 committed by Hynek Mlnařík
parent b44c86bd26
commit c6bd293d25
3 changed files with 9 additions and 5 deletions

View file

@ -1,7 +1,9 @@
{
"realm" : "demo",
"resource" : "hawtio-client",
"auth-server-url" : "http://localhost:8180/auth",
"auth-server-url" : "https://localhost:8543/auth",
"ssl-required" : "external",
"public-client" : true
"public-client" : true,
"truststore" : "${jboss.home.dir}/standalone/configuration/keycloak.truststore",
"truststore-password" : "secret"
}

View file

@ -2,8 +2,10 @@
"realm" : "demo",
"resource" : "jaas",
"bearer-only" : true,
"auth-server-url" : "http://localhost:8180/auth",
"auth-server-url" : "https://localhost:8543/auth",
"ssl-required" : "external",
"use-resource-role-mappings": false,
"principal-attribute": "preferred_username"
"principal-attribute": "preferred_username",
"truststore" : "${jboss.home.dir}/standalone/configuration/keycloak.truststore",
"truststore-password" : "secret"
}

View file

@ -70,7 +70,7 @@ public class URLProvider extends URLResourceProvider {
try {
for (Annotation a : qualifiers) {
if (OperateOnDeployment.class.isAssignableFrom(a.annotationType())) {
return new URL(protocol + "://localhost:" + port + "/" + ((OperateOnDeployment) a).value());
return new URL(protocol + "://localhost:" + port + "/" + ((OperateOnDeployment) a).value() + "/");
}
}
} catch (MalformedURLException ex) {