Log of /branches/rel-2-1-a1/webwork2/lib/WeBWorK/Authen.pm
Parent Directory
Revision
2294 -
(
view)
(
download)
(
as text)
(
annotate)
-
[selected]
Modified
Fri Jun 11 16:44:39 2004 UTC (8 years, 11 months ago) by
File length: 13860 byte(s)
Diff to
previous 1885
This commit was manufactured by cvs2svn to create branch 'rel-2-1-a1'.
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 2294
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 2294
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
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 2294
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 2294
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
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 2294
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
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
,
to
selected 2294
- 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
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 2294
"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
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 2294
-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
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 2294
-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 2294
- 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 2294
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.
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.