[system] / branches / rel-2-3-dev / webwork2 / lib / WeBWorK / Authen.pm Repository:
ViewVC logotype

Log of /branches/rel-2-3-dev/webwork2/lib/WeBWorK/Authen.pm

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 4396 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 24 21:07:52 2006 UTC (6 years, 8 months ago) by
File length: 20060 byte(s)
Diff to previous 4303 , to selected 522
This commit was manufactured by cvs2svn to create branch 'rel-2-3-dev'.

Revision 4303 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 26 22:09:19 2006 UTC (6 years, 9 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 20060 byte(s)
Diff to previous 4263 , to selected 522
add class($ce,$type) subroutine to determine correct authen module, docs

Revision 4263 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 15 14:07:31 2006 UTC (6 years, 10 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 18363 byte(s)
Diff to previous 4238 , to selected 522
load Apache2::Connection, move requires up to the top in a begin block.

Revision 4238 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 12 04:33:55 2006 UTC (6 years, 10 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 18246 byte(s)
Diff to previous 4192 , to selected 522
replace header_in with headers_in (Apache 2)

Revision 4192 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 29 23:20:48 2006 UTC (6 years, 10 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 18243 byte(s)
Diff to previous 4135 , to selected 522
Progress on Apache2 compatibility -- doesn't work yet.

I've gotten to the point where the login screen can be displayed, but
login will still fail. The issue that i'm currently working on is that
we modify $r->param values extensively in WeBWorK, and that is not
supported in Apache2::Request. I'm not sure why, and no workaround is
given. One solution is to wrap override param() in WeBWorK::Request, but
this would slow things down since the Apache2::Request param method is
written in C.

Revision 4135 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 19 15:39:51 2006 UTC (6 years, 11 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 17776 byte(s)
Diff to previous 4132 , to selected 522
Added HTTP-Basic authenticator for WeBWorK:

AuthenWeBWorK.pm - steals $ce/$authz/$db/$authen bootstrapping code from
the dispatcher, overrides Authen's get_credentials method (and clobbers
cookie methods and set_params)

Debug.pm - load WeBWorK::Contsants explicitly in case it isn't already
loaded

Authen.pm - added maybe_kill_cookie shim (so that it can be overridden
elsewhere)

Configure as follows:

<Location /some_protected_location>
 AuthName "My Protected Location"
 AuthType Basic
 PerlAuthenHandler Apache::AuthenWeBWorK
 PerlSetVar authen_webwork_root /path/to/webwork2
 PerlSetVar authen_webwork_course some_course_id
 require valid-user
</Location>

Revision 4132 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jun 17 21:35:22 2006 UTC (6 years, 11 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 17699 byte(s)
Diff to previous 4045 , to selected 522
print log messages to debug output

Revision 4045 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 12 18:50:11 2006 UTC (7 years, 1 month ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 17628 byte(s)
Diff to previous 4029 , to selected 522
New subclassable architecture. Should function identically to old
implementation (modulo bugs). verifyProctor has been replaced with an
Authen::Proctor subclass, which overrides several methods and consists
of about 30 real lines of code. Cool.

Revision 4029 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 21 22:00:29 2006 UTC (7 years, 3 months ago) by glarose
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 23057 byte(s)
Diff to previous 3973 , to selected 522
Clean up verifyProctor() in Authen.pm, improve proctor authorization
logging.

Revision 3973 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 25 23:13:56 2006 UTC (7 years, 3 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 22916 byte(s)
Diff to previous 3834 , to selected 522
forward-port from rel-2-2-dev: (update copyright date range -- 2000-2006.
this is probably overkill, since there are some files that were created
after 2000 and some files that were last modified before 2006.)

Revision 3834 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 19 03:42:05 2005 UTC (7 years, 5 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 22916 byte(s)
Diff to previous 3799 , to selected 522
graceful failure if needed data is not supplied

Revision 3799 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 6 21:11:07 2005 UTC (7 years, 5 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 22777 byte(s)
Diff to previous 3741 , to selected 522
remove specific login error mesasges -- log to login.log instead. some
messages leaked information. (i.e. "user not found" versus "incorrect
password".)

Revision 3741 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 7 21:17:41 2005 UTC (7 years, 6 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 21996 byte(s)
Diff to previous 3693 , to selected 522
add caching of verify() result, reorganize file, add docs.

Revision 3693 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Oct 8 22:07:39 2005 UTC (7 years, 7 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 20044 byte(s)
Diff to previous 3688 , to selected 522
disallow login of "dropped" practice users (bug #387). also don't show
Guest Login button if there are no "dropped" practice users.

Revision 3688 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 5 18:16:52 2005 UTC (7 years, 7 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 19710 byte(s)
Diff to previous 3658 , to selected 522
Implemented status system as per bug #743.

The status system consists of a new hash in the course environment,
%statuses, that maps status names (like "Enrolled", "Drop", "Audit") to
(a) a list of allowed abbreviations for the status and (b) a list of
behaviors the system should have when dealing with users who have the
status.

I didn't want to have to mangle that hash-of-hashes-of-arrays myself in
many modules, but I also didn't want to devote an entire module
(Status.pm) to it. So, I'm trying a little experiment: I've added them
as methods to WeBWorK::CourseEnvironment. My thinkint is that since all
the data for these operations comes from the course environment, so why
not have them be course environment methods? Here they are:

    status_abbrev_to_name($status_abbrev)
        Given the abbreviation for a status, return the name. Returns undef
        if the abbreviation is not found.

    status_name_to_abbrevs($status_name)
        Returns the list of abbreviations for a given status. Returns an
        empty list if the status is not found.

    status_has_behavior($status_name, $behavior)
        Return true if $status_name lists $behavior.

    status_abbrev_has_behavior($status_abbrev, $behavior)
        Return true if the status abbreviated by $status_abbrev lists
        $behavior.

Since I removed the previous $siteDefaults{status} hash from
global.conf, I have already switched modules that formerly used that
hash over to using the new methods:

Authen.pm: use status_abbrev_has_behavior($status, "allow_course_access")
to determine if a user should be allowed to log in.

Feedback.pm: look up status abbreviation using status_abbrev_to_name()
and print the result for the status field in the email.

Instructor.pm: use status_abbrev_has_behavior($status, "include_in_assignment")
to determine if a user should be included in an assignment.

UserList.pm and UsersAssignedToSet.pm: use status_abbrev_to_name() to
get name of CSS class.

Revision 3658 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 27 21:46:50 2005 UTC (7 years, 7 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 19502 byte(s)
Diff to previous 3657 , to selected 522
pointless confusion, while humorous, is not good for maintainability.

Revision 3657 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 27 21:44:01 2005 UTC (7 years, 7 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 19799 byte(s)
Diff to previous 3382 , to selected 522
formatting

Revision 3382 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 14 20:37:35 2005 UTC (7 years, 10 months ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 20058 byte(s)
Diff to previous 3380 , to selected 522
In the login log, this will get the host's name if apache has been
configured to do that, otherwise it should get the ip number, and if
that somehow fails, we note it in the login log instead of to the user.

Revision 3380 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 14 18:17:58 2005 UTC (7 years, 10 months ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 20071 byte(s)
Diff to previous 3377 , to selected 522
If HostnameLookups is off in Apache's httpd.conf, then remote_host returns
an undefined value.  Better than this fix would be to use get_remote_host,
but I couldn't get that to work on my system.

Revision 3377 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 14 13:15:27 2005 UTC (7 years, 10 months ago) by glarose
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 20038 byte(s)
Diff to previous 3366 , to selected 522
Preliminary commit of changes to add Gateway module.
This adds to WeBWorK
 - the ability to create versioned, timed problem sets ("gateway tests")
   for which all problems are displayed on a single page ("versioned"
   means that students can get multiple versions of the problem set),
 - the ability to create sets that draw problems from groups of
   problems, and
 - the ability to create sets that require a proctor login to start
   and grade.
Sets can be defined as gateway tests or proctored gateway tests from
the ProblemSetDetail page.

Not quite bug-free yet.  Known bugs include handling of problem values
on the Student Progress page (I think this may be a problem with
changing from sql database format where all entries were 'text' to
sql_single in ver 2.1, where they are integer), and a division by zero
error on the grades page (which may be the same problem).

Tests with a number of attempts per version greater than one haven't
been carefully tested, nor has scoring of gateway tests.

Revision 3366 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 12 00:52:47 2005 UTC (7 years, 10 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 16772 byte(s)
Diff to previous 3125 , to selected 522
added login logging and site_checkPassword support. closes bug #729. see
that bug for more information.

Revision 3125 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jan 29 01:18:33 2005 UTC (8 years, 3 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 14418 byte(s)
Diff to previous 3004 , to selected 522
Adds checks to make sure that the multiple user problem is really gone.

Revision 3004 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 19 19:13:53 2004 UTC (8 years, 6 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 13827 byte(s)
Diff to previous 2995 , to selected 522
added "login" permission, handling code. also fixed some heinous
formatting.

Revision 2995 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 11 15:40:21 2004 UTC (8 years, 6 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 13812 byte(s)
Diff to previous 2899 , to selected 522
removed FIXME comment that is no longer needed.

Revision 2899 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 11 23:40:04 2004 UTC (8 years, 7 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 13826 byte(s)
Diff to previous 2873 , to selected 522
If the users status is undefined it is set to C  AND
it is now saved back to the database.

Revision 2873 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Oct 9 03:03:13 2004 UTC (8 years, 7 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 13739 byte(s)
Diff to previous 2843 , to selected 522
Check that userRecord status has been properly defined.

Revision 2843 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 29 15:59:12 2004 UTC (8 years, 7 months ago) by toenail
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 13636 byte(s)
Diff to previous 2752 , to selected 522
Modified flow of verify() so that a user doesn't have to login twice
if they have a cookie with an expired key.

Revision 2752 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 8 16:43:53 2004 UTC (8 years, 8 months ago) by toenail
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 13484 byte(s)
Diff to previous 2749 , to selected 522
Fixes minor error in last submit.  My bad.

Revision 2749 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 8 15:49:24 2004 UTC (8 years, 8 months ago) by toenail
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 13469 byte(s)
Diff to previous 1885 , to selected 522
merging changes from patches

Original message:
Status was being checked for 'C' only and counting anything else
as a dropped student.  The check now uses the more abstract siteDefaults
variable from global.conf and admits auditing students as well

Also removed redundant second status check that could never be reached.

Revision 1885 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 15 20:17:35 2004 UTC (9 years, 2 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 13860 byte(s)
Diff to previous 1777 , to selected 522
Authen and Authz are now passed only a WeBWorK::Request.

Revision 1777 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 5 00:05:11 2004 UTC (9 years, 3 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 13766 byte(s)
Diff to previous 1724 , to selected 522
Closes bugs #345 and #293. From bugzilla: "This should work now. The
docs for Apache::Cookie claim that the module will accept relative
expiration dates such as "+30D" and "+1H", but apparently, this causes
the expiration date to be set to "now", which Galeon apparently didn't
mind but caused Safari and MSIE to throw the cookie away."

Revision 1724 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jan 18 03:39:06 2004 UTC (9 years, 4 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 12489 byte(s)
Diff to previous 1721 , to selected 522
Fixed some errors in my first fix for Authen.pm
The goal is to make sure that the existance of a users
record and of a users status is checked before it is used.

Authen.pm could use some cleaning up.  Probably best to do this
when thinking about how one would plug this into LDAP or to
moodle's authenticator.

Revision 1721 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jan 18 00:04:59 2004 UTC (9 years, 4 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 12493 byte(s)
Diff to previous 1719 , to selected 522
If the users status has not been defined it is set to 'C'.
I'm not sure why the status might be undefined, but this seems
to be the least damaging assumption.

A warning is issued.

Revision 1719 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jan 17 17:05:53 2004 UTC (9 years, 4 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 11663 byte(s)
Diff to previous 1694 , to selected 522
Users who have been dropped from the course can not login with a password.

this addresses bug: 301

Revision 1694 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jan 3 17:12:55 2004 UTC (9 years, 4 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 11258 byte(s)
Diff to previous 1685 , to selected 522
Modified line at 344 to check whether $key is defined.
If $key was not defined then there was a reported error
in defining $unusedCookieMatched.

--Mike

Revision 1685 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 25 04:17:18 2003 UTC (9 years, 4 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 11159 byte(s)
Diff to previous 1684 , to selected 522
We now send a cookie if any of these conditions are met:
(a) a cookie was used for authentication
(b) a cookie was sent but not used for authentication, and the credentials
used for authentication were the same as those in the cookie
(c) the user asked to have a cookie sent and is not a guest user.

Now whenever we're not sending a "real" cookie, we send a cookie
with no user or key data that expires "one day ago".

Revision 1684 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 24 00:59:25 2003 UTC (9 years, 5 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 9360 byte(s)
Diff to previous 1683 , to selected 522
added automatic guest logins:

With the presence of a "login_practice_user" paramter, Authen.pm will
log the user in using the first unused practice user account. Login.pm
now displays a "Guest Login" button that sends the above parameter, but
only when the course has practice users. Currently, cookies are not sent
for practice users.

Revision 1683 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 23 06:03:33 2003 UTC (9 years, 5 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 8712 byte(s)
Diff to previous 1682 , to selected 522
added cookie support for authenticaion. the "WeBWorKAuthentication"
cookie is used to retrieve the "user" and "key" parameters. the cookie
is sent if a "send_cookie" parameter is present, and persists for 30
days unless canceled by an explicit "logout".

Revision 1682 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 23 05:25:09 2003 UTC (9 years, 5 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 7262 byte(s)
Diff to previous 1663 , to selected 522
small amount of cleanup (to prepare for cookie patch)

Revision 1663 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 9 01:12:32 2003 UTC (9 years, 5 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 7377 byte(s)
Diff to previous 1636 , to selected 522
Normalized headers. All files now contain the text below as a header.
This is important since all files now (a) use the full name of the
package, (b) assign copyright to "The WeBWorK Project", (c) give the
full path of the file (relative to CVSROOT) instead of simply the file
name, and (d) include license and warranty information.

Here is the new header:

################################################################################
# WeBWorK Online Homework Delivery System
# Copyright © 2000-2003 The WeBWorK Projcct, http://openwebwork.sf.net/
# $CVSHeader$
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of either: (a) the GNU General Public License as published by the
# Free Software Foundation; either version 2, or (at your option) any later
# version, or (b) the "Artistic License" which comes with this package.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See either the GNU General Public License or the
# Artistic License for more details.
################################################################################

Revision 1636 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 19 18:44:47 2003 UTC (9 years, 6 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 6720 byte(s)
Diff to previous 912 , to selected 522
added code to check for undef return values from DB "get" calls.

Revision 912 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 27 23:00:06 2003 UTC (9 years, 11 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 6648 byte(s)
Diff to previous 827 , to selected 522
authen now eats "key not found" errors when deleting keys.
-sam

Revision 827 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 13 18:14:27 2003 UTC (10 years ago) by malsyned
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 6630 byte(s)
Diff to previous 825 , to selected 522
Made the key expiration error message more user-friendly
--Dennis

Revision 825 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 12 23:49:50 2003 UTC (10 years ago) by malsyned
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 6590 byte(s)
Diff to previous 817 , to selected 522
Fixed BUG #16:
"Logging out from a practice user and logging back in doesn't work
right"
http://webwork3/bugzilla/show_bug.cgi?id=16
--Dennis

Revision 817 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 23 06:39:03 2003 UTC (10 years, 1 month ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 6397 byte(s)
Diff to previous 809 , to selected 522
rewrote these modules to use the WWDBv2 library. rewrote the Authen.pm
verify function to (hopefully) be more readable.
-sam

Revision 809 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 17 21:30:57 2003 UTC (10 years, 1 month ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 4134 byte(s)
Diff to previous 562 , to selected 522
changed the name of the "courseEnvironment" field in the
ContentGenerator object to "ce", to match the style and conciesness of
the existing "r" and new "db" fields.
-sam

Revision 562 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 27 23:53:42 2002 UTC (10 years, 7 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 4164 byte(s)
Diff to previous 522
- created macros/IO.pl, which is loaded with no opmask by PG.pm. It is a copy
  of WeBWorK::PG::IO.pm, with some changes to make it work as a macro package.
  The translator no longer shares IO.pm's functions with the safe compartment.
  This is a BAD THING, and should be reconsidered when the Translator is
  revised.
- Changed many (but not all) checks for HTML or HTML_tth modes to match /^HTML/
  in the macros.
- changed &header to &head in Problem.pm
- Added problem environment variables for gif2eps and png2eps and modified
  &dangerousMacros::alias to use them
- fixed MOST of the harmless warnings in the system. there's still the "Use
  of uninitialized value in null operation" warning in template(), tho.

Still to come:

- make images in PDFs work
- fix TTH mode character encodings on mac (maybe)
- have logout button invalidate key
- Pretty die messages (from outside of the translator)
- Feedback - need nice modular way of sending email
- Options - email address and password

Revision 522 - (view) (download) (as text) (annotate) - [selected]
Modified Thu Aug 29 17:42:39 2002 UTC (10 years, 8 months ago) by malsyned
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 4167 byte(s)
Diff to previous 494
Debugging of the templating system and some other misc. changes.
--dennis

Revision 494 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 21 18:31:20 2002 UTC (10 years, 9 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 4074 byte(s)
Diff to previous 455 , to selected 522
updated copyright header.
-sam

Revision 455 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 5 21:34:18 2002 UTC (10 years, 9 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 4096 byte(s)
Diff to previous 441 , to selected 522
"normalized" files:
- (c) header on all files
- standard order of preamble lines:
	1. (c) header
	2. package PACKAGENAME;
	3. short summary of the package (pod's NAME section)
	4. use - pragmatic modules
	5. use - standard perl modules
	6. use - CPAN modules
	7. use - webwork modules
- ALWAYS use strict and use warnings
- use "use base" rather than "our @ISA"
so now we can be happy.
-sam

Revision 441 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 25 21:58:22 2002 UTC (10 years, 9 months ago) by malsyned
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 3775 byte(s)
Diff to previous 349 , to selected 522
Added use strict and use warnings, then cleaned up much of the mess that
revealed.
--Dennis

Revision 349 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 7 21:37:33 2002 UTC (10 years, 11 months ago) by malsyned
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 3723 byte(s)
Diff to previous 343 , to selected 522
The framework for the template system has been laid in ContentGenerator.
Login.pm is the first module converted to work with that framework.
--Dennis

Revision 343 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 5 20:20:38 2002 UTC (10 years, 11 months ago) by malsyned
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 2926 byte(s)
Diff to previous 335 , to selected 522
GDBM Authorization works fully.
More specifically:
    Users must authenticate if they don't provide user/key data.
    Fast login is requested automatically if a key has timed out.
A framework is in place to add other auth backends easily.

Revision 335 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 31 22:39:17 2002 UTC (10 years, 11 months ago) by malsyned
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 2973 byte(s)
Diff to previous 329 , to selected 522
-Replaced the "sample" code with actual calls into the database code.  This
 would be very close to finished code, except that it suffers from a bug
 that has so far proved intractable to Sam and myself.  An email will be
 forthcoming detailing the bug.  Quite likely, the bug is not specifically
 in this file, and in the best case this file won't need to be changed much
 for a long time, unless I decide to change the interface for style reasons.

Revision 329 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 30 22:12:51 2002 UTC (10 years, 11 months ago) by malsyned
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 2835 byte(s)
Diff to previous 323 , to selected 522
-Just a quick end of the day commit.  No big changes to report.
--Dennis

Revision 323 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 30 20:34:46 2002 UTC (10 years, 11 months ago) by malsyned
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 2832 byte(s)
Diff to previous 313 , to selected 522
-Fixed a few interfaces so that they make more sense (I hope)
-Added preliminary templating code to ContentGenerator
-Added a lot of logic to the dispatcher (WeBWorK.pm).  More to come, too.
-Moved lots of things over to CGI.pm, for my convenience while prototyping
-Added preliminary examples of ProblemSets, ProblemSet, and Problem.
 Problem.pm will some day go on to do what ProcessProblem8 does right now,
 so keep your eyes on that one.
--Dennis

Revision 313 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 28 21:23:45 2002 UTC (10 years, 11 months ago) by malsyned
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 2325 byte(s)
Diff to previous 305 , to selected 522
- ContentGenerator.pm is now officially the superclass to all modules called
  by the dispatcher to generate content.
- Authen.pm now has a single point of exit, which makes it easier to read,
  debug, and modify
- Login.pm is now a subclass of ContentGenerator, and apart from the HTML,
  is in it's final form.
- All code has been commented up
- The authentication wrapper is now a working demonstration.  Anyone could
  stick it on a webserver and try it out.  The database code isn't written,
  so it authenticates against hardcoded strings (username: dennis,
  passwd: helloworld), but this at least proves that the system is workable.

--Dennis

Revision 305 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 23 20:23:10 2002 UTC (11 years ago) by malsyned
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 456 byte(s)
Diff to previous 290 , to selected 522
Login.pm is mostly done, except that the embedded HTML has to be replaced at
some point wiht code from HTML_glue or whatever new templating we implement.

Authen.pm and Test.pm are useful stubs to demonstrate how authentication wraps
around every request transparently.

ContentGenerator.pm may become a superclass of all classes instantiated by
the dispatcher, or it my whither away.  Right now, it doesn't do anything,
including compile.

Revision 290 - (view) (download) (as text) (annotate) - [select for diffs]
Added Wed May 22 20:44:45 2002 UTC (11 years ago) by malsyned
Original Path: trunk/webwork2/lib/WeBWorK/Authen.pm
File length: 0 byte(s)
Diff to selected 522
Mostly changes to WeBWorK.pm, making it actually be a dispatcher, instead of a dummy

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9