Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
566 additions
and
361 deletions.
There are no files selected for viewing
10 changes: 6 additions & 4 deletions
10
testsuite/integration-arquillian/tests/other/mod_auth_mellon/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,17 +1,19 @@ | |||
# Mod_auth_mellon test | # Mod_auth_mellon test | ||
|
|
||
## Docker image | ## Docker images | ||
|
|
||
Docker image contains apache + mod_auth_mellon and two html files unprotected (/) and protected (/auth). | Each docker image contains apache + mod_auth_mellon and two html files unprotected (/) and protected (/auth). | ||
|
|
||
## Build docker image | ## Build docker images | ||
|
|
||
docker build -t apache-mellon docker/ | docker build -t apache-mellon docker/ | ||
docker build -t apache-mellon2 docker2/ | |||
|
|
||
## Run docker image | ## Run docker image | ||
|
|
||
docker run -d -p 8380:80 apache-mellon | docker run -d -p 8380:80 apache-mellon | ||
docker run -d -p 8480:80 apache-mellon2 | |||
|
|
||
## Run tests | ## Run tests | ||
|
|
||
mvn clean install [-Dapache.mod_auth_mellon.url=http://localhost:8380] | mvn clean install [-Dapache.mod_auth_mellon.url=http://localhost:8380 -Dapache.mod_auth_mellon2.url=http://localhost:8480] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
testsuite/integration-arquillian/tests/other/mod_auth_mellon/docker2/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,17 @@ | |||
FROM ubuntu | |||
|
|||
RUN apt-get update && apt-get install -y apache2 && apt-get install -y libapache2-mod-auth-mellon | |||
|
|||
RUN mkdir /etc/apache2/mellon | |||
|
|||
COPY mellon/* /etc/apache2/mellon/ | |||
|
|||
COPY auth_mellon.conf /etc/apache2/mods-enabled/ | |||
|
|||
COPY www/* /var/www/html/ | |||
|
|||
RUN mkdir /var/www/html/auth2 | |||
|
|||
COPY www/auth2/* /var/www/html/auth2/ | |||
|
|||
CMD /usr/sbin/apache2ctl -D FOREGROUND |
31 changes: 31 additions & 0 deletions
31
testsuite/integration-arquillian/tests/other/mod_auth_mellon/docker2/auth_mellon.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,31 @@ | |||
MellonCacheSize 100 | |||
MellonLockFile "/run/mod_auth_mellon/lock" | |||
|
|||
# This is a server-wide configuration that will add information from the Mellon session to all requests. | |||
<Location /> | |||
# Add information from the mod_auth_mellon session to the request. | |||
MellonEnable "info" | |||
|
|||
# Configure the SP metadata | |||
# This should be the files which were created when creating SP metadata. | |||
MellonSPPrivateKeyFile /etc/apache2/mellon/http_localhost_auth_.key | |||
|
|||
MellonSPCertFile /etc/apache2/mellon/http_localhost_auth_.cert | |||
MellonSPMetadataFile /etc/apache2/mellon/http_localhost_auth_.xml | |||
|
|||
# IdP metadata. This should be the metadata file you got from the IdP. | |||
MellonIdPMetadataFile /etc/apache2/mellon/idp-metadata.xml | |||
|
|||
# The location all endpoints should be located under. | |||
# It is the URL to this location that is used as the second parameter to the metadata generation script. | |||
# This path is relative to the root of the web server. | |||
MellonEndpointPath /mellon | |||
|
|||
MellonVariable "cookie2" | |||
</Location> | |||
|
|||
<Location /auth2> | |||
MellonEnable "auth" | |||
|
|||
MellonCond "Role" "manager" | |||
</Location> |
17 changes: 17 additions & 0 deletions
17
...tegration-arquillian/tests/other/mod_auth_mellon/docker2/mellon/http_localhost_auth_.cert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,17 @@ | |||
-----BEGIN CERTIFICATE----- | |||
MIICrjCCAZYCCQCrriL//w2/KDANBgkqhkiG9w0BAQsFADAZMRcwFQYDVQQDDA5s | |||
b2NhbGhvc3Q6ODQ4MDAeFw0xNjAyMTcxMDQzMjhaFw0yNjAyMTYxMDQzMjhaMBkx | |||
FzAVBgNVBAMMDmxvY2FsaG9zdDo4NDgwMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A | |||
MIIBCgKCAQEAw0VE8Q0jNc2bl0OSZWvKQQIIowBie3rGgRfBB0TzO5sjBbJSQYPh | |||
HBWb61gB4Cx1TvCQdefgVvhB1Heq9VFdRKRtZLl2I9RaOYPpLpBXLl10yHLGUKMz | |||
KVT1bpKNY4hCDN46nrxiYcbi+ZLsiezAITLEsPls2KWq5IFb0Nh/8aLRv3glk1aL | |||
aUtSSM1c/qGk7al9rfjG6HuUutaOYtpy4dTTsMkKUmHwBTeMkSYzLnmNVgyRFN8Q | |||
WPf02B1TtL5cEfrm7frWsSKxUmVcmz5pz3akjd5HD3tNJC1RGCoWQG61g7hW25y1 | |||
MRHcYXlJajSFp9KmGbkB30OpTJgky7NpGQIDAQABMA0GCSqGSIb3DQEBCwUAA4IB | |||
AQApi0LyRNInVXfKqdAo1dMRzVso5CPSVuNUd/YwdRS5aYtGUx44SA2kGnuzo9XP | |||
c0OSJzuMMPRuwkL91Du8283rQT1wERvJrt1Zbs90RAwNNvpTZ4uzgZp/Kxlr8tQ8 | |||
LuUsUcbBgNuI9LV51po0yZlxXGu/pfs7HNRVV2zfItkAO7OKj00f+Mn0+JLhJ9PJ | |||
oYvfPFQnAU3oFkYlc7FIYUeFKbFFG9KCkwb39vkuIHjcCEVFBCkdERefTBBptmXd | |||
emOI+tY7m1pzpkVzNDGX0OtEoGDokZHKL9xJUPU5Ao15OhVY0bp84uf1wjVvDVrg | |||
/8HfSSKirVjrlumRGariq8aw | |||
-----END CERTIFICATE----- |
28 changes: 28 additions & 0 deletions
28
...ntegration-arquillian/tests/other/mod_auth_mellon/docker2/mellon/http_localhost_auth_.key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,28 @@ | |||
-----BEGIN PRIVATE KEY----- | |||
MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQDDRUTxDSM1zZuX | |||
Q5Jla8pBAgijAGJ7esaBF8EHRPM7myMFslJBg+EcFZvrWAHgLHVO8JB15+BW+EHU | |||
d6r1UV1EpG1kuXYj1Fo5g+kukFcuXXTIcsZQozMpVPVuko1jiEIM3jqevGJhxuL5 | |||
kuyJ7MAhMsSw+WzYparkgVvQ2H/xotG/eCWTVotpS1JIzVz+oaTtqX2t+Mboe5S6 | |||
1o5i2nLh1NOwyQpSYfAFN4yRJjMueY1WDJEU3xBY9/TYHVO0vlwR+ubt+taxIrFS | |||
ZVybPmnPdqSN3kcPe00kLVEYKhZAbrWDuFbbnLUxEdxheUlqNIWn0qYZuQHfQ6lM | |||
mCTLs2kZAgMBAAECggEARTJu090L9Sz/TgMsBbTE33SRCvI/8/H2FhkM1j6g0yaO | |||
qp4eeAj75K/jqOpu/7nBeE/XYXDiFu+ypFAjzPsgSgramS7/poLB1k/gehe8TTnh | |||
AIdrr3el0afBsYVNhU/r2BOIQmgPlQaduENQfy/eheUvvmclI0DR5lfQ6ZlO/ZlO | |||
s/agiziupR9ceHYCTkQpc9GI/byvVBdXIp9PSMjNhBcYv3SUP1FnhWoV2tlAZwOm | |||
VfB6yvZtNLp952AvsKxun6lmQQDsNhiWzCGw6cHf/aFPjEttLKHv0u6mobpM/d95 | |||
AF+bifCweJZnfrYCE2sHTX8rzXoQ6laP6m0d8bYlgQKBgQDgsHUXSGCQYTvcmwQF | |||
CMhk5arQGjg7PHzFj0Mv/45b1X19MYnTRNpFx5G2Rpa4+5EKEVguUZlUXeVAxfx5 | |||
nn/R6GCSqcOqf+Fb4nRDJrYABJIVCywEeUqRdZjt3VsFBIcXykTItVC4eBDlwNIy | |||
5ELB8QL7pgRAso3LVBfRdv+SjQKBgQDee1UEkncP9JfzslhCqSUXjgCnPGMDmCsh | |||
bMLhE5PNiVYMymjitJPY50weBOeJt2e0SBGWwPdWF7yEm11bWyjEDgA0lOndiuLV | |||
hHvCHUmbRQOh968+4dzSBvUb4llxcQfncs8MPI+ZJeyXghSENY1KzqNLbQcMb49k | |||
y0uWRqLTvQKBgQCST9Wvl53p5qdIfFkdvh5gNX4JjUlYqYbGTwf9VXiqLFdPEtch | |||
EBDip5YnD8hOJOLJn4nAf7pMyefjSgmiWKf7VEqutoWHnUZuwwPaRnb1hARsV54O | |||
O71nAyDWo/IFTnF5+GjaGde6h9TZB7rZEPK3v+2lWPIj/yF+agAokkjScQKBgQCs | |||
KVAe26AazrGPOSEnZHB5i79hqk8MhwJJOTqMpXOoh2/5MeB8HjSSklnKmQz6+tvb | |||
HDHQML609mVBUGCrwx0Gqbbq+ZkHgOQLShvimHtPFda7zUjlJi6UsCGYVE3WhRsS | |||
tTsXQv30Cu7MRzLNJAuUKdcfFN1xeBrEarSxMzPpGQKBgQCGyCSxoHafI78fuLB8 | |||
lfMif3QcILxn409GxypMEc5G7iWyo+vfoMmRNjcr6zZ1luvmTqHl7mAroUpJ9X33 | |||
6Ctw4O3r/utS03AwwOaEfpmlxMQVu5ySFICqZjMHHjvbUFQE2KPlQOqcjChT4S3n | |||
2vRK05BKbdFqlCprQtFtkA3q+g== | |||
-----END PRIVATE KEY----- |
72 changes: 72 additions & 0 deletions
72
...ntegration-arquillian/tests/other/mod_auth_mellon/docker2/mellon/http_localhost_auth_.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,72 @@ | |||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |||
<EntityDescriptor | |||
entityID="http://localhost:8480/auth2" | |||
xmlns="urn:oasis:names:tc:SAML:2.0:metadata"> | |||
<SPSSODescriptor | |||
AuthnRequestsSigned="false" | |||
WantAssertionsSigned="false" | |||
protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol"> | |||
<KeyDescriptor use="signing"> | |||
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> | |||
<ds:X509Data> | |||
<ds:X509Certificate>MIICrjCCAZYCCQCrriL//w2/KDANBgkqhkiG9w0BAQsFADAZMRcwFQYDVQQDDA5s | |||
b2NhbGhvc3Q6ODQ4MDAeFw0xNjAyMTcxMDQzMjhaFw0yNjAyMTYxMDQzMjhaMBkx | |||
FzAVBgNVBAMMDmxvY2FsaG9zdDo4NDgwMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A | |||
MIIBCgKCAQEAw0VE8Q0jNc2bl0OSZWvKQQIIowBie3rGgRfBB0TzO5sjBbJSQYPh | |||
HBWb61gB4Cx1TvCQdefgVvhB1Heq9VFdRKRtZLl2I9RaOYPpLpBXLl10yHLGUKMz | |||
KVT1bpKNY4hCDN46nrxiYcbi+ZLsiezAITLEsPls2KWq5IFb0Nh/8aLRv3glk1aL | |||
aUtSSM1c/qGk7al9rfjG6HuUutaOYtpy4dTTsMkKUmHwBTeMkSYzLnmNVgyRFN8Q | |||
WPf02B1TtL5cEfrm7frWsSKxUmVcmz5pz3akjd5HD3tNJC1RGCoWQG61g7hW25y1 | |||
MRHcYXlJajSFp9KmGbkB30OpTJgky7NpGQIDAQABMA0GCSqGSIb3DQEBCwUAA4IB | |||
AQApi0LyRNInVXfKqdAo1dMRzVso5CPSVuNUd/YwdRS5aYtGUx44SA2kGnuzo9XP | |||
c0OSJzuMMPRuwkL91Du8283rQT1wERvJrt1Zbs90RAwNNvpTZ4uzgZp/Kxlr8tQ8 | |||
LuUsUcbBgNuI9LV51po0yZlxXGu/pfs7HNRVV2zfItkAO7OKj00f+Mn0+JLhJ9PJ | |||
oYvfPFQnAU3oFkYlc7FIYUeFKbFFG9KCkwb39vkuIHjcCEVFBCkdERefTBBptmXd | |||
emOI+tY7m1pzpkVzNDGX0OtEoGDokZHKL9xJUPU5Ao15OhVY0bp84uf1wjVvDVrg | |||
/8HfSSKirVjrlumRGariq8aw</ds:X509Certificate> | |||
</ds:X509Data> | |||
</ds:KeyInfo> | |||
</KeyDescriptor> | |||
<KeyDescriptor use="encryption"> | |||
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> | |||
<ds:X509Data> | |||
<ds:X509Certificate>MIICrjCCAZYCCQCrriL//w2/KDANBgkqhkiG9w0BAQsFADAZMRcwFQYDVQQDDA5s | |||
b2NhbGhvc3Q6ODQ4MDAeFw0xNjAyMTcxMDQzMjhaFw0yNjAyMTYxMDQzMjhaMBkx | |||
FzAVBgNVBAMMDmxvY2FsaG9zdDo4NDgwMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A | |||
MIIBCgKCAQEAw0VE8Q0jNc2bl0OSZWvKQQIIowBie3rGgRfBB0TzO5sjBbJSQYPh | |||
HBWb61gB4Cx1TvCQdefgVvhB1Heq9VFdRKRtZLl2I9RaOYPpLpBXLl10yHLGUKMz | |||
KVT1bpKNY4hCDN46nrxiYcbi+ZLsiezAITLEsPls2KWq5IFb0Nh/8aLRv3glk1aL | |||
aUtSSM1c/qGk7al9rfjG6HuUutaOYtpy4dTTsMkKUmHwBTeMkSYzLnmNVgyRFN8Q | |||
WPf02B1TtL5cEfrm7frWsSKxUmVcmz5pz3akjd5HD3tNJC1RGCoWQG61g7hW25y1 | |||
MRHcYXlJajSFp9KmGbkB30OpTJgky7NpGQIDAQABMA0GCSqGSIb3DQEBCwUAA4IB | |||
AQApi0LyRNInVXfKqdAo1dMRzVso5CPSVuNUd/YwdRS5aYtGUx44SA2kGnuzo9XP | |||
c0OSJzuMMPRuwkL91Du8283rQT1wERvJrt1Zbs90RAwNNvpTZ4uzgZp/Kxlr8tQ8 | |||
LuUsUcbBgNuI9LV51po0yZlxXGu/pfs7HNRVV2zfItkAO7OKj00f+Mn0+JLhJ9PJ | |||
oYvfPFQnAU3oFkYlc7FIYUeFKbFFG9KCkwb39vkuIHjcCEVFBCkdERefTBBptmXd | |||
emOI+tY7m1pzpkVzNDGX0OtEoGDokZHKL9xJUPU5Ao15OhVY0bp84uf1wjVvDVrg | |||
/8HfSSKirVjrlumRGariq8aw</ds:X509Certificate> | |||
</ds:X509Data> | |||
</ds:KeyInfo> | |||
</KeyDescriptor> | |||
<SingleLogoutService | |||
Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP" | |||
Location="http://localhost:8480/mellon/logout" /> | |||
<SingleLogoutService | |||
Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" | |||
Location="http://localhost:8480/mellon/logout"/> | |||
<NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:transient</NameIDFormat> | |||
<AssertionConsumerService | |||
index="0" | |||
isDefault="true" | |||
Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" | |||
Location="http://localhost:8480/mellon/postResponse" /> | |||
<AssertionConsumerService | |||
index="1" | |||
Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact" | |||
Location="http://localhost:8480/mellon/artifactResponse" /> | |||
<AssertionConsumerService | |||
index="2" | |||
Binding="urn:oasis:names:tc:SAML:2.0:bindings:PAOS" | |||
Location="http://localhost:8480/mellon/paosResponse" /> | |||
</SPSSODescriptor> | |||
</EntityDescriptor> |
51 changes: 51 additions & 0 deletions
51
testsuite/integration-arquillian/tests/other/mod_auth_mellon/docker2/mellon/idp-metadata.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,51 @@ | |||
<!-- | |||
~ Copyright 2016 Red Hat, Inc. and/or its affiliates | |||
~ and other contributors as indicated by the @author tags. | |||
~ | |||
~ Licensed under the Apache License, Version 2.0 (the "License"); | |||
~ you may not use this file except in compliance with the License. | |||
~ You may obtain a copy of the License at | |||
~ | |||
~ http://www.apache.org/licenses/LICENSE-2.0 | |||
~ | |||
~ Unless required by applicable law or agreed to in writing, software | |||
~ distributed under the License is distributed on an "AS IS" BASIS, | |||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||
~ See the License for the specific language governing permissions and | |||
~ limitations under the License. | |||
--> | |||
|
|||
<EntitiesDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata" Name="urn:keycloak"> | |||
<EntityDescriptor entityID="http://localhost:8180/auth/realms/mellon-test"> | |||
<IDPSSODescriptor WantAuthnRequestsSigned="true" | |||
protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol"> | |||
<NameIDFormat> | |||
urn:oasis:names:tc:SAML:2.0:nameid-format:persistent | |||
</NameIDFormat> | |||
<NameIDFormat> | |||
urn:oasis:names:tc:SAML:2.0:nameid-format:transient | |||
</NameIDFormat> | |||
<NameIDFormat> | |||
urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified | |||
</NameIDFormat> | |||
<NameIDFormat> | |||
urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress | |||
</NameIDFormat> | |||
<SingleSignOnService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" | |||
Location="http://localhost:8180/auth/realms/mellon-test/protocol/saml"/> | |||
<SingleSignOnService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" | |||
Location="http://localhost:8180/auth/realms/mellon-test/protocol/saml"/> | |||
<SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" | |||
Location="http://localhost:8180/auth/realms/mellon-test/protocol/saml"/> | |||
<KeyDescriptor use="signing"> | |||
<dsig:KeyInfo xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"> | |||
<dsig:X509Data> | |||
<dsig:X509Certificate> | |||
MIICpTCCAY0CBgFSP3CJrTANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAttZWxsb24tdGVzdDAeFw0xNjAxMTQwOTE5NDVaFw0yNjAxMTQwOTIxMjVaMBYxFDASBgNVBAMMC21lbGxvbi10ZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApaZ6nndLegc+aKXNog08KdWOIZfr393e0nlqZ3SzNCYJ+IrSAWepCNvUW4W0samrtC47XBYNJwBSw9KCLNcpOeR7IC+gtmm8t9VH0QRxDEOvoLoj0zMkuaBhF+1NZdt6kc5gYVSeymkFSG/Eyz06Zo9zfhb52tUK83hYPcRE2azBDAuffnnHGg+fiCMZtMz7qCYXSoGy15odM1AypILDGxCtDpk0nPmwp6AlA7LpWLKYFEXrXhPmZGw2eDA6FqLFYgBovffJzFy1WzqpAzpKbYqVbb/yKUbv5NI4ELlOdjvXfoB7wOp3cHwnuq1G8YjR7OKLeVtszKXUPCjwFSZnFwIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQBwRkPh3pSAG1UWr1rJW9LMVdfu6KFsVTCMqExuJKUrH4hAPKXXi9iEAyiB/+NdnG8bgvU0xhdH9lW51J1JpH3xRtOMV+1CAZB41RFx1r/zJg0Zrdbfodv1UFJtLhSIKhKnfoSdlml2O9SHwd4VQmwz/QQqzBIS+yJDv7cOxMRszryWq5aWCPMosxwuAJzjwlF6jBHqidkd4EGTNMDK1pDZN1voiYS0ry7h7Lcq2ZbrBFzBqzHvXieym68ACDHr5hkKe065ne1hCgO/+POsAi6VU+qlSbzsD9NenHP60c9+Dt/IY9DeX6IubXChcW5A+qnb5qRWBtwXshfcsDFHYkBJ | |||
</dsig:X509Certificate> | |||
</dsig:X509Data> | |||
</dsig:KeyInfo> | |||
</KeyDescriptor> | |||
</IDPSSODescriptor> | |||
</EntityDescriptor> | |||
</EntitiesDescriptor> |
20 changes: 20 additions & 0 deletions
20
testsuite/integration-arquillian/tests/other/mod_auth_mellon/docker2/www/auth2/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,20 @@ | |||
<!-- | |||
~ Copyright 2016 Red Hat, Inc. and/or its affiliates | |||
~ and other contributors as indicated by the @author tags. | |||
~ | |||
~ Licensed under the Apache License, Version 2.0 (the "License"); | |||
~ you may not use this file except in compliance with the License. | |||
~ You may obtain a copy of the License at | |||
~ | |||
~ http://www.apache.org/licenses/LICENSE-2.0 | |||
~ | |||
~ Unless required by applicable law or agreed to in writing, software | |||
~ distributed under the License is distributed on an "AS IS" BASIS, | |||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||
~ See the License for the specific language governing permissions and | |||
~ limitations under the License. | |||
--> | |||
|
|||
<a href="/">Go to unprotected resource</a> | |||
<a href="/mellon/logout?ReturnTo=/">logout</a> | |||
Protected resource 2 |
19 changes: 19 additions & 0 deletions
19
testsuite/integration-arquillian/tests/other/mod_auth_mellon/docker2/www/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,19 @@ | |||
<!-- | |||
~ Copyright 2016 Red Hat, Inc. and/or its affiliates | |||
~ and other contributors as indicated by the @author tags. | |||
~ | |||
~ Licensed under the Apache License, Version 2.0 (the "License"); | |||
~ you may not use this file except in compliance with the License. | |||
~ You may obtain a copy of the License at | |||
~ | |||
~ http://www.apache.org/licenses/LICENSE-2.0 | |||
~ | |||
~ Unless required by applicable law or agreed to in writing, software | |||
~ distributed under the License is distributed on an "AS IS" BASIS, | |||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||
~ See the License for the specific language governing permissions and | |||
~ limitations under the License. | |||
--> | |||
|
|||
<a href="/auth2">Go to protected resource</a> | |||
Unprotected resource 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...src/main/java/org/keycloak/testsuite/mod_auth_mellon/ModAuthMellonProtectedResource2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,32 @@ | |||
package org.keycloak.testsuite.mod_auth_mellon; | |||
|
|||
import org.keycloak.testsuite.page.AbstractPageWithInjectedUrl; | |||
import org.openqa.selenium.WebElement; | |||
import org.openqa.selenium.support.FindBy; | |||
|
|||
import java.net.MalformedURLException; | |||
import java.net.URL; | |||
|
|||
/** | |||
* @author mhajas | |||
*/ | |||
public class ModAuthMellonProtectedResource2 extends AbstractPageWithInjectedUrl { | |||
|
|||
@FindBy(linkText = "logout") | |||
private WebElement logoutButton; | |||
|
|||
@Override | |||
public URL getInjectedUrl() { | |||
try { | |||
return new URL(System.getProperty("apache.mod_auth_mellon2.url", "http://localhost:8480") + "/auth2"); | |||
} catch (MalformedURLException e) { | |||
e.printStackTrace(); | |||
} | |||
|
|||
return null; | |||
} | |||
|
|||
public void logout() { | |||
logoutButton.click(); | |||
} | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.