Tags:
create new tag
, view all tags

Question

Hi. I am looking for some help modifying the perl modules to simulate .htaccess authentication with IIS (I realise I cannot use Basic Authentication as this requires user accounts set up on the server). Specifically I need to know how to preserve the current state while I redirect users to a login page, and then go back to where the user was.

I am inserting a hook in the Access module, which looks at the script called, looks up whether valid user is required for that script in .htaccess file, and if so, whether current user is TWikiGuest. If this is so, I want save all the current state, redirect to a page I set up in Twiki web called TwikiLogin, do login for user, and then send them back to where they were, refreshing their old state. eg if they click on edit for a topic and they are not logged in, I should redirect to login, and then send them to the edit page. The trick is if they are in the middle of an action, such as previewing their changes made. Somehow I need to keep track of these changes made, and put them back into the same state.

I am proficient at Web programming...but in Java! This is my first attempt at perl/cgi, so help would be MUCH appreciated! I have do the check stuff, and forwarding to login page, but I am stuck at how to preserve the state. Can I pass the current query somehow as a hidden field in the form?

.

  • TWiki version: 2001
  • Web server: IIS 5.0
  • Server OS: NT
  • Web browser: IE
  • Client OS: Various

Many thanks,

-- DavidHay - 04 Dec 2001

Answer

.

Topic revision: r2 - 2002-01-29 - TWikiAdmin
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.