You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shiro.apache.org by Sashika <sa...@gmail.com> on 2015/01/23 07:27:27 UTC

setting true/false for permissionsLookupEnabled

Using shiro 1.2.3.
I extended the JdbcRealm and used the new class in the shiro.ini. In the
ini file I set the extendedRealm.permissionsLookupEnabled = false. But
shiro keeps calling doGetAuthorizationInfo regardless of this setting.

The only option to skip this is override the doGetAuthorizationInfo and
return null. Any reason why permissionsLookupEnabled property is not doing
anything?

Regards
Sashika.

Re: setting true/false for permissionsLookupEnabled

Posted by Alexander Openkowski <op...@googlemail.com>.
I think those .ini configurations / injections work only for classes in
specific packages ("org.apache.shiro..."),  but I could also be wrong. I
just feel like I saw this once in the source somewhere! Could you try to
put your extending class into the same package structure as the JdbcRealm
("org.apache.shiro.realm.jdbc") and see if it works then?

Regards
Alex

On Fri, Jan 23, 2015 at 7:27 AM, Sashika <sa...@gmail.com> wrote:

> Using shiro 1.2.3.
> I extended the JdbcRealm and used the new class in the shiro.ini. In the
> ini file I set the extendedRealm.permissionsLookupEnabled = false. But
> shiro keeps calling doGetAuthorizationInfo regardless of this setting.
>
> The only option to skip this is override the doGetAuthorizationInfo and
> return null. Any reason why permissionsLookupEnabled property is not doing
> anything?
>
> Regards
> Sashika.
>