Created
April 16, 2017 13:29
-
-
Save tecsyscom/6aaed5aed820d6d7a9ecf5d0da0898c4 to your computer and use it in GitHub Desktop.
keyCloak SAML example
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
➜ saml ls | |
README.md post-with-encryption redirect-with-signature testsaml.json | |
pom.xml post-with-signature servlet-filter | |
➜ saml mvn install wildfly:deploy | |
[INFO] Scanning for projects... | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Reactor Build Order: | |
[INFO] | |
[INFO] SAML Examples | |
[INFO] Keycloak SAML Adapter Example POST Binding and Signatures | |
[INFO] Keycloak SAML Adapter Example POST Binding and Assertion Encryption | |
[INFO] Keycloak SAML Adapter Example Redirect Binding with Signatures | |
[INFO] Keycloak SAML Adapter as a Servlet Filter | |
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-site-plugin/3.4/maven-site-plugin-3.4.pom | |
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-site-plugin/3.4/maven-site-plugin-3.4.pom (20 KB at 12.5 KB/sec) | |
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-site-plugin/3.4/maven-site-plugin-3.4.jar | |
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-site-plugin/3.4/maven-site-plugin-3.4.jar (125 KB at 153.1 KB/sec) | |
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-checkstyle-plugin/2.15/maven-checkstyle-plugin-2.15.pom | |
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-checkstyle-plugin/2.15/maven-checkstyle-plugin-2.15.pom (14 KB at 31.7 KB/sec) | |
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-checkstyle-plugin/2.15/maven-checkstyle-plugin-2.15.jar | |
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-checkstyle-plugin/2.15/maven-checkstyle-plugin-2.15.jar (109 KB at 196.8 KB/sec) | |
Downloading: https://repo.maven.apache.org/maven2/com/atlassian/maven/plugins/maven-clover2-plugin/4.0.4/maven-clover2-plugin-4.0.4.pom | |
Downloaded: https://repo.maven.apache.org/maven2/com/atlassian/maven/plugins/maven-clover2-plugin/4.0.4/maven-clover2-plugin-4.0.4.pom (21 KB at 46.7 KB/sec) | |
Downloading: https://repo.maven.apache.org/maven2/com/atlassian/maven/plugins/maven-clover2-plugin/4.0.4/maven-clover2-plugin-4.0.4.jar | |
Downloaded: https://repo.maven.apache.org/maven2/com/atlassian/maven/plugins/maven-clover2-plugin/4.0.4/maven-clover2-plugin-4.0.4.jar (140 KB at 214.9 KB/sec) | |
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-ear-plugin/2.10/maven-ear-plugin-2.10.pom | |
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-ear-plugin/2.10/maven-ear-plugin-2.10.pom (10 KB at 22.9 KB/sec) | |
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-ear-plugin/2.10/maven-ear-plugin-2.10.jar | |
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-ear-plugin/2.10/maven-ear-plugin-2.10.jar (90 KB at 173.5 KB/sec) | |
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-eclipse-plugin/2.10/maven-eclipse-plugin-2.10.pom | |
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-eclipse-plugin/2.10/maven-eclipse-plugin-2.10.pom (19 KB at 43.2 KB/sec) | |
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-eclipse-plugin/2.10/maven-eclipse-plugin-2.10.jar | |
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-eclipse-plugin/2.10/maven-eclipse-plugin-2.10.jar (219 KB at 307.6 KB/sec) | |
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-ejb-plugin/2.5/maven-ejb-plugin-2.5.pom | |
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-ejb-plugin/2.5/maven-ejb-plugin-2.5.pom (6 KB at 12.9 KB/sec) | |
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-ejb-plugin/2.5/maven-ejb-plugin-2.5.jar | |
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-ejb-plugin/2.5/maven-ejb-plugin-2.5.jar (25 KB at 56.7 KB/sec) | |
Downloading: https://repo.maven.apache.org/maven2/com/lazerycode/jmeter/jmeter-maven-plugin/1.9.0/jmeter-maven-plugin-1.9.0.pom | |
Downloaded: https://repo.maven.apache.org/maven2/com/lazerycode/jmeter/jmeter-maven-plugin/1.9.0/jmeter-maven-plugin-1.9.0.pom (14 KB at 27.8 KB/sec) | |
Downloading: https://repo.maven.apache.org/maven2/com/lazerycode/jmeter/jmeter-maven-plugin/1.9.0/jmeter-maven-plugin-1.9.0.jar | |
Downloaded: https://repo.maven.apache.org/maven2/com/lazerycode/jmeter/jmeter-maven-plugin/1.9.0/jmeter-maven-plugin-1.9.0.jar (56 KB at 91.7 KB/sec) | |
Downloading: https://repo.maven.apache.org/maven2/com/lazerycode/jmeter/jmeter-analysis-maven-plugin/1.0.4/jmeter-analysis-maven-plugin-1.0.4.pom | |
Downloaded: https://repo.maven.apache.org/maven2/com/lazerycode/jmeter/jmeter-analysis-maven-plugin/1.0.4/jmeter-analysis-maven-plugin-1.0.4.pom (11 KB at 22.2 KB/sec) | |
Downloading: https://repo.maven.apache.org/maven2/com/lazerycode/jmeter/jmeter-analysis-maven-plugin/1.0.4/jmeter-analysis-maven-plugin-1.0.4.jar | |
Downloaded: https://repo.maven.apache.org/maven2/com/lazerycode/jmeter/jmeter-analysis-maven-plugin/1.0.4/jmeter-analysis-maven-plugin-1.0.4.jar (62 KB at 120.3 KB/sec) | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building SAML Examples 3.0.0.Final | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] | |
[INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-maven) @ keycloak-examples-saml-parent --- | |
[INFO] | |
[INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-java-version) @ keycloak-examples-saml-parent --- | |
[INFO] | |
[INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-maven-version) @ keycloak-examples-saml-parent --- | |
[INFO] | |
[INFO] --- buildnumber-maven-plugin:1.3:create (get-scm-revision) @ keycloak-examples-saml-parent --- | |
[INFO] Executing: /bin/sh -c cd /Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/saml && git rev-parse --verify HEAD | |
[INFO] Working directory: /Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/saml | |
[INFO] Storing buildNumber: UNKNOWN at timestamp: 1492349258313 | |
[WARNING] Cannot get the branch information from the git repository: | |
Detecting the current branch failed: fatal: Not a git repository (or any of the parent directories): .git | |
[INFO] Executing: /bin/sh -c cd /Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/saml && git rev-parse --verify HEAD | |
[INFO] Working directory: /Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/saml | |
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH | |
[INFO] | |
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ keycloak-examples-saml-parent --- | |
[INFO] | |
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ keycloak-examples-saml-parent --- | |
[INFO] Installing /Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/saml/pom.xml to /Users/mingderwang/.m2/repository/org/keycloak/keycloak-examples-saml-parent/3.0.0.Final/keycloak-examples-saml-parent-3.0.0.Final.pom | |
[INFO] | |
[INFO] >>> wildfly-maven-plugin:1.1.0.Final:deploy (default-cli) > package @ keycloak-examples-saml-parent >>> | |
[INFO] | |
[INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-maven) @ keycloak-examples-saml-parent --- | |
[INFO] | |
[INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-java-version) @ keycloak-examples-saml-parent --- | |
[INFO] | |
[INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-maven-version) @ keycloak-examples-saml-parent --- | |
[INFO] | |
[INFO] --- buildnumber-maven-plugin:1.3:create (get-scm-revision) @ keycloak-examples-saml-parent --- | |
[INFO] | |
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ keycloak-examples-saml-parent --- | |
[INFO] | |
[INFO] <<< wildfly-maven-plugin:1.1.0.Final:deploy (default-cli) < package @ keycloak-examples-saml-parent <<< | |
[INFO] | |
[INFO] --- wildfly-maven-plugin:1.1.0.Final:deploy (default-cli) @ keycloak-examples-saml-parent --- | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building Keycloak SAML Adapter Example POST Binding and Signatures 3.0.0.Final | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] | |
[INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-maven) @ sales-post-sig --- | |
[INFO] | |
[INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-java-version) @ sales-post-sig --- | |
[INFO] | |
[INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-maven-version) @ sales-post-sig --- | |
[INFO] | |
[INFO] --- buildnumber-maven-plugin:1.3:create (get-scm-revision) @ sales-post-sig --- | |
[INFO] | |
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ sales-post-sig --- | |
[INFO] Using 'UTF-8' encoding to copy filtered resources. | |
[INFO] skip non existing resourceDirectory /Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/saml/post-with-signature/src/main/resources | |
[INFO] | |
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ sales-post-sig --- | |
[INFO] No sources to compile | |
[INFO] | |
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ sales-post-sig --- | |
[INFO] Using 'UTF-8' encoding to copy filtered resources. | |
[INFO] skip non existing resourceDirectory /Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/saml/post-with-signature/src/test/resources | |
[INFO] | |
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ sales-post-sig --- | |
[INFO] No sources to compile | |
[INFO] | |
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ sales-post-sig --- | |
[INFO] No tests to run. | |
[INFO] | |
[INFO] --- maven-war-plugin:2.6:war (default-war) @ sales-post-sig --- | |
[INFO] Packaging webapp | |
[INFO] Assembling webapp [sales-post-sig] in [/Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/saml/post-with-signature/target/sales-post-sig] | |
[INFO] Processing war project | |
[INFO] Copying webapp resources [/Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/saml/post-with-signature/src/main/webapp] | |
[INFO] Webapp assembled in [104 msecs] | |
[INFO] Building war: /Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/saml/post-with-signature/target/sales-post-sig.war | |
[INFO] | |
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ sales-post-sig --- | |
[INFO] No sources in project. Archive not created. | |
[INFO] | |
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ sales-post-sig --- | |
[INFO] Installing /Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/saml/post-with-signature/target/sales-post-sig.war to /Users/mingderwang/.m2/repository/org/keycloak/sales-post-sig/3.0.0.Final/sales-post-sig-3.0.0.Final.war | |
[INFO] Installing /Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/saml/post-with-signature/pom.xml to /Users/mingderwang/.m2/repository/org/keycloak/sales-post-sig/3.0.0.Final/sales-post-sig-3.0.0.Final.pom | |
[INFO] | |
[INFO] >>> wildfly-maven-plugin:1.1.0.Final:deploy (default-cli) > package @ sales-post-sig >>> | |
[INFO] | |
[INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-maven) @ sales-post-sig --- | |
[INFO] | |
[INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-java-version) @ sales-post-sig --- | |
[INFO] | |
[INFO] --- maven-enforcer-plugin:1.4:enforce (enforce-maven-version) @ sales-post-sig --- | |
[INFO] | |
[INFO] --- buildnumber-maven-plugin:1.3:create (get-scm-revision) @ sales-post-sig --- | |
[INFO] | |
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ sales-post-sig --- | |
[INFO] Using 'UTF-8' encoding to copy filtered resources. | |
[INFO] skip non existing resourceDirectory /Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/saml/post-with-signature/src/main/resources | |
[INFO] | |
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ sales-post-sig --- | |
[INFO] No sources to compile | |
[INFO] | |
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ sales-post-sig --- | |
[INFO] Using 'UTF-8' encoding to copy filtered resources. | |
[INFO] skip non existing resourceDirectory /Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/saml/post-with-signature/src/test/resources | |
[INFO] | |
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ sales-post-sig --- | |
[INFO] No sources to compile | |
[INFO] | |
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ sales-post-sig --- | |
[INFO] No tests to run. | |
[INFO] Skipping execution of surefire because it has already been run for this configuration | |
[INFO] | |
[INFO] --- maven-war-plugin:2.6:war (default-war) @ sales-post-sig --- | |
[INFO] Packaging webapp | |
[INFO] Assembling webapp [sales-post-sig] in [/Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/saml/post-with-signature/target/sales-post-sig] | |
[INFO] Processing war project | |
[INFO] Copying webapp resources [/Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/saml/post-with-signature/src/main/webapp] | |
[INFO] Webapp assembled in [14 msecs] | |
[INFO] Building war: /Users/mingderwang/src/keyCloak/keycloak-examples-3.0.0.Final/saml/post-with-signature/target/sales-post-sig.war | |
[INFO] | |
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ sales-post-sig --- | |
[INFO] No sources in project. Archive not created. | |
[INFO] | |
[INFO] <<< wildfly-maven-plugin:1.1.0.Final:deploy (default-cli) < package @ sales-post-sig <<< | |
[INFO] | |
[INFO] --- wildfly-maven-plugin:1.1.0.Final:deploy (default-cli) @ sales-post-sig --- | |
Apr 16, 2017 9:27:41 PM org.xnio.Xnio <clinit> | |
INFO: XNIO version 3.3.1.Final | |
Apr 16, 2017 9:27:42 PM org.xnio.nio.NioXnio <clinit> | |
INFO: XNIO NIO Implementation Version 3.3.1.Final | |
Apr 16, 2017 9:27:42 PM org.jboss.remoting3.EndpointImpl <clinit> | |
INFO: JBoss Remoting version 4.0.9.Final | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Reactor Summary: | |
[INFO] | |
[INFO] SAML Examples ...................................... SUCCESS [ 3.279 s] | |
[INFO] Keycloak SAML Adapter Example POST Binding and Signatures FAILURE [ 2.736 s] | |
[INFO] Keycloak SAML Adapter Example POST Binding and Assertion Encryption SKIPPED | |
[INFO] Keycloak SAML Adapter Example Redirect Binding with Signatures SKIPPED | |
[INFO] Keycloak SAML Adapter as a Servlet Filter .......... SKIPPED | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] BUILD FAILURE | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Total time: 17.479 s | |
[INFO] Finished at: 2017-04-16T21:27:42+08:00 | |
[INFO] Final Memory: 33M/181M | |
[INFO] ------------------------------------------------------------------------ | |
[ERROR] Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:1.1.0.Final:deploy (default-cli) on project sales-post-sig: Failed to execute goal deploy: {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => {"WFLYCTL0080: Failed services" => {"jboss.undertow.deployment.default-server.default-host./sales-post-sig" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./sales-post-sig: java.lang.RuntimeException: java.lang.RuntimeException: UT010039: Unknown authentication mechanism KEYCLOAK-SAML | |
[ERROR] Caused by: java.lang.RuntimeException: java.lang.RuntimeException: UT010039: Unknown authentication mechanism KEYCLOAK-SAML | |
[ERROR] Caused by: java.lang.RuntimeException: UT010039: Unknown authentication mechanism KEYCLOAK-SAML"}}}} | |
[ERROR] -> [Help 1] | |
[ERROR] | |
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. | |
[ERROR] Re-run Maven using the -X switch to enable full debug logging. | |
[ERROR] | |
[ERROR] For more information about the errors and possible solutions, please read the following articles: | |
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException | |
[ERROR] | |
[ERROR] After correcting the problems, you can resume the build with the command | |
[ERROR] mvn <goals> -rf :sales-post-sig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tengo el mismo problema. :(