Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,12 @@ repos:
- id: check-shebang-scripts-are-executable
- id: check-vcs-permalinks
- id: check-xml
- id: check-yaml
- id: destroyed-symlinks
- id: detect-aws-credentials
args: [--allow-missing-credentials]
- id: detect-private-key
- id: end-of-file-fixer
- id: forbid-submodules
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.45.0
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,4 @@
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.
limitations under the License.
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ package org.apache.shiro.config.ogdl
enum SimpleEnum {
FOO,
BAR
}
}
1 change: 0 additions & 1 deletion config/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,3 @@
</modules>

</project>

Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,3 @@ public interface MethodInvocation {


}

Original file line number Diff line number Diff line change
Expand Up @@ -328,4 +328,3 @@ public static Subject unbindSubject() {
return (Subject) remove(SUBJECT_KEY);
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,3 @@ void testNullMethodInvocation() throws SecurityException, NoSuchMethodException
assertNull(annotationResolver.getAnnotation(methodInvocation, RequiresUser.class));
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
user1 = user1, admin

[roles]
admin = *
admin = *
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ user1 = user1, admin

[roles]
admin = *

2 changes: 1 addition & 1 deletion core/src/test/resources/test.shiro.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
#

[users]
jsmith = jsmith,role1
jsmith = jsmith,role1
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,3 @@ public static Sha512Hash fromBase64String(String base64) {
return hash;
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,3 @@ class HexFormatTest {
}

}


1 change: 0 additions & 1 deletion crypto/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,3 @@
</modules>

</project>

2 changes: 1 addition & 1 deletion integration-tests/guice3/src/main/webapp/WEB-INF/shiro.ini
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ goodguy = winnebago:drive:eagle5
/login.jsp = authc
/logout = logout
/account/** = authc
/remoting/** = authc, roles[b2bClient], perms["remote:invoke:lan,wan"]
/remoting/** = authc, roles[b2bClient], perms["remote:invoke:lan,wan"]
2 changes: 1 addition & 1 deletion integration-tests/guice3/src/main/webapp/account/index.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
<p><a href="<c:url value="/logout"/>">Log out.</a></p>

</body>
</html>
</html>
2 changes: 1 addition & 1 deletion integration-tests/guice3/src/main/webapp/include.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
<%@ page import="org.apache.shiro.SecurityUtils" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
2 changes: 1 addition & 1 deletion integration-tests/guice3/src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
--%>

<%-- Forward the user to the home page --%>
<jsp:forward page="home.jsp"/>
<jsp:forward page="home.jsp"/>
2 changes: 1 addition & 1 deletion integration-tests/guice3/src/main/webapp/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ img {
color: black;
background: #eee;
border: thick black solid;
}
}
2 changes: 1 addition & 1 deletion integration-tests/guice4/src/main/webapp/WEB-INF/shiro.ini
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ goodguy = winnebago:drive:eagle5
/login.jsp = authc
/logout = logout
/account/** = authc
/remoting/** = authc, roles[b2bClient], perms["remote:invoke:lan,wan"]
/remoting/** = authc, roles[b2bClient], perms["remote:invoke:lan,wan"]
2 changes: 1 addition & 1 deletion integration-tests/guice4/src/main/webapp/account/index.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
<p><a href="<c:url value="/logout"/>">Log out.</a></p>

</body>
</html>
</html>
2 changes: 1 addition & 1 deletion integration-tests/guice4/src/main/webapp/include.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
<%@ page import="org.apache.shiro.SecurityUtils" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
2 changes: 1 addition & 1 deletion integration-tests/guice4/src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
--%>

<%-- Forward the user to the home page --%>
<jsp:forward page="home.jsp"/>
<jsp:forward page="home.jsp"/>
2 changes: 1 addition & 1 deletion integration-tests/guice4/src/main/webapp/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ img {
color: black;
background: #eee;
border: thick black solid;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,3 @@
User Not Authenticated
</h:body>
</html>

Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,3 @@ public void testGetUsersBasicAuthenticated() {
}

}

2 changes: 1 addition & 1 deletion samples/guice/src/main/webapp/WEB-INF/shiro.ini
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ goodguy = winnebago:drive:eagle5
/login.jsp = authc
/logout = logout
/account/** = authc
/remoting/** = authc, roles[b2bClient], perms["remote:invoke:lan,wan"]
/remoting/** = authc, roles[b2bClient], perms["remote:invoke:lan,wan"]
2 changes: 1 addition & 1 deletion samples/guice/src/main/webapp/account/index.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
<p><a href="<c:url value="/logout"/>">Log out.</a></p>

</body>
</html>
</html>
2 changes: 1 addition & 1 deletion samples/guice/src/main/webapp/include.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
<%@ page import="org.apache.shiro.SecurityUtils" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
2 changes: 1 addition & 1 deletion samples/guice/src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
--%>

<%-- Forward the user to the home page --%>
<jsp:forward page="home.jsp"/>
<jsp:forward page="home.jsp"/>
2 changes: 1 addition & 1 deletion samples/guice/src/main/webapp/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ img {
color: black;
background: #eee;
border: thick black solid;
}
}
2 changes: 1 addition & 1 deletion samples/servlet-plugin/src/main/webapp/WEB-INF/shiro.ini
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ goodguy = winnebago:drive:eagle5
/login.jsp = authc
/logout = logout
/account/** = authc
/remoting/** = authc, roles[b2bClient], perms["remote:invoke:lan,wan"]
/remoting/** = authc, roles[b2bClient], perms["remote:invoke:lan,wan"]
2 changes: 1 addition & 1 deletion samples/servlet-plugin/src/main/webapp/account/index.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
<p><a href="<c:url value="/logout"/>">Log out.</a></p>

</body>
</html>
</html>
2 changes: 1 addition & 1 deletion samples/servlet-plugin/src/main/webapp/include.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
<%@ page import="org.apache.shiro.SecurityUtils" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
2 changes: 1 addition & 1 deletion samples/servlet-plugin/src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
--%>

<%-- Forward the user to the home page --%>
<jsp:forward page="home.jsp"/>
<jsp:forward page="home.jsp"/>
2 changes: 1 addition & 1 deletion samples/servlet-plugin/src/main/webapp/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ img {
color: black;
background: #eee;
border: thick black solid;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ shiro.loginUrl = /login.html
shiro.userNativeSessionManager = true

# disable URL session rewriting
shiro.sessionManager.sessionIdUrlRewritingEnabled = false
shiro.sessionManager.sessionIdUrlRewritingEnabled = false
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ <h1 th:text="'Account Info Page for: ' + ${name} + '!'"/>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
</body>
</html>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ <h1 th:text="${errors.status}"></h1>
</div>
</div>
</body>
</html>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@
<body>
<p>Nothing to see here, move along.</p>
</body>
</html>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ <h4><a th:href="@{/account-info}" class="btn btn-primary">Account info</a>&nbsp;
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
</body>
</html>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ <h3 class="panel-title">Login</h3>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
</body>
</html>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ shiro.loginUrl = /login.html
shiro.userNativeSessionManager = true

# disable URL session rewriting
shiro.sessionManager.sessionIdUrlRewritingEnabled = false
shiro.sessionManager.sessionIdUrlRewritingEnabled = false
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ <h1 th:text="'Account Info Page for: ' + ${name} + '!'"/>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
</body>
</html>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ <h1 th:text="${errors.status}"></h1>
</div>
</div>
</body>
</html>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@
<body>
<p>Nothing to see here, move along.</p>
</body>
</html>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ <h4><a th:href="@{/account-info}" class="btn btn-primary">Account info</a>&nbsp;
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
</body>
</html>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ <h3 class="panel-title">Login</h3>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
</body>
</html>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
#

logging.level.org.springframework.web=INFO
logging.level.org.hibernate=ERROR
logging.level.org.hibernate=ERROR
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,3 @@ public void updateUser(User user) {
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,3 @@ public void setPermissions(Set<String> permissions) {
}

}


Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,3 @@ public void setRoles(Set<Role> roles) {
}

}


Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,3 @@ protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principal
}

}

2 changes: 1 addition & 1 deletion samples/spring-hibernate/src/main/resources/ehcache.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@
timeToLiveSeconds="3600"
overflowToDisk="true"/>

</ehcache>
</ehcache>
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
<mapping class="org.apache.shiro.samples.sprhib.model.User"/>

</session-factory>
</hibernate-configuration>
</hibernate-configuration>
2 changes: 1 addition & 1 deletion samples/spring-hibernate/src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%-- Redirect to index page --%>
<c:redirect url="/s/home"/>
<c:redirect url="/s/home"/>
2 changes: 1 addition & 1 deletion samples/spring-hibernate/src/main/webapp/styles/sample.css
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,4 @@ a:hover {

.clearfix {
display: block;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@
</p>
</div>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion samples/spring-mvc/src/main/webapp/shiro.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ img {
color: black;
background: #eee;
border: thick #ccc solid;
}
}
1 change: 0 additions & 1 deletion samples/spring/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@
# specific language governing permissions and limitations
# under the License.
#

Loading