You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shiro.apache.org by lp...@apache.org on 2026/07/07 00:49:48 UTC
(shiro-site) branch main updated (e7000114b -> 4eef7452c)
This is an automated email from the ASF dual-hosted git repository.
lprimak pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/shiro-site.git
from e7000114b enh(security-model): add guidelines for handling host, port, and absolute URL in Shiro deployments
new a50cfeff6 added announcement blog for 3.0.0
new 5db3370f1 enh: added shiro 3.0.0 logo on the home page
new 4eef7452c enh: update docs, downloads to 3.x
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
src/site/assets/images/shiro-3.0.0-release.jpg | Bin 0 -> 261550 bytes
.../blog/2026/06/apache-shiro-300-released.adoc | 78 ++++++++++++++++++
src/site/content/dependency-chain.adoc | 66 ++++++++++++++-
src/site/content/download.adoc | 4 +-
src/site/content/jakarta-ee.adoc | 89 +--------------------
src/site/data/artifacts.yaml | 6 ++
src/site/data/releases.yaml | 26 +++++-
src/site/templates/download.ftl | 4 +-
src/site/templates/index.ftl | 7 +-
src/site/templates/macros/versions.ftl | 1 +
10 files changed, 180 insertions(+), 101 deletions(-)
create mode 100644 src/site/assets/images/shiro-3.0.0-release.jpg
create mode 100644 src/site/content/blog/2026/06/apache-shiro-300-released.adoc
(shiro-site) 03/03: enh: update docs, downloads to 3.x
Posted by lp...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
lprimak pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/shiro-site.git
commit 4eef7452c46b012a34b11c7e9272b69534a136f1
Author: lprimak <le...@flowlogix.com>
AuthorDate: Mon Jul 6 19:47:41 2026 -0500
enh: update docs, downloads to 3.x
---
.../blog/2026/06/apache-shiro-300-released.adoc | 3 +
src/site/content/dependency-chain.adoc | 66 +++++++++++++++-
src/site/content/download.adoc | 4 +-
src/site/content/jakarta-ee.adoc | 89 +---------------------
src/site/data/artifacts.yaml | 6 ++
src/site/data/releases.yaml | 26 ++++++-
src/site/templates/download.ftl | 4 +-
src/site/templates/macros/versions.ftl | 1 +
8 files changed, 104 insertions(+), 95 deletions(-)
diff --git a/src/site/content/blog/2026/06/apache-shiro-300-released.adoc b/src/site/content/blog/2026/06/apache-shiro-300-released.adoc
index 5dc2e019b..20f990b47 100644
--- a/src/site/content/blog/2026/06/apache-shiro-300-released.adoc
+++ b/src/site/content/blog/2026/06/apache-shiro-300-released.adoc
@@ -51,6 +51,9 @@ This is a new major release of Apache Shiro, with many new features and improvem
* Added NoAccessFilter and add it to the default filter chain (breaking change, hardened-by-default)
* Enable CORS preflight requests by default
+== End-of-life notice
+Apache Shiro 1.x and 2.x are now considered end-of-life. If support for these versions is required, please check link:/commercial-support.html[Commercial Support]
+
== Thank you to the following contributors!
* https://github.com/janitza-mage[Martin Geisse]
diff --git a/src/site/content/dependency-chain.adoc b/src/site/content/dependency-chain.adoc
index 0bae58aee..9ce0a1f9b 100644
--- a/src/site/content/dependency-chain.adoc
+++ b/src/site/content/dependency-chain.adoc
@@ -9,12 +9,13 @@
Managing Apache Shiro dependencies in Jakarta EE projects can be simplified using the FlowLogix Dependency Chains. This approach provides a cleaner alternative to managing the BOM (Bill of Materials) directly, reducing configuration complexity and common errors.
== Applicability
-This guide is intended for Jakarta EE projects using Apache Shiro for security.
+This guide is intended for Jakarta EE projects using Apache Shiro 2.x for security.
+It is not applicable to Shiro 3.x
[NOTE]
====
Dependency chains are not suitable for Spring or SpringBoot projects
====
-For Spring / SpringBoot projects, you need to use a link:jakarta-ee.html#bom_approach[traditional BOM approach]
+For Spring / SpringBoot projects, you need to use a link:#bom_approach[traditional BOM approach]
== What is the FlowLogix Dependency Chain?
@@ -191,3 +192,64 @@ To migrate an existing project from the traditional BOM approach:
4. Remove any manually specified `jakarta` classifiers
The dependency chain automatically handles classifier configuration and ensures all required components are included with compatible versions.
+
+[#bom_approach]
+=== Traditional BOM with Individual Dependencies
+
+Alternatively, use the Shiro artifacts with Jakarta classifiers directly
+
+Import the Shiro BOM as seen below
+[NOTE]
+====
+Shiro BOM is a *necessary* step, unless you are using FlowLogix Depchain as described above.
+The BOM is needed if you are using Spring / SpringBoot.
+====
+
+[source,xml]
+----
+<dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.shiro</groupId>
+ <artifactId>shiro-bom</artifactId>
+ <version>${versions.latestRelease}</version>
+ <scope>import</scope>
+ <type>pom</type>
+ </dependency>
+ </dependencies>
+</dependencyManagement>
+----
+
+[source,xml]
+----
+<dependency>
+ <groupId>org.apache.shiro</groupId>
+ <artifactId>shiro-jakarta-ee</artifactId>
+ <classifier>jakarta</classifier>
+</dependency>
+
+<dependency>
+ <groupId>org.apache.shiro</groupId>
+ <artifactId>shiro-cdi</artifactId>
+ <classifier>jakarta</classifier>
+</dependency>
+
+<dependency>
+ <groupId>org.apache.shiro</groupId>
+ <artifactId>shiro-core</artifactId>
+ <classifier>jakarta</classifier>
+</dependency>
+
+<dependency>
+ <groupId>org.apache.shiro</groupId>
+ <artifactId>shiro-web</artifactId>
+ <classifier>jakarta</classifier>
+</dependency>
+
+<dependency>
+ <groupId>org.omnifaces</groupId>
+ <artifactId>omnifaces</artifactId>
+ <!-- replace LATEST with a version number -->
+ <version>LATEST</version>
+</dependency>
+----
diff --git a/src/site/content/download.adoc b/src/site/content/download.adoc
index a06e84fe7..168516e4f 100644
--- a/src/site/content/download.adoc
+++ b/src/site/content/download.adoc
@@ -4,11 +4,11 @@
:jbake-status: published
:jbake-tags: download, installation, maven, gradle
:jbake-description: Download Apache Shiro security framework. Get the latest stable release with Maven/Gradle dependencies and verify signatures.
-:jbake-releases: {"versions":["shiro22x"]}
+:jbake-releases: {"versions":["shiro30x"]}
:idprefix:
:icons: font
-Apache Shiro ${versions.latestRelease} is the current stable release (Java 11+).
+Apache Shiro ${versions.latestRelease} is the current stable release (Java 17+).
To download Shiro please follow the instructions below.
diff --git a/src/site/content/jakarta-ee.adoc b/src/site/content/jakarta-ee.adoc
index 1ad8c5fc7..7d2fd5614 100644
--- a/src/site/content/jakarta-ee.adoc
+++ b/src/site/content/jakarta-ee.adoc
@@ -11,7 +11,7 @@ Apache Shiro Jakarta EE module makes it transparent to use Shiro features in Jak
with minimal configuration. It makes annotations such as `@RequiresRoles` available in Jakarta EE (CDI, EJB, etc.) code.
NOTE: Jakarta EE integration is available in Shiro 2.0 or later. +
-The module is compatible with Java EE 8 through Jakarta EE 10 or later. It may work with earlier versions of Jakarta EE but was not tested with those.
+The module is compatible with Jakarta EE 10 through Jakarta EE 11 or later. It may work with earlier versions of Jakarta EE but was not tested with those.
== Dependencies
@@ -39,93 +39,6 @@ Jakarta EE module depends on CDI and Jax-RS submodules to fully integrate with t
=== Jakarta EE Security Annotations (JSR-250)
In addition to all Shiro annotations, Jakarta EE module allows to specify Jakarta EE security annotations such as `@RolesAllowed`, `@DenyAll` and `@PermitAll` on your beans
-=== How to use Jakarta 9+ (jakarta.* namespace)
-
-There are two approaches to include Shiro Jakarta EE dependencies in your project:
-
-==== Option 1: FlowLogix Dependency Chain (Recommended)
-[NOTE]
-====
-This option is applicable only to Jakarta EE, not Spring / SpringBoot.
-====
-
-The simplest approach is to use the FlowLogix dependency chain, which bundles all required Shiro Jakarta EE components in a single dependency:
-
-[source,xml]
-----
-<dependencies>
- <dependency>
- <groupId>com.flowlogix.depchain</groupId>
- <artifactId>shiro-jakarta</artifactId>
- <!-- replace LATEST with a version number -->
- <version>LATEST</version>
- </dependency>
-</dependencies>
-----
-
-This approach automatically includes all Shiro modules (`shiro-core`, `shiro-web`, `shiro-jakarta-ee`, `shiro-cdi`, `shiro-jaxrs`) with the correct Jakarta classifier, plus required dependencies like OmniFaces. See the link:dependency-chain.html[Dependency Chain Guide] for more details, Gradle examples, and migration instructions.
-
-[#bom_approach]
-==== Option 2: Traditional BOM with Individual Dependencies
-
-Alternatively, use the Shiro artifacts with Jakarta classifiers directly
-
-Import the Shiro BOM as seen below
-[NOTE]
-====
-Shiro BOM is a *necessary* step, unless you are using FlowLogix Depchain as described above.
-The BOM is needed if you are using Spring / SpringBoot.
-====
-
-[source,xml]
-----
-<dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>org.apache.shiro</groupId>
- <artifactId>shiro-bom</artifactId>
- <version>${versions.latestRelease}</version>
- <scope>import</scope>
- <type>pom</type>
- </dependency>
- </dependencies>
-</dependencyManagement>
-----
-
-[source,xml]
-----
-<dependency>
- <groupId>org.apache.shiro</groupId>
- <artifactId>shiro-jakarta-ee</artifactId>
- <classifier>jakarta</classifier>
-</dependency>
-
-<dependency>
- <groupId>org.apache.shiro</groupId>
- <artifactId>shiro-cdi</artifactId>
- <classifier>jakarta</classifier>
-</dependency>
-
-<dependency>
- <groupId>org.apache.shiro</groupId>
- <artifactId>shiro-core</artifactId>
- <classifier>jakarta</classifier>
-</dependency>
-
-<dependency>
- <groupId>org.apache.shiro</groupId>
- <artifactId>shiro-web</artifactId>
- <classifier>jakarta</classifier>
-</dependency>
-
-<dependency>
- <groupId>org.omnifaces</groupId>
- <artifactId>omnifaces</artifactId>
- <!-- replace LATEST with a version number -->
- <version>LATEST</version>
-</dependency>
-----
-
== Configuration
No additional configuration is required to use Shiro Jakarta EE module. The module is bootstrapped automatically. +
Only `shiro.ini` is needed and can be configured as described in link:web.html#web_ini[Web Configuration] +
diff --git a/src/site/data/artifacts.yaml b/src/site/data/artifacts.yaml
index a570d9889..2b4f1654b 100644
--- a/src/site/data/artifacts.yaml
+++ b/src/site/data/artifacts.yaml
@@ -57,6 +57,12 @@ artifacts:
Shiro-CAS support is deprecated, support has been moved
to the Apache Shiro based <a href='https://github.com/bujiio/buji-pac4j'>buji-pac4j</a> project.
+ shiroCache:
+ "g": "org.apache.shiro"
+ "a": "shiro-cache"
+ "type": "jar"
+ "description": 'Enables <a class="external-link" href="https://jcp.org/en/jsr/detail?id=107">Java Cache</a>-based framework caching.'
+
shiroEhCache:
"g": "org.apache.shiro"
"a": "shiro-ehcache"
diff --git a/src/site/data/releases.yaml b/src/site/data/releases.yaml
index 279a7f854..36e67e7f3 100644
--- a/src/site/data/releases.yaml
+++ b/src/site/data/releases.yaml
@@ -1,9 +1,11 @@
---
# for each release, update this variable with the latest version.
-latestRelease: "2.2.1"
+latestRelease: "3.0.0"
# also add or replace the latest version here.
versionInfo:
+ '3.0.0':
+ releaseDate: 2026-06-29
'2.2.1':
releaseDate: 2026-06-17
'2.2.0':
@@ -387,3 +389,25 @@ releases:
- shiroHasher
hashes:
- sha512
+
+ shiro30x:
+ version: 3.0.0
+ artifacts:
+ - shiroCore
+ - shiroWeb
+ - shiroServletPlugin
+ - shiroCDI
+ - shiroJakartaEE
+ - shiroJaxrs
+ - shiroAspectJ
+ - shiroCas
+ - shiroCache
+ - shiroFeatures
+ - shiroGuice
+ - shiroQuartz
+ - shiroSpring
+ - shiroSpringBoot
+ - shiroSpringBootWeb
+ - shiroHasher
+ hashes:
+ - sha512
diff --git a/src/site/templates/download.ftl b/src/site/templates/download.ftl
index 543a48227..ab220249c 100644
--- a/src/site/templates/download.ftl
+++ b/src/site/templates/download.ftl
@@ -15,13 +15,13 @@
<#assign displayReleases=((content.releases).versions)![] />
<#assign downloadUrl="https://www.apache.org/dyn/closer.lua/shiro/" />
<#assign appendToGpg=".txt" />
- <#assign buildRequirements="The source bundle requires JDK 11+ and Maven 3.8+ to build:"/>
+ <#assign buildRequirements="The source bundle requires JDK 25+ and Maven 3.9+ to build:"/>
<#else>
<#-- if not releases are given using :jbake-release:, assume oldReleases (release-archive.html). -->
<#assign displayReleases=versions.oldReleases />
<#assign downloadUrl="https://archive.apache.org/dist/shiro/" />
<#assign appendToGpg="" />
- <#assign buildRequirements="The source bundle requires JDK 1.8 and Maven 3.0.3+ to build:"/>
+ <#assign buildRequirements="The source bundle requires JDK 11 and Maven 3.8+ to build:"/>
</#if>
<#assign downloadHashUrl="https://downloads.apache.org/shiro/" />
diff --git a/src/site/templates/macros/versions.ftl b/src/site/templates/macros/versions.ftl
index fdf46e01c..2f420ce8d 100644
--- a/src/site/templates/macros/versions.ftl
+++ b/src/site/templates/macros/versions.ftl
@@ -18,6 +18,7 @@
<div class="title">Shiro v1 version notice</div>
<div class="paragraph">
<p>As of February 28, 2024, Shiro v1 was superseded by v2.<p>
+ <p>As of June 29, 2026, Shiro v2 was superseded by v3.<p>
<#if (sourcepage)?? && (sourcepage)?is_string && (sourcepage) != "" && hasv2 == true>
<p>
<a href="./v2/${sourcepage}">Read this page in the v2 documentation</a>.
(shiro-site) 02/03: enh: added shiro 3.0.0 logo on the home page
Posted by lp...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
lprimak pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/shiro-site.git
commit 5db3370f10af5a95f3ef4a0e7c50df04900409dc
Author: lprimak <le...@flowlogix.com>
AuthorDate: Mon Jul 6 19:04:39 2026 -0500
enh: added shiro 3.0.0 logo on the home page
---
src/site/templates/index.ftl | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/src/site/templates/index.ftl b/src/site/templates/index.ftl
index 83ab22675..aec56244d 100644
--- a/src/site/templates/index.ftl
+++ b/src/site/templates/index.ftl
@@ -23,12 +23,7 @@
</div>
<div class="col-md-6 col-sm-6 col-padded-top col-center">
- <div style="width: 100%; max-width: 272px; display: inline-block; text-align: center; margin-left: 50px; padding-bottom: 15px;">
- <iframe width="310" height="233"
- src="https://www.youtube.com/embed/YJByiDvOhsc?rel=0"
- allowfullscreen>
- </iframe>
- </div>
+ <img style="padding-bottom: 15px;" alt="Shiro 3.0.0 release" src="images/shiro-3.0.0-release.jpg"/>
</div>
</div>
(shiro-site) 01/03: added announcement blog for 3.0.0
Posted by lp...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
lprimak pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/shiro-site.git
commit a50cfeff61607663dd3b54178a36b63f803fed87
Author: lprimak <le...@flowlogix.com>
AuthorDate: Mon Jul 6 18:29:45 2026 -0500
added announcement blog for 3.0.0
---
src/site/assets/images/shiro-3.0.0-release.jpg | Bin 0 -> 261550 bytes
.../blog/2026/06/apache-shiro-300-released.adoc | 75 +++++++++++++++++++++
2 files changed, 75 insertions(+)
diff --git a/src/site/assets/images/shiro-3.0.0-release.jpg b/src/site/assets/images/shiro-3.0.0-release.jpg
new file mode 100644
index 000000000..c280b8738
Binary files /dev/null and b/src/site/assets/images/shiro-3.0.0-release.jpg differ
diff --git a/src/site/content/blog/2026/06/apache-shiro-300-released.adoc b/src/site/content/blog/2026/06/apache-shiro-300-released.adoc
new file mode 100644
index 000000000..5dc2e019b
--- /dev/null
+++ b/src/site/content/blog/2026/06/apache-shiro-300-released.adoc
@@ -0,0 +1,75 @@
+////
+# 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 agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+////
+
+= 3.0.0 available
+:jbake-author: Lenny Primak
+:jbake-date: 2026-06-29 00:00:00
+:jbake-type: post
+:jbake-status: published
+:jbake-tags: blog, release
+:idprefix:
+:icons: font
+
+The Apache Shiro team is pleased to announce the release of Apache Shiro version 3.0.0.
+
+image::/images/shiro-3.0.0-release.jpg[Shiro 3.0.0 Release Logo, width="50%"]
+
+This release is available for download now.
+
+== Release Highlights
+
+This is a new major release of Apache Shiro, with many new features and improvements, culminating more than two years of work.
+
+* JDK 17 is the new minimum baseline
+* Jakarta EE 9/10/11+ (no javax.* namespace)
+* Spring 6/7+ and SpringBoot 3/4+
+* Guice 7/8+
+* Using Java Scoped values for Subject and SecurityManager instead of ThreadLocals on JDK 25+
+* Improved thread-safety of Shiro-native sessions (SimpleSession, SimpleSessionFactory, CachingSessionDAO)
+
+== Breaking API Changes
+* Made default implementation of PrincipalCollection immutable (ImmutablePrincipalCollection)
+
+== Security Enhancements
+* Case-insensitive path matching is now enabled by default (hardened by default)
+* Added NoAccessFilter and add it to the default filter chain (breaking change, hardened-by-default)
+* Enable CORS preflight requests by default
+
+== Thank you to the following contributors!
+
+* https://github.com/janitza-mage[Martin Geisse]
+* https://github.com/timtebeek[Tim te Beek]
+* https://github.com/rgcv[Rui Ventura]
+* https://github.com/nsoft[Patrick (Gus) Heck]
+
+== All changes
+
+You can learn more on link:https://github.com/apache/shiro/releases/tag/shiro-root-3.0.0[GitHub, Release 3.0.0].
+
+== Download
+
+Download and verification instructions are available link:/download.html[on our download page].
+
+== Documentation
+
+For more information on link:/documentation.html[Shiro, please read the documentation.]
+
+Enjoy!
+
+The Apache Shiro Team