On Thu, Dec 29, 2011 at 5:12 AM, angelochen <angelochen...@yahoo.com.hk> wrote: > I follow the guide and added this to AppModule: > > public static void contributeWebSecurityManager(Configuration<Realm> > configuration) { > ExtendedPropertiesRealm realm = new > ExtendedPropertiesRealm("classpath:shiro-users.properties"); > configuration.add(realm); > } > now, how to specify users in the shiro-users.properties? the default was a > INI file, but Tynamo's doc says INI file support has been removed. > also, how to use that to protect a page, need some simple sample codes, > thanks
See the documentation for Shiro's PropertiesRealm (that ExtendedPropertiesRealm inherits from): http://shiro.apache.org/static/current/apidocs/org/apache/shiro/realm/text/PropertiesRealm.html Also, the security module's internal test application uses the ExtendedPropertiesRealm, see http://svn.codehaus.org/tynamo/trunk/tapestry-security/src/test/resources/shiro-users.properties for an example. Kalle --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org