You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shiro.apache.org by Richard Mixon <rn...@custco.biz> on 2014/10/11 06:24:33 UTC

Does Shiro have a feature similar to Spring Security's hasIpAddress ?

I've seen a couple of similar questions - but just wanted to be a bit more
specific.

One half of our application is Spring based and they were able to do this
with a relatively simple statement like this:
        <intercept-url pattern="/someUrl" access="permitAll and
hasIpAddress('192.168.1.33')" />

Here's the reference if it helps:
http://docs.spring.io/spring-security/site/docs/3.0.x/reference/el-access.html

We are much  happier with Shiro in the other half of the application (it
uses Google Guice instead of Spring) - but the "hasIPAddress constraint
sure looked nice.

This is a pretty specialized requirement, but it does seem to come up from
time to time.

Is there a direct way to do this? If not some pointer's on where to start
would be appreciated.

Thank you much - Richard


-- 
Richard Mixon
Custom Computer Creations, L.L.C.
mobile: (480) 577-6834 office: (480) 614-3442
email: rnmixon@CustCo.biz <ma...@CustCo.biz>
Microsoft Partner ID: 1263725
The messages and documents transmitted with this notice contain
confidential information belonging to the sender. If you are not the
intended recipient of this information, you are hereby notified that any
disclosure, copying, distribution or use of the information is strictly
prohibited. If you have received this transmission in error, please notify
the sender immediately.