-
Notifications
You must be signed in to change notification settings - Fork 3
Configuration File
Verify that CAS directory exists under the plugin directory and CAS.php exists (/cas/CAS.php)
$gfedf_phpcas_path = dirname(__FILE__)=dirname(__FILE__)Gravity forms store files at a default location.
Eg: /var/www…./wp-content/uploads/gravity_forms/1-360e029abdcd1bab14fa72c4cd896c8a/2014/03
User can change this location by setting the path in the config file. Set both constants FILE_UPLOAD_PATH and FILE_UPLOAD_URL located in “gf_external_data_fields_config” class (Refer file: EXAMPLE-gravityforms-external-data-fields-config.php) to your file storage path and url respectively.
const FILE_UPLOAD_PATH = "/var/www/www.example.org/wp-content/uploads/sites/6/uploads_testing/";
const FILE_UPLOAD_URL = "http://www.example.org/wpm/wp-content/uploads/sites/6/uploads_testing/";The value indicated in the parameter must used when creating an authenticated field using Gravity Forms>Advanced options, (see section below). NOTE: This value is case sensitive. Section Save authenticated data won't show if values don't match in form and file.
const IS_AUTH = "is_auth";The message indicated here is going to appear in all Authencation fields
const IS_VERIFIED_MESSAGE = "...";
const IS_NOT_VERIFIED_MESSAGE = "...";This parameters is needed when you want to use authentication through CAS on a form. This parameter should match the attribute name in the shortcode of gravity form. This is case sensitive. The page that is assigned to the form needs to have the following shortcode in order to retrieve data from database (see case 5119):
[gravityform id="1" name="Enrollment Verification" authenticate = "true"]
User can choose any attribute name (in the case above its 'authenticate'), as long as it matches the config constant AUTHENTICATE_ATTRIBUTE value.
const AUTHENTICATE_ATTRIBUTE = "...";This is needed to redirect users to a website after the forms have been submitted. This is only useful when the form uses authentication (AUTHENTICATE_ATTRIBUTE)
const AFTER_LOGOUT_URLDatabase credentials needed to access the database and retrieve fields
public static $dsn ="..."
public static $studentDataLogin = "...";
public static $studentDataPassword = "...";Make sure this query is present.
public static $studentQuery = <<<EOS
SELECT
s.[SID]
,s.[FirstName]
,s.[LastName]
,s.[Email]
,s.[DaytimePhone]
,s.[EveningPhone]
FROM vw_Student s
WHERE s.[NTUsername] = ?;
EOS;Used to access CAS authentication server
public static $ssoServer = "www.example.org";
public static $ssoPort = 443;
public static $ssoPath = "/cas";