KEYCLOAK-14105 Update mod-auth-mellon tests to work with TLS

This commit is contained in:
mhajas 2020-06-09 14:12:11 +02:00 committed by Hynek Mlnařík
parent df7d85b38d
commit 5c2385d081
5 changed files with 14 additions and 14 deletions

View file

@ -18,7 +18,7 @@ public class ModAuthMellonProtectedResource extends AbstractPageWithInjectedUrl
@Override
public URL getInjectedUrl() {
try {
return new URL(System.getProperty("apache.mod_auth_mellon.url", "http://localhost:8380") + "/auth");
return new URL(System.getProperty("apache.mod_auth_mellon.url", "https://app-saml-127-0-0-1.nip.io:8743") + "/auth");
} catch (MalformedURLException e) {
e.printStackTrace();
}

View file

@ -18,7 +18,7 @@ public class ModAuthMellonProtectedResource2 extends AbstractPageWithInjectedUrl
@Override
public URL getInjectedUrl() {
try {
return new URL(System.getProperty("apache.mod_auth_mellon2.url", "http://localhost:8480") + "/auth2");
return new URL(System.getProperty("apache.mod_auth_mellon2.url", "https://app-saml-127-0-0-1.nip.io:8843") + "/auth2");
} catch (MalformedURLException e) {
e.printStackTrace();
}

View file

@ -13,7 +13,7 @@ public class ModAuthMellonUnprotectedResource extends AbstractPageWithInjectedUr
@Override
public URL getInjectedUrl() {
try {
return new URL(System.getProperty("apache.mod_auth_mellon.url", "http://localhost:8380/"));
return new URL(System.getProperty("apache.mod_auth_mellon.url", "https://app-saml-127-0-0-1.nip.io:8743/"));
} catch (MalformedURLException e) {
e.printStackTrace();
}

View file

@ -13,7 +13,7 @@ public class ModAuthMellonUnprotectedResource2 extends AbstractPageWithInjectedU
@Override
public URL getInjectedUrl() {
try {
return new URL(System.getProperty("apache.mod_auth_mellon2.url", "http://localhost:8480/"));
return new URL(System.getProperty("apache.mod_auth_mellon2.url", "https://app-saml-127-0-0-1.nip.io:8843/"));
} catch (MalformedURLException e) {
e.printStackTrace();
}

View file

@ -325,13 +325,13 @@
}, {
"id" : "cb6eb8e4-73bf-4ccc-b817-c4f8547ae5eb",
"clientId" : "http://localhost:8380/auth",
"adminUrl" : "http://localhost:8380/mellon",
"adminUrl" : "https://app-saml-127-0-0-1.nip.io:8743/mellon",
"surrogateAuthRequired" : false,
"enabled" : true,
"clientAuthenticatorType" : "client-secret",
"secret" : "0f0aff29-3677-4b88-920f-90cce19230aa",
"redirectUris" : [ "http://localhost:8380/mellon/postResponse" ],
"webOrigins" : [ "http://localhost:8380" ],
"redirectUris" : [ "https://app-saml-127-0-0-1.nip.io:8743/mellon/postResponse" ],
"webOrigins" : [ "https://app-saml-127-0-0-1.nip.io:8743" ],
"notBefore" : 0,
"bearerOnly" : false,
"consentRequired" : false,
@ -348,10 +348,10 @@
"saml.multivalued.roles" : "false",
"saml_single_logout_service_url_post" : "",
"saml.encrypt" : "true",
"saml_assertion_consumer_url_post" : "http://localhost:8380/mellon/postResponse",
"saml_assertion_consumer_url_post" : "https://app-saml-127-0-0-1.nip.io:8743/mellon/postResponse",
"saml.server.signature" : "true",
"saml.signing.certificate" : "MIICrjCCAZYCCQDmdnUguf+VxTANBgkqhkiG9w0BAQsFADAZMRcwFQYDVQQDDA5sb2NhbGhvc3Q6ODM4MDAeFw0xNjAxMTkxMTUwMDdaFw0yNjAxMTgxMTUwMDdaMBkxFzAVBgNVBAMMDmxvY2FsaG9zdDo4MzgwMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuissRqhpCBR9nMuoRp+Varx151DKbmdL6NhNxWUOdaYF+fSpNmtG0NsaYV0Coz0Jak/6ap7EfhUeG83vh0G2xj6YTVYtXDVMnUPGmzHprvmFvTOfP4KIVM+1aHcPLfk8ED4ea6TOPDGBjmQw8Y9nZaMATDqEnO8IGaF/Jkl476O3Ek1Nd5yOSday83Or1GkD+ZsZxvyc0CpGJYYaGPrsUFAXekebSlon5SIDerQB7WgABSoGOKDoI8Z+JU/KftwewrE0hr9GZ8HAYBJVt0XfuNSWL7ulmF2HC3RZ877FYk3Vg3KVQs7dyJfK3+V3pGyzOBp/xU61nVZrb0fvua1hWQIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQCPR4RhXan28Eq/A6pGfJ29USKLqqDZChYy9q71Zi8hTs4+YYD6wMU8kz+MnTHC/Gf+6XFix7W07XxpFirZ5dkENn7lQUBklBmbxRdB9aW9WfJjx148a/I4+pXZalEIfqpnmWBYt4+/L9exu8tIwj/bshBmuO8Nn4ronTBDgrTCu5feyYO5l12hEdT2d+5rwc/Be66ftl8eOhsr9XJNidjoTVGB3SlHC6v0J7izgS+wT0UxIi3a3gwzW5ZsF4y88iEicAVGmkjgmyJ5GoInQhVhLU2vlxgoULAEWKhF79JYChkGSg8dXAvqBfLm3OCghxj9HldPc8mCn3gMt8F+POZL",
"saml_single_logout_service_url_redirect" : "http://localhost:8380/mellon/logout",
"saml_single_logout_service_url_redirect" : "https://app-saml-127-0-0-1.nip.io:8743/mellon/logout",
"saml.signature.algorithm" : "RSA_SHA1",
"saml_force_name_id_format" : "false",
"saml.client.signature" : "true",
@ -566,13 +566,13 @@
}, {
"id" : "cda86e1f-00bd-4727-b4b3-b35357161964",
"clientId" : "http://localhost:8480/auth2",
"adminUrl" : "http://localhost:8480/mellon",
"adminUrl" : "https://app-saml-127-0-0-1.nip.io:8843/mellon",
"surrogateAuthRequired" : false,
"enabled" : true,
"clientAuthenticatorType" : "client-secret",
"secret" : "e75b6e1b-030f-4630-8e6f-631f4891c79a",
"redirectUris" : [ "http://localhost:8480/mellon/postResponse" ],
"webOrigins" : [ "http://localhost:8480" ],
"redirectUris" : [ "https://app-saml-127-0-0-1.nip.io:8843/mellon/postResponse" ],
"webOrigins" : [ "https://app-saml-127-0-0-1.nip.io:8843" ],
"notBefore" : 0,
"bearerOnly" : false,
"consentRequired" : false,
@ -589,10 +589,10 @@
"saml.multivalued.roles" : "false",
"saml_single_logout_service_url_post" : "",
"saml.encrypt" : "false",
"saml_assertion_consumer_url_post" : "http://localhost:8480/mellon/postResponse",
"saml_assertion_consumer_url_post" : "https://app-saml-127-0-0-1.nip.io:8843/mellon/postResponse",
"saml.server.signature" : "true",
"saml.signing.certificate" : "MIICrjCCAZYCCQCrriL//w2/KDANBgkqhkiG9w0BAQsFADAZMRcwFQYDVQQDDA5sb2NhbGhvc3Q6ODQ4MDAeFw0xNjAyMTcxMDQzMjhaFw0yNjAyMTYxMDQzMjhaMBkxFzAVBgNVBAMMDmxvY2FsaG9zdDo4NDgwMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAw0VE8Q0jNc2bl0OSZWvKQQIIowBie3rGgRfBB0TzO5sjBbJSQYPhHBWb61gB4Cx1TvCQdefgVvhB1Heq9VFdRKRtZLl2I9RaOYPpLpBXLl10yHLGUKMzKVT1bpKNY4hCDN46nrxiYcbi+ZLsiezAITLEsPls2KWq5IFb0Nh/8aLRv3glk1aLaUtSSM1c/qGk7al9rfjG6HuUutaOYtpy4dTTsMkKUmHwBTeMkSYzLnmNVgyRFN8QWPf02B1TtL5cEfrm7frWsSKxUmVcmz5pz3akjd5HD3tNJC1RGCoWQG61g7hW25y1MRHcYXlJajSFp9KmGbkB30OpTJgky7NpGQIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQApi0LyRNInVXfKqdAo1dMRzVso5CPSVuNUd/YwdRS5aYtGUx44SA2kGnuzo9XPc0OSJzuMMPRuwkL91Du8283rQT1wERvJrt1Zbs90RAwNNvpTZ4uzgZp/Kxlr8tQ8LuUsUcbBgNuI9LV51po0yZlxXGu/pfs7HNRVV2zfItkAO7OKj00f+Mn0+JLhJ9PJoYvfPFQnAU3oFkYlc7FIYUeFKbFFG9KCkwb39vkuIHjcCEVFBCkdERefTBBptmXdemOI+tY7m1pzpkVzNDGX0OtEoGDokZHKL9xJUPU5Ao15OhVY0bp84uf1wjVvDVrg/8HfSSKirVjrlumRGariq8aw",
"saml_single_logout_service_url_redirect" : "http://localhost:8480/mellon/logout",
"saml_single_logout_service_url_redirect" : "https://app-saml-127-0-0-1.nip.io:8843/mellon/logout",
"saml.signature.algorithm" : "RSA_SHA1",
"saml_force_name_id_format" : "false",
"saml.client.signature" : "false",