KEYCLOAK-9893 Use SSL in EAP6, add / to url for EAP6 deployment
This commit is contained in:
parent
b44c86bd26
commit
c6bd293d25
3 changed files with 9 additions and 5 deletions
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue