fsfdrupalauth.git
19 months agoallow staff to access board forum
Andrew Engelbrecht [Wed, 26 Apr 2023 17:05:42 +0000 (13:05 -0400)]
allow staff to access board forum

19 months agoadding some debug statments that i've been using
Andrew Engelbrecht [Tue, 25 Apr 2023 21:53:23 +0000 (17:53 -0400)]
adding some debug statments that i've been using

19 months agomake the cutoff donation amount a config variable
Andrew Engelbrecht [Tue, 25 Apr 2023 21:51:33 +0000 (17:51 -0400)]
make the cutoff donation amount a config variable

19 months agoremove redundant gift membership check
Andrew Engelbrecht [Tue, 25 Apr 2023 21:50:43 +0000 (17:50 -0400)]
remove redundant gift membership check

we don't need to check for gift memberships in particular in the given
time frame, because they're automatically included in the general
membership check for that time frame.

19 months agoan old membership is also valid for discussion
Andrew Engelbrecht [Tue, 25 Apr 2023 20:28:38 +0000 (16:28 -0400)]
an old membership is also valid for discussion

(along with a current membership)

19 months agofixed references to undeclared / undefined vars
Andrew Engelbrecht [Tue, 25 Apr 2023 19:28:32 +0000 (15:28 -0400)]
fixed references to undeclared / undefined vars

19 months agoflattened conditionals (for simpler logic)
Andrew Engelbrecht [Tue, 25 Apr 2023 18:59:28 +0000 (14:59 -0400)]
flattened conditionals (for simpler logic)

19 months agomore specific debug output
Andrew Engelbrecht [Tue, 25 Apr 2023 18:43:40 +0000 (14:43 -0400)]
more specific debug output

19 months agofix bug in date comparisons
Andrew Engelbrecht [Tue, 25 Apr 2023 18:43:33 +0000 (14:43 -0400)]
fix bug in date comparisons

19 months agoreorganizing config example
Andrew Engelbrecht [Tue, 25 Apr 2023 18:43:18 +0000 (14:43 -0400)]
reorganizing config example

19 months agocheck for discussion process access
Andrew Engelbrecht [Tue, 25 Apr 2023 16:40:58 +0000 (12:40 -0400)]
check for discussion process access

19 months agosimplification for nomination process access
Andrew Engelbrecht [Tue, 25 Apr 2023 16:39:57 +0000 (12:39 -0400)]
simplification for nomination process access

19 months agouse case-insensitive check for is_fsf_staff check
Andrew Engelbrecht [Mon, 24 Apr 2023 20:25:21 +0000 (16:25 -0400)]
use case-insensitive check for is_fsf_staff check

19 months agooption to disable nomination process status check
Andrew Engelbrecht [Mon, 24 Apr 2023 20:23:17 +0000 (16:23 -0400)]
option to disable nomination process status check

this allows us to skip some expensive checks if we're not currently
using them

19 months agoclean up, reorder logic for nomination process
Andrew Engelbrecht [Mon, 24 Apr 2023 20:21:23 +0000 (16:21 -0400)]
clean up, reorder logic for nomination process

this should run faster in most cases by making later queries not run if
the user is not a member

22 months agoMerge remote-tracking branch 'origin/master'
Andrew Engelbrecht [Thu, 5 Jan 2023 23:42:32 +0000 (18:42 -0500)]
Merge remote-tracking branch 'origin/master'

22 months agoMerge branch 'dev'
Andrew Engelbrecht [Thu, 5 Jan 2023 23:40:21 +0000 (18:40 -0500)]
Merge branch 'dev'

Deploying code for extended membership status checking

22 months agoupdated bootstrap.inc from Drupal
Andrew Engelbrecht [Thu, 5 Jan 2023 23:36:55 +0000 (18:36 -0500)]
updated bootstrap.inc from Drupal

2 years agobump version date of upstream SSP release
Andrew Engelbrecht [Thu, 7 Jul 2022 22:19:51 +0000 (18:19 -0400)]
bump version date of upstream SSP release

2 years agobump version date of upstream SSP release
Andrew Engelbrecht [Thu, 7 Jul 2022 22:19:51 +0000 (18:19 -0400)]
bump version date of upstream SSP release

2 years agoadhoc group access should not require membership
Andrew Engelbrecht [Tue, 24 May 2022 16:31:26 +0000 (12:31 -0400)]
adhoc group access should not require membership

access via the the adhoc civi group should not require an associte
membership, because the civi group should be authoritative on its own.
this commit fixes that bug.

2 years agoadded custom favicon to our ssp theme
root [Thu, 28 Apr 2022 20:53:41 +0000 (16:53 -0400)]
added custom favicon to our ssp theme

2 years agoadded custom favicon to our ssp theme
root [Thu, 28 Apr 2022 20:53:41 +0000 (16:53 -0400)]
added custom favicon to our ssp theme

2 years agoanalyze memberships that started before time frame
Andrew Engelbrecht [Wed, 27 Apr 2022 20:08:09 +0000 (16:08 -0400)]
analyze memberships that started before time frame

... and that continued into a given time frame. this way someone who
bought an annual membership 6.5 years ago will be considered a member as
of 5 years ago. donation are considred in isolation from each other, so
overlapping donations are not cumulative. we do calculate how much the
donation / membership would last based on the amount in a given donation
relative to the base monthly rate for associate and student associate
members.

2 years agocode cleanup (break apart long lines)
Andrew Engelbrecht [Thu, 21 Apr 2022 14:34:25 +0000 (10:34 -0400)]
code cleanup (break apart long lines)

2 years agotest group memberhip for nomination_process attr
Andrew Engelbrecht [Wed, 20 Apr 2022 21:56:52 +0000 (17:56 -0400)]
test group memberhip for nomination_process attr

as a fallback criteria, being in an adhoc group and currently a member
allows for access to the candidate discussion forum

2 years agoexplicitly parse integer from string
Andrew Engelbrecht [Wed, 20 Apr 2022 20:08:37 +0000 (16:08 -0400)]
explicitly parse integer from string

2 years agoclean up of code, in particular: hard coded values
Andrew Engelbrecht [Wed, 20 Apr 2022 20:03:09 +0000 (16:03 -0400)]
clean up of code, in particular: hard coded values

2 years agoalso check for gift memberships
Andrew Engelbrecht [Wed, 20 Apr 2022 18:31:20 +0000 (14:31 -0400)]
also check for gift memberships

when determining nomination process eligibility

2 years agoallow test trxns to pass board search criteria
Andrew Engelbrecht [Wed, 20 Apr 2022 18:27:12 +0000 (14:27 -0400)]
allow test trxns to pass board search criteria

only fsf staff should have these, and not filtering them out makes it
easier to test criteria for the nomination_process attribute.

2 years agocomment and function name change
Andrew Engelbrecht [Tue, 19 Apr 2022 22:53:34 +0000 (18:53 -0400)]
comment and function name change

for clarification

2 years agochanges to board nomination participation rules
Andrew Engelbrecht [Tue, 19 Apr 2022 22:47:53 +0000 (18:47 -0400)]
changes to board nomination participation rules

mostly changing a hard cutoff date for a comparison of a sum total of
contributions over a time period

2 years agoRename CAS group name based on function
Andrew Engelbrecht [Tue, 19 Apr 2022 21:28:12 +0000 (17:28 -0400)]
Rename CAS group name based on function

The check we'll eventually use is more specific than whether they are a
long term member, so we shouldn't use that name.

2 years agovarious corrections for long-term member check
Andrew Engelbrecht [Fri, 8 Apr 2022 21:16:34 +0000 (17:16 -0400)]
various corrections for long-term member check

2 years agoattribute to distinguish long-term members
Andrew Engelbrecht [Fri, 8 Apr 2022 20:09:27 +0000 (16:09 -0400)]
attribute to distinguish long-term members

this is an early version of the feature that still needs some testing.
the cutoff date and query must be set in the authsources.php file.

2 years agoadd aggregate 'groups_list' attribute
Andrew Engelbrecht [Wed, 2 Feb 2022 00:31:06 +0000 (19:31 -0500)]
add aggregate 'groups_list' attribute

for connecting to the member forum

2 years agocorrected license string in composer.json
Andrew Engelbrecht [Mon, 31 Jan 2022 21:55:40 +0000 (16:55 -0500)]
corrected license string in composer.json

2 years agofooter: our code contains modifications, not a full fork
Andrew Engelbrecht [Mon, 31 Jan 2022 21:03:44 +0000 (16:03 -0500)]
footer: our code contains modifications, not a full fork

2 years agoformalized copyright notice on landing page
Andrew Engelbrecht [Mon, 31 Jan 2022 20:24:48 +0000 (15:24 -0500)]
formalized copyright notice on landing page

there is supposed to be a standard order of information

2 years agoh1, h2, etc theme color tweak
Andrew Engelbrecht [Fri, 28 Jan 2022 21:37:14 +0000 (16:37 -0500)]
h1, h2, etc theme color tweak

2 years agoOverride JS file so we can in-line license tags
root [Fri, 28 Jan 2022 21:12:46 +0000 (16:12 -0500)]
Override JS file so we can in-line license tags

This JS file appears to be the only one we need.

2 years agoadded a sub-heading for login page
Andrew Engelbrecht [Fri, 28 Jan 2022 20:53:37 +0000 (15:53 -0500)]
added a sub-heading for login page

2 years agoAdding attribution to FSF in footer
Andrew Engelbrecht [Fri, 28 Jan 2022 17:52:51 +0000 (12:52 -0500)]
Adding attribution to FSF in footer

2 years agoProperly describe upstream license, and file changes
Andrew Engelbrecht [Fri, 28 Jan 2022 17:46:19 +0000 (12:46 -0500)]
Properly describe upstream license, and file changes

2 years agoChange / relabel licenses used by this module
Andrew Engelbrecht [Fri, 28 Jan 2022 17:28:03 +0000 (12:28 -0500)]
Change / relabel licenses used by this module

Changing from GPL-3.0-or-later to LGPL-2.1-or-later, for the sake of
license compatibility, in case any upstream file is ever deemed to be
LGPL-2.1-only.

Moving The Drupal copyright notices to README.md

2 years agoMore documentation about fsfdrupalauth
Andrew Engelbrecht [Tue, 25 Jan 2022 19:23:29 +0000 (14:23 -0500)]
More documentation about fsfdrupalauth

2 years agocreate option to translate "log out" string
Andrew Engelbrecht [Wed, 12 Jan 2022 20:21:13 +0000 (15:21 -0500)]
create option to translate "log out" string

2 years agofixed comments about pipes with child process
Andrew Engelbrecht [Fri, 7 Jan 2022 17:55:45 +0000 (12:55 -0500)]
fixed comments about pipes with child process

2 years agoreplace tabs with spaces
Andrew Engelbrecht [Fri, 7 Jan 2022 17:47:54 +0000 (12:47 -0500)]
replace tabs with spaces

for consistent indentation regardless of tabstop size

2 years agoadd informational headers to extlib files
Andrew Engelbrecht [Fri, 7 Jan 2022 17:33:21 +0000 (12:33 -0500)]
add informational headers to extlib files

both of these files are taken from Drupal 7

2 years agoupdate version of extlib/bootstrap.inc
Andrew Engelbrecht [Fri, 7 Jan 2022 17:32:05 +0000 (12:32 -0500)]
update version of extlib/bootstrap.inc

there is a newer version in upstream Drupal

2 years agocheck whether $result is a string
Andrew Engelbrecht [Fri, 7 Jan 2022 17:20:14 +0000 (12:20 -0500)]
check whether $result is a string

stream_get_contents() might return false, and we should not implicitly
convert that to a string

2 years agodon't accept password if there is stderr
Andrew Engelbrecht [Fri, 7 Jan 2022 17:09:07 +0000 (12:09 -0500)]
don't accept password if there is stderr

in case there is some unexpected error like an undefined variable, with
a 0 return code, we want to reject the login

