You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2019/11/18 09:08:15 UTC
[isis] 02/03: ISIS-2062: reorganises security guide
This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git
commit b0c90bda2ad7ef33ab66d7198295f506da9e4eaa
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Mon Nov 18 08:57:14 2019 +0000
ISIS-2062: reorganises security guide
... longer pages.
---
.../security/modules/ROOT/pages/about.adoc | 10 ++-
...c => domain-services-api-for-applications.adoc} | 3 +-
.../modules/ROOT/partials/component-nav.adoc | 5 ++
.../security/modules/ROOT/partials/module-nav.adoc | 3 +-
.../src/main/doc/modules/applib-ant/pages/aaa.adoc | 10 ---
.../src/main/doc/modules/bypass/pages/about.adoc | 20 +++++
.../pages/configuring-isis-to-use-bypass.adoc | 22 -----
.../doc/modules/bypass/partials/module-nav.adoc | 3 +-
.../src/main/doc/modules/keycloak/pages/about.adoc | 2 +-
.../doc/modules/shiro-realm-jdbc/_attributes.adoc | 6 --
.../modules/shiro-realm-jdbc/attachments/.gitkeep | 0
.../doc/modules/shiro-realm-jdbc/examples/.gitkeep | 0
.../configure-shiro-to-use-custom-jdbc-realm.png | Bin 33149 -> 0 bytes
.../src/main/doc/modules/shiro-realm-jdbc/nav.adoc | 1 -
.../shiro-realm-jdbc/partials/_attributes.adoc | 4 -
.../shiro-realm-jdbc/partials/module-nav.adoc | 1 -
.../images/activeds-ldap-groups.png | Bin 128224 -> 0 bytes
.../images/activeds-ldap-mojo-partition.png | Bin 123256 -> 0 bytes
.../images/activeds-ldap-mojo-root-dse.png | Bin 113723 -> 0 bytes
.../images/activeds-ldap-sasl-authentication.png | Bin 119544 -> 0 bytes
.../images/activeds-ldap-users.png | Bin 123030 -> 0 bytes
.../configure-shiro-to-use-isis-ldap-realm.PNG | Bin 32310 -> 0 bytes
.../shiro-realm-ldap/partials/module-nav.adoc | 2 +-
.../configure-isis-to-use-shiro.png | Bin
.../ini/configure-shiro-to-use-ini-realm.png} | Bin
.../configure-shiro-to-use-custom-jdbc-realm.png | Bin
.../configure-shiro-to-use-isis-ldap-realm.png} | Bin
.../src/main/doc/modules/shiro/pages/about.adoc | 10 +++
.../pages => shiro/pages/about}/_attributes.adoc | 2 +-
.../{ => about}/configuring-isis-to-use-shiro.adoc | 2 +-
.../{ => about}/enhanced-wildcard-permission.adoc | 0
.../modules/shiro/pages/{ => about}/ini-realm.adoc | 2 +-
.../pages/about/jdbc-realm.adoc} | 2 +-
.../pages/about/ldap-realm.adoc} | 12 +--
.../modules/shiro/pages/{ => about}/run-as.adoc | 0
.../shiro/pages/{ => about}/shiro-caching.adoc | 0
.../doc/modules/shiro/partials/module-nav.adoc | 10 +--
site-scratch.yml | 90 ++++++++++-----------
38 files changed, 104 insertions(+), 118 deletions(-)
diff --git a/antora/components/security/modules/ROOT/pages/about.adoc b/antora/components/security/modules/ROOT/pages/about.adoc
index fd49301..fc1c79d 100644
--- a/antora/components/security/modules/ROOT/pages/about.adoc
+++ b/antora/components/security/modules/ROOT/pages/about.adoc
@@ -12,6 +12,8 @@ This guide describes the authentication and authorization features available to
== Terminology
+WARNING: TODO:v2: these words could perhaps move into the "security API" module, currently empty.
+
Apache Isis has built-in support for authentication and authorization:
* By "authentication" we mean logging into the application using some credentials, typically a username and password.
@@ -19,13 +21,17 @@ Authentication also means looking up the set of roles to which a user belongs.
* By "authorization" we mean permissions: granting roles to have access to features (object member) of the app.
-Isis has two levels of permissions.
+Apache Isis has two levels of permissions.
_Read_ permission means that the user can view the object member; it will be rendered in the UI. An action with only read permission will be shown disabled ("greyed out".
_Write_ permission means that the object member can be changed. For actions this means that they can be invoked.
-Isis provides an API for both authentication and authorization, and provides an implementation that integrates with link:http://shiro.apache.org[Apache Shiro].
+WARNING: TODO: v2: this is out of date, because there is also a keycloak integration.
+
+The framework provides an API for both authentication and authorization, and provides an implementation that integrates with link:http://shiro.apache.org[Apache Shiro].
Shiro in turn uses the concept of a _realm_ as a source for both authentication and optionally authorization.
+WARNING: TODO: v2: Spring Boot requires that shiro.ini is on classpath, not in WEB-INF.
+
Shiro ships with a simple text-based realm -- the `IniRealm` -- which reads users (and password), user roles and role permissions from the `WEB-INF/shiro.ini` file.
The xref:helloworld:ROOT:about.adoc[HelloWorld] and xref:simpleapp:ROOT:about.adoc[SimpleApp] archetypes are both configured to use this realm.
diff --git a/antora/components/security/modules/ROOT/pages/api-for-applications.adoc b/antora/components/security/modules/ROOT/pages/domain-services-api-for-applications.adoc
similarity index 98%
rename from antora/components/security/modules/ROOT/pages/api-for-applications.adoc
rename to antora/components/security/modules/ROOT/pages/domain-services-api-for-applications.adoc
index b875a10..90ea898 100644
--- a/antora/components/security/modules/ROOT/pages/api-for-applications.adoc
+++ b/antora/components/security/modules/ROOT/pages/domain-services-api-for-applications.adoc
@@ -1,5 +1,4 @@
-[[api-for-applications]]
-= API for Applications
+= Domain Services (API for Applications)
:Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you 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 ag [...]
include::_attributes.adoc[]
:page-partial:
diff --git a/antora/components/security/modules/ROOT/partials/component-nav.adoc b/antora/components/security/modules/ROOT/partials/component-nav.adoc
index 439df3b..ba2ddb5 100644
--- a/antora/components/security/modules/ROOT/partials/component-nav.adoc
+++ b/antora/components/security/modules/ROOT/partials/component-nav.adoc
@@ -1,8 +1,13 @@
include::security:ROOT:partial$module-nav.adoc[]
+
include::security:api:partial$module-nav.adoc[]
+
include::security:bypass:partial$module-nav.adoc[]
+
include::security:shiro:partial$module-nav.adoc[]
+
include::security:keycloak:partial$module-nav.adoc[]
+
include::security:ROOT:partial$module-nav2.adoc[]
* Extensions
diff --git a/antora/components/security/modules/ROOT/partials/module-nav.adoc b/antora/components/security/modules/ROOT/partials/module-nav.adoc
index 486690a..56560ac 100644
--- a/antora/components/security/modules/ROOT/partials/module-nav.adoc
+++ b/antora/components/security/modules/ROOT/partials/module-nav.adoc
@@ -1,5 +1,4 @@
-* xref:security:ROOT:about.adoc[Security]
-** xref:security:ROOT:api-for-applications.adoc[API for Applications]
+* xref:security:ROOT:domain-services-api-for-applications.adoc[Domain Services (API for Applications)]
diff --git a/core/applib/src/main/doc/modules/applib-ant/pages/aaa.adoc b/core/applib/src/main/doc/modules/applib-ant/pages/aaa.adoc
deleted file mode 100644
index dc19063..0000000
--- a/core/applib/src/main/doc/modules/applib-ant/pages/aaa.adoc
+++ /dev/null
@@ -1,10 +0,0 @@
-= Summary
-:Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you 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 ag [...]
-include::_attributes.adoc[]
-:page-partial:
-
-
-This section summarizes the various annotations supported by Apache Isis. They break out into five categories.
-
-
-
diff --git a/core/security/bypass/src/main/doc/modules/bypass/pages/about.adoc b/core/security/bypass/src/main/doc/modules/bypass/pages/about.adoc
index d72ade5..4bd61af 100644
--- a/core/security/bypass/src/main/doc/modules/bypass/pages/about.adoc
+++ b/core/security/bypass/src/main/doc/modules/bypass/pages/about.adoc
@@ -7,3 +7,23 @@ The bypass implementation, as its name suggests, allows both authentication and
This is typically used for integration tests or for prototyping.
+== Configuring to use Bypass
+
+The bypass security component consists of an implementation of both the `AuthenticationManager` and `AuthorizationManager` APIs, and are intended for prototyping use only.
+
+The authentication manager allows access with any credentials (in a sense, "bypassing" authentication), while the authorization manager provides access to all class members (in a sense, "bypassing" authorization).
+
+
+WARNING: TODO: v2: instead this is defined through `IsisBootSecurityXxx` classes.
+
+To tell Apache Isis to bypass security, just update the `WEB-INF/isis.properties` file:
+
+[source,ini]
+----
+isis.authentication=bypass
+isis.authorization=bypass
+----
+
+This installs the appropriate no-op implementations for both authentication and authorization:
+
+image::security/security-apis-impl/configure-isis-to-use-bypass.PNG[width="600px",link="{imagesdir}/security/security-apis-impl/configure-isis-to-use-bypass.PNG"]
diff --git a/core/security/bypass/src/main/doc/modules/bypass/pages/configuring-isis-to-use-bypass.adoc b/core/security/bypass/src/main/doc/modules/bypass/pages/configuring-isis-to-use-bypass.adoc
deleted file mode 100644
index 8ee713e..0000000
--- a/core/security/bypass/src/main/doc/modules/bypass/pages/configuring-isis-to-use-bypass.adoc
+++ /dev/null
@@ -1,22 +0,0 @@
-[[configuring-isis-to-use-bypass]]
-= Bypassing security
-:Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you 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 ag [...]
-include::_attributes.adoc[]
-:page-partial:
-
-The bypass security component consists of an implementation of both the `AuthenticationManager` and `AuthorizationManager` APIs, and are intended for prototyping use only.
-
-The authentication manager allows access with any credentials (in a sense, "bypassing" authentication), while the authorization manager provides access to all class members (in a sense, "bypassing" authorization).
-
-
-To tell Apache Isis to bypass security, just update the `WEB-INF/isis.properties` file:
-
-[source,ini]
-----
-isis.authentication=bypass
-isis.authorization=bypass
-----
-
-This installs the appropriate no-op implementations for both authentication and authorization:
-
-image::security/security-apis-impl/configure-isis-to-use-bypass.PNG[width="600px",link="{imagesdir}/security/security-apis-impl/configure-isis-to-use-bypass.PNG"]
diff --git a/core/security/bypass/src/main/doc/modules/bypass/partials/module-nav.adoc b/core/security/bypass/src/main/doc/modules/bypass/partials/module-nav.adoc
index 7596941..342f4e5 100644
--- a/core/security/bypass/src/main/doc/modules/bypass/partials/module-nav.adoc
+++ b/core/security/bypass/src/main/doc/modules/bypass/partials/module-nav.adoc
@@ -1,3 +1,2 @@
-* Bypass Implementation
-** xref:security:bypass:configuring-isis-to-use-bypass.adoc[Configuring to use Bypass]
+* xref:security:bypass:about.adoc[Bypass Implementation]
diff --git a/core/security/keycloak/src/main/doc/modules/keycloak/pages/about.adoc b/core/security/keycloak/src/main/doc/modules/keycloak/pages/about.adoc
index 0f55aae..689a76d 100644
--- a/core/security/keycloak/src/main/doc/modules/keycloak/pages/about.adoc
+++ b/core/security/keycloak/src/main/doc/modules/keycloak/pages/about.adoc
@@ -5,4 +5,4 @@ include::_attributes.adoc[]
This guide describes the configuration of the Keycloak implementation of Apache Isis' `Authenticator and `Authorizor` APIs.
-TODO
\ No newline at end of file
+TODO: v2
\ No newline at end of file
diff --git a/core/security/shiro/src/main/doc/modules/shiro-realm-jdbc/_attributes.adoc b/core/security/shiro/src/main/doc/modules/shiro-realm-jdbc/_attributes.adoc
deleted file mode 100644
index 43cb529..0000000
--- a/core/security/shiro/src/main/doc/modules/shiro-realm-jdbc/_attributes.adoc
+++ /dev/null
@@ -1,6 +0,0 @@
-ifndef::env-site,env-github[]
-:attachmentsdir: {moduledir}/attachments
-:examplesdir: {moduledir}/examples
-:imagesdir: {moduledir}/images
-:partialsdir: {moduledir}/partials
-endif::[]
diff --git a/core/security/shiro/src/main/doc/modules/shiro-realm-jdbc/attachments/.gitkeep b/core/security/shiro/src/main/doc/modules/shiro-realm-jdbc/attachments/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/core/security/shiro/src/main/doc/modules/shiro-realm-jdbc/examples/.gitkeep b/core/security/shiro/src/main/doc/modules/shiro-realm-jdbc/examples/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/core/security/shiro/src/main/doc/modules/shiro-realm-jdbc/images/configure-shiro-to-use-custom-jdbc-realm.png b/core/security/shiro/src/main/doc/modules/shiro-realm-jdbc/images/configure-shiro-to-use-custom-jdbc-realm.png
deleted file mode 100644
index d64751a..0000000
Binary files a/core/security/shiro/src/main/doc/modules/shiro-realm-jdbc/images/configure-shiro-to-use-custom-jdbc-realm.png and /dev/null differ
diff --git a/core/security/shiro/src/main/doc/modules/shiro-realm-jdbc/nav.adoc b/core/security/shiro/src/main/doc/modules/shiro-realm-jdbc/nav.adoc
deleted file mode 100644
index 4ec4e15..0000000
--- a/core/security/shiro/src/main/doc/modules/shiro-realm-jdbc/nav.adoc
+++ /dev/null
@@ -1 +0,0 @@
-include::security:ROOT:partial$component-nav.adoc[]
diff --git a/core/security/shiro/src/main/doc/modules/shiro-realm-jdbc/partials/_attributes.adoc b/core/security/shiro/src/main/doc/modules/shiro-realm-jdbc/partials/_attributes.adoc
deleted file mode 100644
index e8ada7c..0000000
--- a/core/security/shiro/src/main/doc/modules/shiro-realm-jdbc/partials/_attributes.adoc
+++ /dev/null
@@ -1,4 +0,0 @@
-ifndef::env-site,env-github[]
-:moduledir: ..
-include::{moduledir}/_attributes.adoc[]
-endif::[]
diff --git a/core/security/shiro/src/main/doc/modules/shiro-realm-jdbc/partials/module-nav.adoc b/core/security/shiro/src/main/doc/modules/shiro-realm-jdbc/partials/module-nav.adoc
deleted file mode 100644
index c9d2bc7..0000000
--- a/core/security/shiro/src/main/doc/modules/shiro-realm-jdbc/partials/module-nav.adoc
+++ /dev/null
@@ -1 +0,0 @@
-// this module's pages are referenced by security-shiro module
\ No newline at end of file
diff --git a/core/security/shiro/src/main/doc/modules/shiro-realm-ldap/images/activeds-ldap-groups.png b/core/security/shiro/src/main/doc/modules/shiro-realm-ldap/images/activeds-ldap-groups.png
deleted file mode 100644
index 0496a84..0000000
Binary files a/core/security/shiro/src/main/doc/modules/shiro-realm-ldap/images/activeds-ldap-groups.png and /dev/null differ
diff --git a/core/security/shiro/src/main/doc/modules/shiro-realm-ldap/images/activeds-ldap-mojo-partition.png b/core/security/shiro/src/main/doc/modules/shiro-realm-ldap/images/activeds-ldap-mojo-partition.png
deleted file mode 100644
index 42d7480..0000000
Binary files a/core/security/shiro/src/main/doc/modules/shiro-realm-ldap/images/activeds-ldap-mojo-partition.png and /dev/null differ
diff --git a/core/security/shiro/src/main/doc/modules/shiro-realm-ldap/images/activeds-ldap-mojo-root-dse.png b/core/security/shiro/src/main/doc/modules/shiro-realm-ldap/images/activeds-ldap-mojo-root-dse.png
deleted file mode 100644
index 9c4c480..0000000
Binary files a/core/security/shiro/src/main/doc/modules/shiro-realm-ldap/images/activeds-ldap-mojo-root-dse.png and /dev/null differ
diff --git a/core/security/shiro/src/main/doc/modules/shiro-realm-ldap/images/activeds-ldap-sasl-authentication.png b/core/security/shiro/src/main/doc/modules/shiro-realm-ldap/images/activeds-ldap-sasl-authentication.png
deleted file mode 100644
index 91d1a61..0000000
Binary files a/core/security/shiro/src/main/doc/modules/shiro-realm-ldap/images/activeds-ldap-sasl-authentication.png and /dev/null differ
diff --git a/core/security/shiro/src/main/doc/modules/shiro-realm-ldap/images/activeds-ldap-users.png b/core/security/shiro/src/main/doc/modules/shiro-realm-ldap/images/activeds-ldap-users.png
deleted file mode 100644
index 7ff133c..0000000
Binary files a/core/security/shiro/src/main/doc/modules/shiro-realm-ldap/images/activeds-ldap-users.png and /dev/null differ
diff --git a/core/security/shiro/src/main/doc/modules/shiro-realm-ldap/images/configure-shiro-to-use-isis-ldap-realm.PNG b/core/security/shiro/src/main/doc/modules/shiro-realm-ldap/images/configure-shiro-to-use-isis-ldap-realm.PNG
deleted file mode 100644
index 2a52910..0000000
Binary files a/core/security/shiro/src/main/doc/modules/shiro-realm-ldap/images/configure-shiro-to-use-isis-ldap-realm.PNG and /dev/null differ
diff --git a/core/security/shiro/src/main/doc/modules/shiro-realm-ldap/partials/module-nav.adoc b/core/security/shiro/src/main/doc/modules/shiro-realm-ldap/partials/module-nav.adoc
index c9d2bc7..8789cc4 100644
--- a/core/security/shiro/src/main/doc/modules/shiro-realm-ldap/partials/module-nav.adoc
+++ b/core/security/shiro/src/main/doc/modules/shiro-realm-ldap/partials/module-nav.adoc
@@ -1 +1 @@
-// this module's pages are referenced by security-shiro module
\ No newline at end of file
+* xref:security:shiro-realm-ldap:about.adoc[LDAP Realm]
\ No newline at end of file
diff --git a/core/security/shiro/src/main/doc/modules/shiro/images/security/security-apis-impl/configure-isis-to-use-shiro.png b/core/security/shiro/src/main/doc/modules/shiro/images/configuration/configure-isis-to-use-shiro.png
similarity index 100%
rename from core/security/shiro/src/main/doc/modules/shiro/images/security/security-apis-impl/configure-isis-to-use-shiro.png
rename to core/security/shiro/src/main/doc/modules/shiro/images/configuration/configure-isis-to-use-shiro.png
diff --git a/core/security/shiro/src/main/doc/modules/shiro/images/security/security-apis-impl/configure-shiro-to-use-ini-realm.PNG b/core/security/shiro/src/main/doc/modules/shiro/images/configuration/configuring-shiro/ini/configure-shiro-to-use-ini-realm.png
similarity index 100%
rename from core/security/shiro/src/main/doc/modules/shiro/images/security/security-apis-impl/configure-shiro-to-use-ini-realm.PNG
rename to core/security/shiro/src/main/doc/modules/shiro/images/configuration/configuring-shiro/ini/configure-shiro-to-use-ini-realm.png
diff --git a/core/security/shiro/src/main/doc/modules/shiro/images/security/security-apis-impl/configure-shiro-to-use-custom-jdbc-realm.png b/core/security/shiro/src/main/doc/modules/shiro/images/configuration/configuring-shiro/jdbc/configure-shiro-to-use-custom-jdbc-realm.png
similarity index 100%
rename from core/security/shiro/src/main/doc/modules/shiro/images/security/security-apis-impl/configure-shiro-to-use-custom-jdbc-realm.png
rename to core/security/shiro/src/main/doc/modules/shiro/images/configuration/configuring-shiro/jdbc/configure-shiro-to-use-custom-jdbc-realm.png
diff --git a/core/security/shiro/src/main/doc/modules/shiro/images/security/security-apis-impl/configure-shiro-to-use-isis-ldap-realm.PNG b/core/security/shiro/src/main/doc/modules/shiro/images/configuration/configuring-shiro/ldap/configure-shiro-to-use-isis-ldap-realm.png
similarity index 100%
rename from core/security/shiro/src/main/doc/modules/shiro/images/security/security-apis-impl/configure-shiro-to-use-isis-ldap-realm.PNG
rename to core/security/shiro/src/main/doc/modules/shiro/images/configuration/configuring-shiro/ldap/configure-shiro-to-use-isis-ldap-realm.png
diff --git a/core/security/shiro/src/main/doc/modules/shiro/pages/about.adoc b/core/security/shiro/src/main/doc/modules/shiro/pages/about.adoc
index 54d76c5..33abfca 100644
--- a/core/security/shiro/src/main/doc/modules/shiro/pages/about.adoc
+++ b/core/security/shiro/src/main/doc/modules/shiro/pages/about.adoc
@@ -3,4 +3,14 @@
include::_attributes.adoc[]
:page-partial:
+WARNING: TODO: v2: this needs to be updated for Spring Boot etc.
+
This guide describes the configuration of the Shiro implementation of Apache Isis' `Authenticator and `Authorizor` APIs.
+
+include::about/configuring-isis-to-use-shiro.adoc[leveloffset=+1]
+include::about/ini-realm.adoc[leveloffset=+1]
+include::about/jdbc-realm.adoc[leveloffset=+1]
+include::about/ldap-realm.adoc[leveloffset=+1]
+include::about/enhanced-wildcard-permission.adoc[leveloffset=+1]
+include::about/run-as.adoc[leveloffset=+1]
+include::about/shiro-caching.adoc[leveloffset=+1]
diff --git a/core/security/shiro/src/main/doc/modules/shiro-realm-jdbc/pages/_attributes.adoc b/core/security/shiro/src/main/doc/modules/shiro/pages/about/_attributes.adoc
similarity index 81%
rename from core/security/shiro/src/main/doc/modules/shiro-realm-jdbc/pages/_attributes.adoc
rename to core/security/shiro/src/main/doc/modules/shiro/pages/about/_attributes.adoc
index e8ada7c..d011536 100644
--- a/core/security/shiro/src/main/doc/modules/shiro-realm-jdbc/pages/_attributes.adoc
+++ b/core/security/shiro/src/main/doc/modules/shiro/pages/about/_attributes.adoc
@@ -1,4 +1,4 @@
ifndef::env-site,env-github[]
-:moduledir: ..
+:moduledir: ../..
include::{moduledir}/_attributes.adoc[]
endif::[]
diff --git a/core/security/shiro/src/main/doc/modules/shiro/pages/configuring-isis-to-use-shiro.adoc b/core/security/shiro/src/main/doc/modules/shiro/pages/about/configuring-isis-to-use-shiro.adoc
similarity index 96%
rename from core/security/shiro/src/main/doc/modules/shiro/pages/configuring-isis-to-use-shiro.adoc
rename to core/security/shiro/src/main/doc/modules/shiro/pages/about/configuring-isis-to-use-shiro.adoc
index 1bc57bc..2d2ac47 100644
--- a/core/security/shiro/src/main/doc/modules/shiro/pages/configuring-isis-to-use-shiro.adoc
+++ b/core/security/shiro/src/main/doc/modules/shiro/pages/about/configuring-isis-to-use-shiro.adoc
@@ -34,7 +34,7 @@ public class HelloWorldAppManifest extends AppManifestAbstract {
This installs the appropriate implementation (the `ShiroAuthenticatorOrAuthorizor` class) that use Shiro's APIs to perform authentication and authorization:
-image::security/security-apis-impl/configure-isis-to-use-shiro.png[width="600px",link="{imagesdir}/security/security-apis-impl/configure-isis-to-use-shiro.png"]
+image::configuration/configure-isis-to-use-shiro.png[width="600px",link="{imagesdir}/configuration/configure-isis-to-use-shiro.png"]
The figure above doesn't tell the whole story; we haven't yet seen how Shiro itself is configured to use realms.
The `ShiroAuthenticatorOrAuthorizor` is in essence the glue between the Apache Isis runtime and Shiro.
diff --git a/core/security/shiro/src/main/doc/modules/shiro/pages/enhanced-wildcard-permission.adoc b/core/security/shiro/src/main/doc/modules/shiro/pages/about/enhanced-wildcard-permission.adoc
similarity index 100%
rename from core/security/shiro/src/main/doc/modules/shiro/pages/enhanced-wildcard-permission.adoc
rename to core/security/shiro/src/main/doc/modules/shiro/pages/about/enhanced-wildcard-permission.adoc
diff --git a/core/security/shiro/src/main/doc/modules/shiro/pages/ini-realm.adoc b/core/security/shiro/src/main/doc/modules/shiro/pages/about/ini-realm.adoc
similarity index 96%
rename from core/security/shiro/src/main/doc/modules/shiro/pages/ini-realm.adoc
rename to core/security/shiro/src/main/doc/modules/shiro/pages/about/ini-realm.adoc
index 6190188..b0fa43a 100644
--- a/core/security/shiro/src/main/doc/modules/shiro/pages/ini-realm.adoc
+++ b/core/security/shiro/src/main/doc/modules/shiro/pages/about/ini-realm.adoc
@@ -15,7 +15,7 @@ The app generated by both the xref:helloworld:ROOT:about.adoc[HelloWorld] and xr
The diagram below shows the Isis and components involved:
-image::security/security-apis-impl/configure-shiro-to-use-ini-realm.PNG[width="600px",link="{imagesdir}/security/security-apis-impl/configure-shiro-to-use-ini-realm.PNG"]
+image::configuration/configuring-shiro/ini/configure-shiro-to-use-ini-realm.PNG[width="600px",link="{imagesdir}/configuration/configuring-shiro/ini/configure-shiro-to-use-ini-realm.PNG"]
The realm is responsible for validating the user credentials, and then creates a Shiro link:http://shiro.apache.org/static/latest/apidocs/org/apache/shiro/subject/Subject.html[`Subject`] which represents the user (for the current request).
Apache Isis `Authenticator` component then interacts with the `Subject` in order to check permissions.
diff --git a/core/security/shiro/src/main/doc/modules/shiro-realm-jdbc/pages/about.adoc b/core/security/shiro/src/main/doc/modules/shiro/pages/about/jdbc-realm.adoc
similarity index 95%
rename from core/security/shiro/src/main/doc/modules/shiro-realm-jdbc/pages/about.adoc
rename to core/security/shiro/src/main/doc/modules/shiro/pages/about/jdbc-realm.adoc
index c5b4b5d..8c0d5a1 100644
--- a/core/security/shiro/src/main/doc/modules/shiro-realm-jdbc/pages/about.adoc
+++ b/core/security/shiro/src/main/doc/modules/shiro/pages/about/jdbc-realm.adoc
@@ -13,7 +13,7 @@ If you are happy to use a database then we strongly recommend you use the xref:s
If you go down this route, then the architecture is as follows:
-image::configure-shiro-to-use-custom-jdbc-realm.png[width="600px",link="{imagesdir}/configure-shiro-to-use-custom-jdbc-realm.png"]
+image::configuration/configuring-shiro/jdbc/configure-shiro-to-use-custom-jdbc-realm.png[width="600px",link="{imagesdir}/configuration/jdbc/configuring-shiro/configure-shiro-to-use-custom-jdbc-realm.png"]
diff --git a/core/security/shiro/src/main/doc/modules/shiro-realm-ldap/pages/about.adoc b/core/security/shiro/src/main/doc/modules/shiro/pages/about/ldap-realm.adoc
similarity index 85%
rename from core/security/shiro/src/main/doc/modules/shiro-realm-ldap/pages/about.adoc
rename to core/security/shiro/src/main/doc/modules/shiro/pages/about/ldap-realm.adoc
index 5aecbbf..9b1fe6a 100644
--- a/core/security/shiro/src/main/doc/modules/shiro-realm-ldap/pages/about.adoc
+++ b/core/security/shiro/src/main/doc/modules/shiro/pages/about/ldap-realm.adoc
@@ -6,7 +6,7 @@ include::_attributes.adoc[]
Apache Isis ships with an implementation of http://shiro.apache.org[Apache Shiro]'s `Realm` class that allows user authentication and authorization to be performed against an LDAP server.
-image::configure-shiro-to-use-isis-ldap-realm.PNG[width="600px",link="{imagesdir}/configure-shiro-to-use-isis-ldap-realm.PNG"]
+image::configuration/configuring-shiro/ldap/configure-shiro-to-use-isis-ldap-realm.png[width="600px",link="{imagesdir}/configuration/configuring-shiro/ldap/configure-shiro-to-use-isis-ldap-realm.png"]
The LDAP database stores the user/passwords and user groups, while the `shiro.ini` file is used to map the LDAP groups to roles, and to map the roles to permissions.
@@ -124,22 +124,22 @@ The setup here was initially based on http://krams915.blogspot.co.uk/2011/01/lda
To start, create a partition in order to hold the mojo node (holding the groups):
-image::activeds-ldap-mojo-partition.png[link="{imagesdir}/activeds-ldap-mojo-partition.png"]
+image::configuration/configuring-shiro/ldap/activeds-ldap-mojo-partition.png[link="{imagesdir}/configuration/configuring-shiro/ldap/activeds-ldap-mojo-partition.png"]
Create the `ou=groups,o=mojo` hierarchy:
-image::activeds-ldap-mojo-root-dse.png[link="{imagesdir}/activeds-ldap-mojo-root-dse.png"]
+image::configuration/configuring-shiro/ldap/activeds-ldap-mojo-root-dse.png[link="{imagesdir}/configuration/configuring-shiro/ldap/activeds-ldap-mojo-root-dse.png"]
Configure SASL authentication. This means that the checking of user/password is done implicitly by virtue of Apache Isis connecting to LDAP using these credentials:
-image::activeds-ldap-sasl-authentication.png[link="{imagesdir}/activeds-ldap-sas"]
+image::configuration/configuring-shiro/ldap/activeds-ldap-sasl-authentication.png[link="{imagesdir}/configuration/configuring-shiro/ldap/activeds-ldap-sasl-authentication.png"]
In order for SASL to work, it seems to be necessary to put users under `o=system`. (This is why the setup is slightly different than the tutorial mentioned above):
-image::activeds-ldap-users.png[link="{imagesdir}/activeds-ldap-users.png"]
+image::configuration/configuring-shiro/ldap/activeds-ldap-users.png[link="{imagesdir}/configuration/configuring-shiro/ldap/activeds-ldap-users.png"]
Configure the users into the groups:
-image::activeds-ldap-groups.png[link="{imagesdir}/activeds-ldap-groups.png"]
+image::configuration/configuring-shiro/ldap/activeds-ldap-groups.png[link="{imagesdir}/configuration/configuring-shiro/ldap/activeds-ldap-groups.png"]
diff --git a/core/security/shiro/src/main/doc/modules/shiro/pages/run-as.adoc b/core/security/shiro/src/main/doc/modules/shiro/pages/about/run-as.adoc
similarity index 100%
rename from core/security/shiro/src/main/doc/modules/shiro/pages/run-as.adoc
rename to core/security/shiro/src/main/doc/modules/shiro/pages/about/run-as.adoc
diff --git a/core/security/shiro/src/main/doc/modules/shiro/pages/shiro-caching.adoc b/core/security/shiro/src/main/doc/modules/shiro/pages/about/shiro-caching.adoc
similarity index 100%
rename from core/security/shiro/src/main/doc/modules/shiro/pages/shiro-caching.adoc
rename to core/security/shiro/src/main/doc/modules/shiro/pages/about/shiro-caching.adoc
diff --git a/core/security/shiro/src/main/doc/modules/shiro/partials/module-nav.adoc b/core/security/shiro/src/main/doc/modules/shiro/partials/module-nav.adoc
index a209cde..229694f 100644
--- a/core/security/shiro/src/main/doc/modules/shiro/partials/module-nav.adoc
+++ b/core/security/shiro/src/main/doc/modules/shiro/partials/module-nav.adoc
@@ -1,10 +1,2 @@
-* Shiro Implementation
+* xref:security:shiro:about.adoc[Shiro Implementation]
-** xref:security:shiro:configuring-isis-to-use-shiro.adoc[Configuring to use Shiro]
-** Realms
-*** xref:security:shiro:ini-realm.adoc[INI Realm]
-*** xref:security:shiro-realm-jdbc:about.adoc[JDBC Realm]
-*** xref:security:shiro-realm-ldap:about.adoc[LDAP Realm]
-** xref:security:shiro:enhanced-wildcard-permission.adoc[Enhanced Wildcard Permissions]
-** xref:security:shiro:run-as.adoc[Run As]
-** xref:security:shiro:shiro-caching.adoc[Shiro Caching]
diff --git a/site-scratch.yml b/site-scratch.yml
index f8373c8..a4f3ff8 100644
--- a/site-scratch.yml
+++ b/site-scratch.yml
@@ -14,34 +14,34 @@ content:
# - url: .
# start_path: antora/components/mignotes
# branches: HEAD
- - url: .
- start_path: antora/components/refguide
- branches: HEAD
# - url: .
-# start_path: antora/components/relnotes
+# start_path: antora/components/refguide
# branches: HEAD
# - url: .
-# start_path: antora/components/security
+# start_path: antora/components/relnotes
# branches: HEAD
+ - url: .
+ start_path: antora/components/security
+ branches: HEAD
# - url: .
# start_path: antora/components/testing
# branches: HEAD
- url: .
start_path: antora/components/toc
branches: HEAD
- - url: .
- start_path: antora/components/userguide
- branches: HEAD
+# - url: .
+# start_path: antora/components/userguide
+# branches: HEAD
#
- - url: .
- start_path: core/applib/src/main/doc # refguide
- branches: HEAD
+# - url: .
+# start_path: core/applib/src/main/doc # refguide
+# branches: HEAD
# - url: .
# start_path: core/commons/src/main/doc # core
# branches: HEAD
- - url: .
- start_path: core/config/src/main/doc # refguide
- branches: HEAD
+# - url: .
+# start_path: core/config/src/main/doc # refguide
+# branches: HEAD
# - url: .
# start_path: core/detached-tests/src/main/doc # core
# branches: HEAD
@@ -69,21 +69,21 @@ content:
# - url: .
# start_path: core/runtime-web/src/main/doc # core
# branches: HEAD
- - url: .
- start_path: core/schema/src/main/doc # refguide
- branches: HEAD
-# - url: .
-# start_path: core/security/api/src/main/doc # security
-# branches: HEAD
# - url: .
-# start_path: core/security/bypass/src/main/doc # security
-# branches: HEAD
-# - url: .
-# start_path: core/security/shiro/src/main/doc # security
-# branches: HEAD
-# - url: .
-# start_path: core/security/keycloak/src/main/doc # security
+# start_path: core/schema/src/main/doc # refguide
# branches: HEAD
+ - url: .
+ start_path: core/security/api/src/main/doc # security
+ branches: HEAD
+ - url: .
+ start_path: core/security/bypass/src/main/doc # security
+ branches: HEAD
+ - url: .
+ start_path: core/security/shiro/src/main/doc # security
+ branches: HEAD
+ - url: .
+ start_path: core/security/keycloak/src/main/doc # security
+ branches: HEAD
# - url: .
# start_path: core/testsupport/unittestsupport/src/main/doc # testing
# branches: HEAD
@@ -123,24 +123,24 @@ content:
# - url: .
# start_path: extensions/core/spring/src/main/doc # extensions
# branches: HEAD
-# - url: .
-# start_path: extensions/security/secman/src/main/doc # secman
-# branches: HEAD
-# - url: .
-# start_path: extensions/security/secman/api/src/main/doc # secman
-# branches: HEAD
-# - url: .
-# start_path: extensions/security/secman/encryption-jbcrypt/src/main/doc # secman
-# branches: HEAD
-# - url: .
-# start_path: extensions/security/secman/model/src/main/doc # secman
-# branches: HEAD
-# - url: .
-# start_path: extensions/security/secman/persistence-jdo/src/main/doc # secman
-# branches: HEAD
-# - url: .
-# start_path: extensions/security/secman/realm-shiro/src/main/doc # secman
-# branches: HEAD
+ - url: .
+ start_path: extensions/security/secman/src/main/doc # secman
+ branches: HEAD
+ - url: .
+ start_path: extensions/security/secman/api/src/main/doc # secman
+ branches: HEAD
+ - url: .
+ start_path: extensions/security/secman/encryption-jbcrypt/src/main/doc # secman
+ branches: HEAD
+ - url: .
+ start_path: extensions/security/secman/model/src/main/doc # secman
+ branches: HEAD
+ - url: .
+ start_path: extensions/security/secman/persistence-jdo/src/main/doc # secman
+ branches: HEAD
+ - url: .
+ start_path: extensions/security/secman/realm-shiro/src/main/doc # secman
+ branches: HEAD
# - url: .
# start_path: extensions/testing/fixtures/src/main/doc # testing
# branches: HEAD