view or viewauth in it.
The Plugin is quite simple, it uses TWiki::Func::isGuest to check if the page is authenticated or not. This relies on the fact that URL linking to other topics use the view CGI and authenticated pages are referred from the view CGI to the viewauth CGI (if installed). Of course one could make a page appear authenticated by adding auth to the URL (or linking to a URL with viewauth) but this won't happen on the next page if the user acts normally and clicks on the links.
| You type | Simulated locked | Simulated unlocked | If installed |
|---|---|---|---|
| %SECURITY% | | | %SECURITY% |
%<plugin>_<setting>%, i.e. %INTERWIKIPLUGIN_SHORTDESCRIPTION%
data/debug.txt)
SecurityPlugin.zip in your twiki installation directory. Content: | File: | Description: |
|---|---|
data/TWiki/SecurityPlugin.txt | Plugin topic |
data/TWiki/SecurityPlugin.txt,v | Plugin topic repository |
lib/TWiki/Plugins/SecurityPlugin.pm | Plugin Perl module |
pub/TWiki/SecurityPlugin/unlocked.gif | Unlocked lock image |
| Plugin Author: | TWiki:Main.MichaelGindonis |
| Plugin Version: | 13 Jul 2005 (V1.000) |
| Change History: | |
| 13 Jul 2005: | Initial version |
| TWiki Dependency: | $TWiki::Plugins::VERSION 1.022 |
| CPAN Dependencies: | none |
| Other Dependencies: | none |
| Perl Version: | 5.005 |
| License: | GPL (GNU General Public License) |
| TWiki:Plugins/Benchmark: | GoodStyle 100%, FormattedSearch 100%, SecurityPlugin 100% |
| Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/SecurityPlugin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/SecurityPluginDev |
| Appraisal: | http://TWiki.org/cgi-bin/view/Plugins/SecurityPluginAppraisal |
| I | Attachment | Action | Size | Date | Who | Comment |
|---|---|---|---|---|---|---|
| | SecurityPlugin.zip | manage | 6.8 K | 13 Jul 2005 - 16:04 | MichaelGindonis | Security Plugin zip file |