Voting starts in March for the Drupal Association Board election.
This module provides a token replacement for user and profile fields when a CAS user logs in. The module is compatible with the user name, e-mail address, and all user fields of type text. The Drupal 7 version can also assign roles.
The module is compatible with CAS 6.x-3.x-beta1 and 7.x-1.x-beta1 or later.
The 6.x version requires Token 6.x-1.16 or later.
While some 7.x beta versions did not explicitly require Token, CAS Attributes 7.x-1.0-rc1 and later require Token. If you are upgrading from an earlier version please take note of this and make sure that Token is installed and enabled.
Requires a recent version of phpCAS. Theoretically any version after 1.1.0 should work, but the module has only been tested with phpCAS 1.2.1 and later.
Enable the module(s). Navigate to the CAS settings and click on the new Attributes tab. For each field, enter in the desired replacement strings. Fields left blank will not be altered.
Actual tokens available will depend on your individual configuration.
As of 1.0-rc1, the 7.x branch now supports multivalue CAS attributes - as a result, all attributes must now be treated as array tokens, even if they only have one value. This means if you were previously referring to an attribute as [cas:attribute:email], you will now need to specify [cas:attribute:email:first] (the first element of the array). Seefor more about array tokens.
- List of the likely tokens in Drupal 6
Token Description CAS [cas-name] The CAS username. [cas-attribute-?] A list of all possible CAS attributes. [cas-attribute-givenname] [cas-attribute-surname] ... [cas-ldap-?] A list of all possible LDAP attributes. [cas-ldap-givenname] [cas-ldap-surname] ...
- List of the possible tokens in Drupal 7
Token Description CAS [cas:name] The CAS username. [cas:attribute:?] A list of all possible CAS attributes. [cas:attribute:givenname:first] [cas:attribute:categories:first] [cas:attribute:categories:join] [cas:attribute:categories:count] ... [cas:ldap:?] A list of all possible LDAP attributes. [cas:ldap:givenname] [cas:ldap:surname] ...
CAS Attributes 6.x-3.x and 7.x-1.x include test routines for use with the SimpleTest (D6) and Testing (D7) modules. You can see the test results for each branch:
- Maintenance status: Actively maintained
- Development status: Under active development
- Reported installs: 3,195 sites currently report using this module. View usage statistics.
- Downloads: 22,780
- Automated tests: Enabled
- Last modified: August 19, 2015
- This project is not covered by the security advisory policy.
It may have publicly disclosed vulnerabilities. Use at your own risk!