Hi Sven, The PropertiesRealm is able to read users/roles/permissions from a .properties file. And although it isn't the case yet, I have a feeling the .ini configuration mechanism will deprecate the PropertiesRealm because it will be far easier to define these things in the shiro.ini file.
That is the following configuration: [main] ... # securityManager configuration here ... [users] jdoe = passwd1, role1, role2 [roles] role1 = printer:*:*, project:12345:edit, ... role2 = ... should automatically create an IniRealm and use it in the SecurityManager configuration. HTH, Les On Thu, Dec 3, 2009 at 7:18 PM, javadude <[email protected]> wrote: > > Hi ! > > First: Shiro is a great library ! I hope it will grow even more under > Apache. > > I am walking through some of the few samples and tutorials. While the use of > the security functionality is rather easy (login, logout, haspermission,..) > the setup might be bit more complex due the missing "how-to's". I started to > collect all information while getting-started (shiro together with > netbeans,glassfish) and will share this as soon as it would be complete. > > While my development focus is on web applications, I also will deploy > standalone applications. > > Is there any information or snippet how to read the user,roles,pw from a > local file ? > I tried to use the standalone sample, but it refers to a Class > IniConfiguration which seems to be deprecated in the incubator version. > > Cheers > Sven > -- > View this message in context: > http://n2.nabble.com/Standalone-Application-with-text-ini-files-tp4109887p4109887.html > Sent from the Shiro User mailing list archive at Nabble.com. >
