Skip to content

Commit

Permalink
bugfix: fixed javadoc limks from modules other than core
Browse files Browse the repository at this point in the history
  • Loading branch information
lprimak committed Aug 25, 2024
1 parent 2bd1361 commit 70aa9f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/site/assets/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ RedirectMatch /static/1.1.0(.*) /static/current$1
RedirectMatch /static/1.0.0-incubating(.*) /static/current$1

# Rediect Javadoc
RedirectMatch /static/current/apidocs/shiro-(.*)/(.*) https://javadoc.io/doc/org.apache.shiro/shiro-$1/latest/$2
RedirectMatch /static/current/apidocs/shiro-(.[A-z-]+)/(.*) https://javadoc.io/doc/org.apache.shiro/shiro-$1/latest/$2
RedirectMatch /static/current/apidocs/(.*) https://javadoc.io/doc/org.apache.shiro/shiro-core/latest/$1

# latest
Expand Down
4 changes: 2 additions & 2 deletions src/site/content/web.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ For example, you could set the Cookie domain:
securityManager.sessionManager.sessionIdCookie.domain = foo.com
----

See the link:static/current/shiro-web/apidocs/org/apache/shiro/web/servlet/SimpleCookie.html[SimpleCookie JavaDoc] for additional properties.
See the link:static/current/apidocs/shiro-web/org/apache/shiro/web/servlet/SimpleCookie.html[SimpleCookie JavaDoc] for additional properties.

The cookie's default name is `JSESSIONID` in accordance with the servlet specification. Additionally, Shiro's cookie supports the https://en.wikipedia.org/wiki/HTTP_cookie#HttpOnly_cookie[`HttpOnly`] and https://en.wikipedia.org/wiki/HTTP_cookie#Same-site_cookie[`SameSite`] flags. The `sessionIdCookie` sets `HttpOnly` to `true` and `SameSite` to `LAX` by default for extra security.

Expand Down Expand Up @@ -680,7 +680,7 @@ securityManager.rememberMeManager.cookie.maxAge = blah
...
----

See the link:static/current/apidocs/shiro-web/org/apache/shiro/web/mgt/CookieRememberMeManager.html[`CookieRememberMeManager`] and the supporting link:static/current/apidocs/src-html/org/apache/shiro/web/servlet/SimpleCookie.html[`SimpleCookie`] JavaDoc for configuration properties.
See the link:static/current/apidocs/shiro-web/org/apache/shiro/web/mgt/CookieRememberMeManager.html[`CookieRememberMeManager`] and the supporting link:static/current/apidocs/shiro-web/org/apache/shiro/web/servlet/SimpleCookie.html[`SimpleCookie`] JavaDoc for configuration properties.

=== Custom `RememberMeManager`

Expand Down

0 comments on commit 70aa9f9

Please sign in to comment.