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 2023/02/26 09:03:15 UTC
[shiro-site] branch asf-staging updated: fixed code block markers
This is an automated email from the ASF dual-hosted git repository.
lprimak pushed a commit to branch asf-staging
in repository https://gitbox.apache.org/repos/asf/shiro-site.git
The following commit(s) were added to refs/heads/asf-staging by this push:
new 954b4fb2d fixed code block markers
954b4fb2d is described below
commit 954b4fb2d7366b7a66506c648a6c6660791c0acf
Author: lprimak <le...@flowlogix.com>
AuthorDate: Sun Feb 26 03:02:52 2023 -0600
fixed code block markers
---
.well-known/security.txt | 2 +-
feed.xml | 2 +-
jakarta-ee.html | 68 ++++++++++++++++++++++++------------------------
3 files changed, 36 insertions(+), 36 deletions(-)
diff --git a/.well-known/security.txt b/.well-known/security.txt
index cc418e7bc..59ddeb68a 100644
--- a/.well-known/security.txt
+++ b/.well-known/security.txt
@@ -1,5 +1,5 @@
Contact: mailto:security@shiro.apache.org
-Expires: 2024-02-23T19:49:29Z
+Expires: 2024-02-26T09:01:33Z
Preferred-Languages: en
Canonical: https://shiro.apache.org/.well-known/security.txt
Policy: https://shiro.apache.org/security-reports.html
\ No newline at end of file
diff --git a/feed.xml b/feed.xml
index be059de9c..745affdf0 100644
--- a/feed.xml
+++ b/feed.xml
@@ -4,7 +4,7 @@
<subtitle>Simple. Java. Security.</subtitle>
<link href="https://shiro.apache.org/"/>
<link rel="self" href="https://shiro.apache.org/feed.xml" />
- <updated>2023-02-23T19:49:32Z</updated>
+ <updated>2023-02-26T09:01:36Z</updated>
<author>
<name>Les Hazlewood</name>
diff --git a/jakarta-ee.html b/jakarta-ee.html
index e07f7014c..c9c224a50 100644
--- a/jakarta-ee.html
+++ b/jakarta-ee.html
@@ -473,13 +473,13 @@ The module is compatible with Java EE 8 through Jakarta EE 10 or later. It may w
</div>
<div class="listingblock">
<div class="content">
-<pre>@RequestScoped
+<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java">@RequestScoped
@RequiresUser
public class MyBean { }
@RequestScoped
@RolesAllowed("role")
-public class MyRoleBean { }</pre>
+public class MyRoleBean { }</code></pre>
</div>
</div>
<div class="sect2">
@@ -489,7 +489,7 @@ public class MyRoleBean { }</pre>
</div>
<div class="listingblock">
<div class="content">
-<pre>@ApplicationScoped
+<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java">@ApplicationScoped
public class MyBean {
private DefaultSecurityManager securityManager;
@@ -505,7 +505,7 @@ public class MyBean {
securityManager.destroy();
SecurityUtils.setSecurityManager(null);
}
-}</pre>
+}</code></pre>
</div>
</div>
</div>
@@ -516,7 +516,7 @@ public class MyBean {
</div>
<div class="listingblock">
<div class="content">
-<pre>@ApplicationScoped
+<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java">@ApplicationScoped
public class MyBean {
@Inject
SecurityManager manager;
@@ -534,7 +534,7 @@ public class MyBean {
@Inject
@NoSessionCreation
Session optionalSession;
-}</pre>
+}</code></pre>
</div>
</div>
<div class="paragraph">
@@ -561,7 +561,7 @@ present if Shiro cannot retrieve it.</p>
</div>
<div class="listingblock">
<div class="content">
-<pre>authc.useRemembered = true</pre>
+<pre class="highlightjs highlight"><code class="language-properties hljs" data-lang="properties">authc.useRemembered = true</code></pre>
</div>
</div>
</div>
@@ -587,7 +587,7 @@ Be careful utilizing this technique, as it could be a vector for a denial-of-ser
</div>
<div class="listingblock">
<div class="content">
-<pre>authc.loginFailedWaitTime = 5</pre>
+<pre class="highlightjs highlight"><code class="language-properties hljs" data-lang="properties">authc.loginFailedWaitTime = 5</code></pre>
</div>
</div>
</div>
@@ -599,10 +599,10 @@ To disable automatic bootstrapping, add the following to <code>web.xml</code>:</
</div>
<div class="listingblock">
<div class="content">
-<pre><context-param>
+<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml"><context-param>
<param-name>org.apache.shiro.ee.disabled</param-name>
<param-value>true</param-value>
-</context-param></pre>
+</context-param></code></pre>
</div>
</div>
<div class="paragraph">
@@ -610,13 +610,13 @@ To disable automatic bootstrapping, add the following to <code>web.xml</code>:</
</div>
<div class="listingblock">
<div class="content">
-<pre><!-- Enforce Filter Ordering (Optional) -->
+<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml"><!-- Enforce Filter Ordering (Optional) -->
... other filters ...
<filter-mapping>
<filter-name>ShiroFilter</filter-name>
<url-pattern/>
</filter-mapping>
-... other filters ...</pre>
+... other filters ...</code></pre>
</div>
</div>
</div>
@@ -627,10 +627,10 @@ To disable automatic bootstrapping, add the following to <code>web.xml</code>:</
</div>
<div class="listingblock">
<div class="content">
-<pre><context-param>
+<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml"><context-param>
<param-name>shiroConfigLocations</param-name>
<param-value>classpath:META-INF/shiro.ini, classpath:META-INF/shiro2.ini</param-value>
-</context-param></pre>
+</context-param></code></pre>
</div>
</div>
<div class="paragraph">
@@ -652,7 +652,7 @@ To disable port filter, put the following in your <code>shiro.ini</code>:</p>
</div>
<div class="listingblock">
<div class="content">
-<pre>ssl.enablePortFilter = false</pre>
+<pre class="highlightjs highlight"><code class="language-properties hljs" data-lang="properties">ssl.enablePortFilter = false</code></pre>
</div>
</div>
<div class="paragraph">
@@ -660,7 +660,7 @@ To disable port filter, put the following in your <code>shiro.ini</code>:</p>
</div>
<div class="listingblock">
<div class="content">
-<pre>ssl.alwaysEnabled = true</pre>
+<pre class="highlightjs highlight"><code class="language-properties hljs" data-lang="properties">ssl.alwaysEnabled = true</code></pre>
</div>
</div>
</div>
@@ -673,10 +673,10 @@ when SSL is used. Below is an haproxy configuration excerpt:</p>
</div>
<div class="listingblock">
<div class="content">
-<pre>....
+<pre class="highlightjs highlight"><code class="language-none hljs">....
frontend tcp-in
http-request set-header X-Forwarded-Proto https if { ssl_fc }
-...</pre>
+...</code></pre>
</div>
</div>
</div>
@@ -687,19 +687,19 @@ frontend tcp-in
</div>
<div class="listingblock">
<div class="content">
-<pre>@Named
+<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java">@Named
@ApplicationScoped
public class MyBean {
public boolean getMyValue() {
return true;
}
-}</pre>
+}</code></pre>
</div>
</div>
<div class="listingblock">
<div class="content">
-<pre>myBeanInstance = myBean
-myVariable = $myBeanInstance.myValue</pre>
+<pre class="highlightjs highlight"><code class="language-properties hljs" data-lang="properties">myBeanInstance = myBean
+myVariable = $myBeanInstance.myValue</code></pre>
</div>
</div>
</div>
@@ -714,7 +714,7 @@ For convenience, String data type is used, If the String that’s returned i
</div>
<div class="listingblock">
<div class="content">
-<pre>@ApplicationScoped
+<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java">@ApplicationScoped
public class CipherKeySource implements CipherKeySupplier {
@Inject
@ConfigProperty(name = "my.config.source.cipher-key")
@@ -724,7 +724,7 @@ public class CipherKeySource implements CipherKeySupplier {
public String get() {
return cipherKey;
}
-}</pre>
+}</code></pre>
</div>
</div>
</div>
@@ -739,21 +739,21 @@ Here we use the path check. If previous page is part of the auth folder, fallbac
</div>
<div class="listingblock">
<div class="content">
-<pre>@Named
+<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java">@Named
@ApplicationScoped
public class UseFallback implements FallbackPredicate {
@Override
public boolean useFallback(String path, HttpServletRequest request) {
return path.contains("shiro/auth/");
}
-}</pre>
+}</code></pre>
</div>
</div>
<div class="listingblock">
<div class="content">
-<pre>fallbackType = useFallback
+<pre class="highlightjs highlight"><code class="language-properties hljs" data-lang="properties">fallbackType = useFallback
authc.loginFallbackType = $fallbackType
-authc.logoutFallbackType = $fallbackType</pre>
+authc.logoutFallbackType = $fallbackType</code></pre>
</div>
</div>
</div>
@@ -841,12 +841,12 @@ Below, elements named by <code>id</code> are automatically used to authenticate,
</div>
<div class="listingblock">
<div class="content">
-<pre><h:form prependId="false" id="form">
+<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml"><h:form prependId="false" id="form">
Username: <h:inputText id="username" p:autofocus="true" title="Username: " required="true" />
Password: <h:inputText id="password" title="Password: " required="true"/>
Remember Me: <h:selectBooleanCheckbox id="rememberMe" title="Remember Me: "/>
<h:commandButton id="login" value="Login ..."/>
-</h:form></pre>
+</h:form></code></pre>
</div>
</div>
<div class="paragraph">
@@ -854,12 +854,12 @@ Below, elements named by <code>id</code> are automatically used to authenticate,
</div>
<div class="listingblock">
<div class="content">
-<pre>/shiro/auth/logout* = ssl, logout</pre>
+<pre class="highlightjs highlight"><code class="language-none hljs">/shiro/auth/logout* = ssl, logout</code></pre>
</div>
</div>
<div class="listingblock">
<div class="content">
-<pre><h:outputLink value="#{request.contextPath}/shiro/auth/logout">Logout</h:outputLink></pre>
+<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml"><h:outputLink value="#{request.contextPath}/shiro/auth/logout">Logout</h:outputLink></code></pre>
</div>
</div>
<div class="sect3">
@@ -870,7 +870,7 @@ All actions have zero-argument versions that execute sensible defaults.</p>
</div>
<div class="listingblock">
<div class="content">
-<pre><div jsf:rendered="#{authc.sessionExpired}">
+<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml"><div jsf:rendered="#{authc.sessionExpired}">
Your Session Has Expired
</div>
<div jsf:rendered="#{authc.loginFailure}">
@@ -879,7 +879,7 @@ All actions have zero-argument versions that execute sensible defaults.</p>
<h:commandButton value="Login ..." action="#{authc.login}"/>
<h:commandButton value="Login ..." action="#{authc.login(bean.username, bean.password)}
<h:commandButton value="Login ..." action="#{authc.login(bean.username, bean.password, bean.rememberMe)}
-<h:commandButton value="Login ..." action="#{authc.redirectIfLoggedIn('page')}"/></pre>
+<h:commandButton value="Login ..." action="#{authc.redirectIfLoggedIn('page')}"/></code></pre>
</div>
</div>
</div>