Re: JDBCUserDatabase
Andrew Jaquith <[email protected]> Thu, 30 Aug 2007 17:10:10 -0400
| Newsgroups | gmane.comp.java.jspwiki.user |
|---|---|
| Message-ID | <[email protected]> |
Swarup -- Janne is correct. JSPWiki generates roles automatically by virtue of a user's authentication status: "Anonymous", "Asserted" and "Authenticated" for example. For that reason, JSPWiki does not need to keep a separate roles table. So, what is the roles table for? The roles table is updated ONLY when the administrator is sharing user identities with the web container. That is the only reason the roles table exists -- so that if you wanted to, you could use JSPWiki to add users to, for example, Tomcat's JDBC user realm. (FYI, If you examine the source code for the class that does this, com.ecyrd.jspwiki.auth.user.JDBCUserDatabase, you'll see this quite clearly.) Andrew On Aug 30, 2007, at 5:02 PM, Janne Jalkanen wrote: >> displays username(login_name) and authenticated(role) but this is >> not being >> done. Can someone help ? > > Authenticated is a dynamic role which is assigned automatically > whenever you log in. So therefore "Authenticated" never shows in > the database. > > This is also true for "All", "Anonymous" and "Asserted". > > /Janne > _______________________________________________ > This is the Jspwiki-users mailing list, in which we discuss > thestable release (even-numbered, 2.4.x, 2.6.x), and user- > issues.For development discussion, please join jspwiki-dev. > http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users > http://www.jspwiki.org/JSPWikiMailingList