2 years agocheck for invalid extra lines of input
Andrew Engelbrecht [Fri, 7 Jan 2022 16:56:34 +0000 (11:56 -0500)]
check for invalid extra lines of input

only one line of input is valid for the glue code between the ssp lib
and the drupal libs used for authentication

2 years agooverride footer
Andrew Engelbrecht [Wed, 5 Jan 2022 15:18:44 +0000 (10:18 -0500)]
override footer

2 years agomore icon size theming (for slow loading imgs)
Andrew Engelbrecht [Mon, 27 Dec 2021 23:18:33 +0000 (18:18 -0500)]
more icon size theming (for slow loading imgs)

2 years agomore theming for our module
Andrew Engelbrecht [Mon, 27 Dec 2021 23:12:59 +0000 (18:12 -0500)]
more theming for our module

2 years agodon't resize login icon element upon img load
Andrew Engelbrecht [Mon, 27 Dec 2021 22:52:48 +0000 (17:52 -0500)]
don't resize login icon element upon img load

3 years agosome basic theming of the site
root [Wed, 1 Dec 2021 22:07:45 +0000 (17:07 -0500)]
some basic theming of the site

to look like our theme on rubycas

3 years agoupdated the text at the bottom of the login screen
root [Fri, 19 Nov 2021 22:22:33 +0000 (17:22 -0500)]
updated the text at the bottom of the login screen

to make it similar to what we have on the current cas.fsf.org

3 years agoadded the upstream login screen template
root [Fri, 19 Nov 2021 22:22:00 +0000 (17:22 -0500)]
added the upstream login screen template

3 years agotextual space changes
root [Fri, 19 Nov 2021 21:14:14 +0000 (16:14 -0500)]
textual space changes

3 years agoadd a logout link on loggedin page
root [Fri, 19 Nov 2021 21:13:42 +0000 (16:13 -0500)]
add a logout link on loggedin page

3 years agoprint user name on cas login status page
root [Fri, 19 Nov 2021 20:32:01 +0000 (15:32 -0500)]
print user name on cas login status page

3 years agoprepare to print user name on loggedIn page
root [Fri, 19 Nov 2021 19:20:58 +0000 (14:20 -0500)]
prepare to print user name on loggedIn page

3 years agoadding upstream loggedIn.php template
root [Fri, 19 Nov 2021 19:20:15 +0000 (14:20 -0500)]
adding upstream loggedIn.php template

3 years agouse our custom css theme
Andrew Engelbrecht [Fri, 19 Nov 2021 18:58:53 +0000 (13:58 -0500)]
use our custom css theme

3 years agoadding an initial css file, a copy of default.css
Andrew Engelbrecht [Fri, 19 Nov 2021 18:58:27 +0000 (13:58 -0500)]
adding an initial css file, a copy of default.css

3 years agocreate fsf theme with upstream header.php
Andrew Engelbrecht [Fri, 19 Nov 2021 18:46:47 +0000 (13:46 -0500)]
create fsf theme with upstream header.php

https://simplesamlphp.org/docs/stable/simplesamlphp-theming

3 years agoother minor tweaks based on new sqlauth upstream module
Andrew Engelbrecht [Wed, 17 Nov 2021 22:20:55 +0000 (17:20 -0500)]
other minor tweaks based on new sqlauth upstream module

3 years agoupdated module code based on upstream sqlauth mod
Andrew Engelbrecht [Wed, 17 Nov 2021 22:07:42 +0000 (17:07 -0500)]
updated module code based on upstream sqlauth mod

3 years agocreated basic .gitignore file
Andrew Engelbrecht [Tue, 9 Nov 2021 23:19:23 +0000 (18:19 -0500)]
created basic .gitignore file

3 years agoInitial version of fsfdrupalauth, still alpha software
Andrew Engelbrecht [Tue, 9 Nov 2021 23:14:18 +0000 (18:14 -0500)]
Initial version of fsfdrupalauth, still alpha software

This is the code that I adapted from SSP SQL Auth about a year ago.
(from simplesamlphp/simplesamlphp-module-sqlauth)

It still needs review, and may have some rough edges.