diff --git a/topics/oidc/java/fuse/camel.adoc b/topics/oidc/java/fuse/camel.adoc index b79229de6c..092f1deef0 100644 --- a/topics/oidc/java/fuse/camel.adoc +++ b/topics/oidc/java/fuse/camel.adoc @@ -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: -[source] + +[source, subs="attributes"] ---- javax.servlet;version="[3,4)", javax.servlet.http;version="[3,4)", diff --git a/topics/oidc/java/fuse/classic-war.adoc b/topics/oidc/java/fuse/classic-war.adoc index 7ff0bfc98e..29f72a02d5 100644 --- a/topics/oidc/java/fuse/classic-war.adoc +++ b/topics/oidc/java/fuse/classic-war.adoc @@ -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 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;version="{{book.project.version}}", diff --git a/topics/oidc/java/fuse/cxf-builtin.adoc b/topics/oidc/java/fuse/cxf-builtin.adoc index ff4211a8c5..3ad7164805 100644 --- a/topics/oidc/java/fuse/cxf-builtin.adoc +++ b/topics/oidc/java/fuse/cxf-builtin.adoc @@ -83,7 +83,8 @@ control over security for each application individually. * 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.osgi;version="[2.7,3.2)";resolution:=optional, diff --git a/topics/oidc/java/fuse/cxf-separate.adoc b/topics/oidc/java/fuse/cxf-separate.adoc index 86e12b76a1..b2d84e97a0 100644 --- a/topics/oidc/java/fuse/cxf-separate.adoc +++ b/topics/oidc/java/fuse/cxf-separate.adoc @@ -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: -[source] + +[source, subs="attributes"] ---- META-INF.cxf;version="[2.7,3.2)", META-INF.cxf.osgi;version="[2.7,3.2)";resolution:=optional, diff --git a/topics/oidc/java/fuse/fuse-admin.adoc b/topics/oidc/java/fuse/fuse-admin.adoc index a3af44346b..363b737bac 100644 --- a/topics/oidc/java/fuse/fuse-admin.adoc +++ b/topics/oidc/java/fuse/fuse-admin.adoc @@ -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 (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:install keycloak-jaas -``` +---- * Now let's type this from your terminal to login via SSH as `admin` user: diff --git a/topics/oidc/java/fuse/servlet-whiteboard.adoc b/topics/oidc/java/fuse/servlet-whiteboard.adoc index 2b979a76f0..8452f73105 100644 --- a/topics/oidc/java/fuse/servlet-whiteboard.adoc +++ b/topics/oidc/java/fuse/servlet-whiteboard.adoc @@ -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. * 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;version="{{book.project.version}}", diff --git a/topics/oidc/java/jboss-adapter.adoc b/topics/oidc/java/jboss-adapter.adoc index 12882d5daa..295bbe1d35 100755 --- a/topics/oidc/java/jboss-adapter.adoc +++ b/topics/oidc/java/jboss-adapter.adoc @@ -23,7 +23,7 @@ Adapters are available as a separate archive and are also available as Maven art {% if book.community %} Install on Wildfly 9 or 10: -[source,bash] +[source, subs="attributes"] ---- $ cd $WILDFLY_HOME $ 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: -[source,bash] +[source, subs="attributes"] ---- $ cd $WILDFLY_HOME $ 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: -[source] +[source, subs="attributes"] ---- $ cd $EAP_HOME $ 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: -[source] +[source, subs="attributes"] ---- $ cd $EAP_HOME $ 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: -[source] +[source, subs="attributes"] ---- $ cd $JBOSS_HOME $ 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 %} Install on JBoss EAP 7: -[source] +[source, subs="attributes"] ---- $ cd $EAP_HOME $ 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: -[source] +[source, subs="attributes"] ---- $ cd $EAP_HOME $ unzip rh-sso-{{book.project.version}}-eap6-adapter.zip