KEYCLOAK-9598 Apache Tomcat 9.0.x adapter

This commit is contained in:
vramik 2019-05-23 11:21:31 +02:00 committed by Bruno Oliveira da Silva
parent 4d3ef66c86
commit 195383edc9
3 changed files with 21 additions and 6 deletions

View file

@ -2,7 +2,7 @@
[[_tomcat_adapter]] [[_tomcat_adapter]]
==== Tomcat 7 and 8 Adapters ==== Tomcat 7 and 8 Adapters
To be able to secure WAR apps deployed on Tomcat 7 and 8 you must install the Keycloak Tomcat 7 or 8 adapter into your Tomcat installation. To be able to secure WAR apps deployed on Tomcat 7, 8 and 9 you must install the Keycloak Tomcat 7 adapter or Keycloak Tomcat adapter into your Tomcat installation.
You then have to provide some extra configuration in each WAR you deploy to Tomcat. You then have to provide some extra configuration in each WAR you deploy to Tomcat.
Let's go over these steps. Let's go over these steps.
@ -16,14 +16,22 @@ They are also available as a maven artifact.
You must unzip the adapter distro into Tomcat's `lib/` directory. You must unzip the adapter distro into Tomcat's `lib/` directory.
Including adapter's jars within your WEB-INF/lib directory will not work! The Keycloak adapter is implemented as a Valve and valve code must reside in Tomcat's main lib/ directory. Including adapter's jars within your WEB-INF/lib directory will not work! The Keycloak adapter is implemented as a Valve and valve code must reside in Tomcat's main lib/ directory.
Install on Tomcat 7:
[source] [source]
---- ----
$ cd $TOMCAT_HOME/lib $ cd $TOMCAT_HOME/lib
$ unzip keycloak-tomcat7-adapter-dist.zip $ unzip keycloak-tomcat7-adapter-dist.zip
or ----
$ unzip keycloak-tomcat8-adapter-dist.zip
Install on Tomcat 8 or 9:
[source]
----
$ cd $TOMCAT_HOME/lib
$ unzip keycloak-tomcat-adapter-dist.zip
---- ----
===== Required Per WAR Configuration ===== Required Per WAR Configuration

View file

@ -2,7 +2,7 @@
==== Tomcat SAML adapters ==== Tomcat SAML adapters
To be able to secure WAR apps deployed on Tomcat 7 and 8 you must install the Keycloak Tomcat 7 or 8 SAML adapter into your Tomcat installation. To be able to secure WAR apps deployed on Tomcat 7, 8 and 9 you must install the Keycloak Tomcat 7 SAML adapter or Keycloak Tomcat SAML adapter into your Tomcat installation.
You then have to provide some extra configuration in each WAR you deploy to Tomcat. You then have to provide some extra configuration in each WAR you deploy to Tomcat.
Let's go over these steps. Let's go over these steps.

View file

@ -10,12 +10,19 @@ You must unzip the adapter distro into Tomcat's `lib/` directory.
Including adapter's jars within your WEB-INF/lib directory will not work! The Keycloak SAML adapter is implemented as Including adapter's jars within your WEB-INF/lib directory will not work! The Keycloak SAML adapter is implemented as
a Valve and valve code must reside in Tomcat's main lib/ directory. a Valve and valve code must reside in Tomcat's main lib/ directory.
Install on Tomcat 7:
[source] [source]
---- ----
$ cd $TOMCAT_HOME/lib $ cd $TOMCAT_HOME/lib
$ unzip keycloak-saml-tomcat7-adapter-dist.zip $ unzip keycloak-saml-tomcat7-adapter-dist.zip
or
$ unzip keycloak-saml-tomcat8-adapter-dist.zip
---- ----
Install on Tomcat 8 or 9:
[source]
----
$ cd $TOMCAT_HOME/lib
$ unzip keycloak-saml-tomcat-adapter-dist.zip
----