Skip to content

Commit

Permalink
Merge pull request #39 from misilot/cas-auth-master
Browse files Browse the repository at this point in the history
VUFIND-422 fixes. Updated to be merged into master
  • Loading branch information
demiankatz committed Sep 27, 2013
2 parents e9339fa + b3a3c8a commit 1b5f440
Show file tree
Hide file tree
Showing 113 changed files with 19,410 additions and 10 deletions.
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
"type": "vcs",
"url": "https://github.com/summon/Summon.php"
},
{
"type": "vcs",
"url": "https://github.com/Jasig/phpCAS"
},
{
"type": "package",
"package": {
Expand Down Expand Up @@ -61,6 +65,7 @@
"symfony/yaml": "*",
"zendframework/zendframework": "2.2.4",
"zendframework/zendrest": "2.*",
"zendframework/zendservice-amazon": "2.*"
"zendframework/zendservice-amazon": "2.*",
"jasig/phpCAS": "dev-master"
}
}
56 changes: 54 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 47 additions & 1 deletion config/vufind/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,14 @@ title_level_holds_mode = "disabled"

; This section allows you to determine how the users will authenticate.
; You can use an LDAP directory, the local ILS, the VuFind database (Database),
; Shibboleth, SIP2 or some combination of these (via the MultiAuth option).
; Shibboleth, SIP2, CAS or some combination of these (via the MultiAuth option).
[Authentication]
;method = LDAP
;method = ILS
method = Database
;method = Shibboleth
;method = SIP2
;method = CAS
;method = MultiAuth

; This setting only applies when method is set to ILS. It determines which
Expand Down Expand Up @@ -356,6 +357,51 @@ database = mysql://root@localhost/vufind
;college = HTTP_COLLEGE
;major = HTTP_MAJOR
;home_library = HTTP_HOME_LIBRARY
;
; CAS is optional. This section only needs to exist if the
; Authentication Method is set to CAS.
;[CAS]

; Required: the attribute CAS uses to uniquely identify users.
;username = uid

; Required: CAS Hostname.
;server = cas.myuniversity.edu

; Required: CAS port.
;port = 443

; Required: CAS context.
;context = /cas

; Required: CAS Certificate Path.
;CACert = /etc/pki/cert/cert.crt

; Required: CAS login URL.
;login = https://cas.myuniversity.edu/cas/login


; Required: CAS logout URL.
;logout = https://cas.myuniversity.edu/cas/logout

; Optional: CAS logging.
;debug = false
;log = /tmp/casdebug

; Optional: URL to forward to after CAS login (if omitted,
; defaultLoggedInModule from [Site] section will be used).
;target = http://lib.myuniversity.edu/vufind/MyResearch/Home

; Some or all of the following entries may be uncommented to map CAS
; attributes to user database columns:
;cat_username = acctSyncUserID
;cat_password = catPassword
;email = mail
;firstname = givenName
;lastname = sn
;college = college
;major = major1
;home_library = library

; External Content is Optional.
; To use multiple, separate with a comma. Priority will be given by the order listed
Expand Down
3 changes: 2 additions & 1 deletion module/VuFind/config/module.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@
'ldap' => 'VuFind\Auth\LDAP',
'multiauth' => 'VuFind\Auth\MultiAuth',
'shibboleth' => 'VuFind\Auth\Shibboleth',
'cas' => 'VuFind\Auth\CAS',
'sip2' => 'VuFind\Auth\SIP2',
),
'aliases' => array(
Expand Down Expand Up @@ -1144,4 +1145,4 @@
)
);

return $config;
return $config;
Loading

0 comments on commit 1b5f440

Please sign in to comment.