forked from simplesamlphp/simplesamlphp-module-casserver
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmodule_casserver.php.dist
More file actions
123 lines (107 loc) · 4.64 KB
/
module_casserver.php.dist
File metadata and controls
123 lines (107 loc) · 4.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<?php
/*
* Configuration for the module casserver.
*
*/
$config = [
'authsource' => 'casserver',
/* Scopes are named sets of entityIDs to be used for scoping. If a named scope is provided during login, then the
IdPs listed by the disco service will be restricted to entityIDs in the specified set. */
'scopes' => [
'mobile' => [
'https://idp1.domain:1234/saml2/idp/metadata.php',
'https://idp2.domain:5678/saml2/idp/metadata.php'
],
'desktop' => [
'https://idp3.domain:1234/saml2/idp/metadata.php',
'https://idp4.domain:5678/saml2/idp/metadata.php'
]
],
'legal_service_urls' => [
//Any service url string matching any of the following prefixes is accepted
'http://host1.domain:1234/path1',
'https://host2.domain:5678/path2/path3',
// So is regex
'|^https://.*\.domain.com/|',
// ONLY the FOLLOWING configuration options can be overridden. See OverrideConfigPropertiesEnum.
'https://override.example.com' => [
'attrname' => 'uid',
'attributes_to_transfer' => ['cn'],
//'attributes' => false,
//'authproc' => [],
//'service_ticket_expire_time' => 5,
],
],
'legal_target_service_urls' => [
//Any target service url string matching any of the following prefixes is accepted
'http://host3.domain:4321/path4',
'https://host4.domain:8765/path5/path6',
],
'ticketstore' => [
//defaults to filesystem ticket store using the directory 'ticketcache'
'class' => 'casserver:FileSystemTicketStore', //Not intended for production
'directory' => 'ticketcache',
//'class' => 'casserver:MemCacheTicketStore',
//'prefix' => 'some_prefix',
//'class' => 'casserver:SQLTicketStore',
//'dsn' => 'pgsql:host=localhost;port=5432;dbname=casserver',
//'username' => 'username',
//'password' => 'password',
//'prefix' => 'some_prefix',
//'options' => [
// \PDO::ATTR_TIMEOUT => 4,
// ]
//'class' => 'casserver:RedisTicketStore',
//'prefix' => 'some_prefix',
// Store tickets in multiple ticket stores for redundancy or to allow
// transitions between data stores without downtime.
/*
'class' => 'casserver:DelegatingTicketStore',
'delegateTo' => 'all',
'ticketStores' => [
'oldStore' => [
'class' => 'casserver:RedisTicketStore',
'prefix' => 'cas',
],
'newStore' => [
'class' => 'casserver:FileSystemTicketStore',
'prefix' => 'cas'
]
]*/
],
'attrname' => 'eduPersonPrincipalName', // 'eduPersonPrincipalName',
'attributes' => true, // enable transfer of attributes, defaults to true
'attributes_to_transfer' => ['eduPersonPrincipalName'], // set of attributes to transfer, defaults to all
/**
* Optional authproc filter. Only authproc filters that solely rely on attributes
* (such as core:AttributeMap and AttributeAlter)
* may be used. If your authsource supports authproc filters you are better off doing it there.
*/
'authproc' => [
[
'class' => 'core:AttributeMap',
'oid2name',
'urn:example' => 'example'
],
// Additional authproc filter
],
'base64attributes' => true, // base64 encode transferred attributes, defaults to false
/**
* add an attribute with the value of the base64attributes
* configuration parameter to the set of transferred attributes.
* Defaults to not adding an indicator attribute.
*/
'base64_attributes_indicator_attribute' => 'base64Attributes',
'enable_logout' => true, // enable CAS logout, defaults to false
'skip_logout_page' => true, /*perform a redirect instead of showing a logout page with a link to the location
given in the url parameter, defaults to false. Skipping the logout page makes the
url query parameter to CAS logout mandatory for obvious reasons.*/
// how many seconds service tickets are valid for, defaults to 5
'service_ticket_expire_time' => 5,
// how many seconds proxy granting tickets are valid for at most, defaults to 3600
'proxy_granting_ticket_expire_time' => 600,
//how many seconds proxy tickets are valid for, defaults to 5
'proxy_ticket_expire_time' => 5,
// If query param debugMode=true is sent to the login endpoint then print cas ticket xml. Default false
'debugMode' => true,
];