Fix attr substitution in source blocks
This commit is contained in:
parent
8dd3a06539
commit
148e6a5bed
7 changed files with 19 additions and 14 deletions
|
@ -78,7 +78,8 @@ The roles, security constraint mappings and {{book.project.name}} adapter config
|
||||||
|
|
||||||
|
|
||||||
* The `Import-Package` in `META-INF/MANIFEST.MF` needs to contain those imports:
|
* The `Import-Package` in `META-INF/MANIFEST.MF` needs to contain those imports:
|
||||||
[source]
|
|
||||||
|
[source, subs="attributes"]
|
||||||
----
|
----
|
||||||
javax.servlet;version="[3,4)",
|
javax.servlet;version="[3,4)",
|
||||||
javax.servlet.http;version="[3,4)",
|
javax.servlet.http;version="[3,4)",
|
||||||
|
|
|
@ -70,7 +70,7 @@ recommended to use `maven-bundle-plugin` in your project to properly generate OS
|
||||||
Note that "*" resolution for package doesn't import `org.keycloak.adapters.jetty` package
|
Note that "*" resolution for package doesn't import `org.keycloak.adapters.jetty` package
|
||||||
as it's not used by application or Blueprint or Spring descriptor, but it's used just in `jetty-web.xml` file. So list of the packages to import may look like this:
|
as it's not used by application or Blueprint or Spring descriptor, but it's used just in `jetty-web.xml` file. So list of the packages to import may look like this:
|
||||||
|
|
||||||
[source]
|
[source, subs="attributes"]
|
||||||
----
|
----
|
||||||
org.keycloak.adapters.jetty;version="{{book.project.version}}",
|
org.keycloak.adapters.jetty;version="{{book.project.version}}",
|
||||||
org.keycloak.adapters;version="{{book.project.version}}",
|
org.keycloak.adapters;version="{{book.project.version}}",
|
||||||
|
|
|
@ -83,7 +83,8 @@ control over security for each application individually.
|
||||||
|
|
||||||
|
|
||||||
* The `Import-Package` in `META-INF/MANIFEST.MF` needs to contain those imports:
|
* The `Import-Package` in `META-INF/MANIFEST.MF` needs to contain those imports:
|
||||||
[source]
|
|
||||||
|
[source, subs="attributes"]
|
||||||
----
|
----
|
||||||
META-INF.cxf;version="[2.7,3.2)",
|
META-INF.cxf;version="[2.7,3.2)",
|
||||||
META-INF.cxf.osgi;version="[2.7,3.2)";resolution:=optional,
|
META-INF.cxf.osgi;version="[2.7,3.2)";resolution:=optional,
|
||||||
|
|
|
@ -95,7 +95,8 @@ injected `KeycloakJettyAuthenticator` inside. The configuration may look like th
|
||||||
|
|
||||||
|
|
||||||
* The `Import-Package` in `META-INF/MANIFEST.MF` needs to contain those imports:
|
* The `Import-Package` in `META-INF/MANIFEST.MF` needs to contain those imports:
|
||||||
[source]
|
|
||||||
|
[source, subs="attributes"]
|
||||||
----
|
----
|
||||||
META-INF.cxf;version="[2.7,3.2)",
|
META-INF.cxf;version="[2.7,3.2)",
|
||||||
META-INF.cxf.osgi;version="[2.7,3.2)";resolution:=optional,
|
META-INF.cxf.osgi;version="[2.7,3.2)";resolution:=optional,
|
||||||
|
|
|
@ -40,10 +40,11 @@ This file contains configuration of the client application, which is used by JAA
|
||||||
* Start Fuse and install `keycloak` JAAS realm into Fuse. This could be done easily by installing `keycloak-jaas` feature, which has JAAS realm predefined
|
* Start Fuse and install `keycloak` JAAS realm into Fuse. This could be done easily by installing `keycloak-jaas` feature, which has JAAS realm predefined
|
||||||
(you are able to override it by using your own `keycloak` JAAS realm with higher ranking). Use those commands in Fuse terminal:
|
(you are able to override it by using your own `keycloak` JAAS realm with higher ranking). Use those commands in Fuse terminal:
|
||||||
|
|
||||||
```
|
[source, subs="attributes"]
|
||||||
|
----
|
||||||
features:addurl mvn:org.keycloak/keycloak-osgi-features/{{book.project.version}}/xml/features
|
features:addurl mvn:org.keycloak/keycloak-osgi-features/{{book.project.version}}/xml/features
|
||||||
features:install keycloak-jaas
|
features:install keycloak-jaas
|
||||||
```
|
----
|
||||||
|
|
||||||
* Now let's type this from your terminal to login via SSH as `admin` user:
|
* Now let's type this from your terminal to login via SSH as `admin` user:
|
||||||
|
|
||||||
|
|
|
@ -65,7 +65,8 @@ The needed steps to secure your servlet with {{book.project.name}} are:
|
||||||
Note you don't need `web.xml` as the security-constrains are declared in blueprint configuration file.
|
Note you don't need `web.xml` as the security-constrains are declared in blueprint configuration file.
|
||||||
|
|
||||||
* The `Import-Package` in `META-INF/MANIFEST.MF` needs to contain at least those imports:
|
* The `Import-Package` in `META-INF/MANIFEST.MF` needs to contain at least those imports:
|
||||||
[source]
|
|
||||||
|
[source, subs="attributes"]
|
||||||
----
|
----
|
||||||
org.keycloak.adapters.jetty;version="{{book.project.version}}",
|
org.keycloak.adapters.jetty;version="{{book.project.version}}",
|
||||||
org.keycloak.adapters;version="{{book.project.version}}",
|
org.keycloak.adapters;version="{{book.project.version}}",
|
||||||
|
|
|
@ -23,7 +23,7 @@ Adapters are available as a separate archive and are also available as Maven art
|
||||||
{% if book.community %}
|
{% if book.community %}
|
||||||
Install on Wildfly 9 or 10:
|
Install on Wildfly 9 or 10:
|
||||||
|
|
||||||
[source,bash]
|
[source, subs="attributes"]
|
||||||
----
|
----
|
||||||
$ cd $WILDFLY_HOME
|
$ cd $WILDFLY_HOME
|
||||||
$ unzip keycloak-wildfly-adapter-dist-{{book.project.version}}.zip
|
$ unzip keycloak-wildfly-adapter-dist-{{book.project.version}}.zip
|
||||||
|
@ -31,7 +31,7 @@ $ unzip keycloak-wildfly-adapter-dist-{{book.project.version}}.zip
|
||||||
|
|
||||||
Install on Wildfly 8:
|
Install on Wildfly 8:
|
||||||
|
|
||||||
[source,bash]
|
[source, subs="attributes"]
|
||||||
----
|
----
|
||||||
$ cd $WILDFLY_HOME
|
$ cd $WILDFLY_HOME
|
||||||
$ unzip keycloak-wf8-adapter-dist-{{book.project.version}}.zip
|
$ unzip keycloak-wf8-adapter-dist-{{book.project.version}}.zip
|
||||||
|
@ -39,7 +39,7 @@ $ unzip keycloak-wf8-adapter-dist-{{book.project.version}}.zip
|
||||||
|
|
||||||
Install on JBoss EAP 7:
|
Install on JBoss EAP 7:
|
||||||
|
|
||||||
[source]
|
[source, subs="attributes"]
|
||||||
----
|
----
|
||||||
$ cd $EAP_HOME
|
$ cd $EAP_HOME
|
||||||
$ unzip keycloak-eap7-adapter-dist-{{book.project.version}}.zip
|
$ unzip keycloak-eap7-adapter-dist-{{book.project.version}}.zip
|
||||||
|
@ -47,7 +47,7 @@ $ unzip keycloak-eap7-adapter-dist-{{book.project.version}}.zip
|
||||||
|
|
||||||
Install on JBoss EAP 6:
|
Install on JBoss EAP 6:
|
||||||
|
|
||||||
[source]
|
[source, subs="attributes"]
|
||||||
----
|
----
|
||||||
$ cd $EAP_HOME
|
$ cd $EAP_HOME
|
||||||
$ unzip keycloak-eap6-adapter-dist-{{book.project.version}}.zip
|
$ unzip keycloak-eap6-adapter-dist-{{book.project.version}}.zip
|
||||||
|
@ -55,7 +55,7 @@ $ unzip keycloak-eap6-adapter-dist-{{book.project.version}}.zip
|
||||||
|
|
||||||
Install on JBoss AS 7.1:
|
Install on JBoss AS 7.1:
|
||||||
|
|
||||||
[source]
|
[source, subs="attributes"]
|
||||||
----
|
----
|
||||||
$ cd $JBOSS_HOME
|
$ cd $JBOSS_HOME
|
||||||
$ unzip keycloak-as7-adapter-dist-{{book.project.version}}.zip
|
$ unzip keycloak-as7-adapter-dist-{{book.project.version}}.zip
|
||||||
|
@ -65,7 +65,7 @@ $ unzip keycloak-as7-adapter-dist-{{book.project.version}}.zip
|
||||||
{% if book.product %}
|
{% if book.product %}
|
||||||
Install on JBoss EAP 7:
|
Install on JBoss EAP 7:
|
||||||
|
|
||||||
[source]
|
[source, subs="attributes"]
|
||||||
----
|
----
|
||||||
$ cd $EAP_HOME
|
$ cd $EAP_HOME
|
||||||
$ unzip rh-sso-{{book.project.version}}-eap7-adapter.zip
|
$ unzip rh-sso-{{book.project.version}}-eap7-adapter.zip
|
||||||
|
@ -73,7 +73,7 @@ $ unzip rh-sso-{{book.project.version}}-eap7-adapter.zip
|
||||||
|
|
||||||
Install on JBoss EAP 6:
|
Install on JBoss EAP 6:
|
||||||
|
|
||||||
[source]
|
[source, subs="attributes"]
|
||||||
----
|
----
|
||||||
$ cd $EAP_HOME
|
$ cd $EAP_HOME
|
||||||
$ unzip rh-sso-{{book.project.version}}-eap6-adapter.zip
|
$ unzip rh-sso-{{book.project.version}}-eap6-adapter.zip
|
||||||
|
|
Loading…
Reference in a new issue