forked from mcguinness/saml-idp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.js
81 lines (78 loc) · 1.93 KB
/
config.js
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
/**
* User Profile
*/
var profile = {
userName: 'MF_Dige',
nameIdFormat: 'urn:oasis:names:tc:SAML:2.0:nameid-format:persistent',
access_readappend: ['2014DE05SFOP013:21.08qsz01.01.0.', 'A'],
access_readonly: ['2014DE05SFOP013:22.09asz05.01.3.', 'B'],
form_filter : ['21.08bsz01.01.0.', '21.09.bsz01.01.0.', '21.08qsz01.01.0.', '22.09asz05.01.3.', '15.05asz12.01.2.', '12.03dsz04.06.1.', '21.08bsz01.06.2.', '21.08esz04.10.2.']/*,
firstName: 'Saml',
lastName: 'Jackson',
displayName: 'saml jackson',
email: '[email protected]',
mobilePhone: '+1-415-555-5141',
groups: 'Simple IdP Users, West Coast Users, Cloud Users'*/
}
/**
* SAML Attribute Metadata
*/
var metadata = [{
id: "access_readappend",
optional: true,
displayName: 'RA',
description: 'Readappend Access',
multiValue: true
}, {
id: "access_readonly",
optional: true,
displayName: 'RO',
description: 'Readonly Access',
multiValue: true
}, {
id: "form_filter",
optional: true,
displayName: 'Filter',
description: 'Form Filter',
multiValue: true
}/*, {
id: "lastName",
optional: false,
displayName: 'Last Name',
description: 'The surname of the user',
multiValue: false
}, {
id: "displayName",
optional: true,
displayName: 'Display Name',
description: 'The display name of the user',
multiValue: false
}, {
id: "email",
optional: false,
displayName: 'E-Mail Address',
description: 'The e-mail address of the user',
multiValue: false
},{
id: "mobilePhone",
optional: true,
displayName: 'Mobile Phone',
description: 'The mobile phone of the user',
multiValue: false
}, {
id: "groups",
optional: true,
displayName: 'Groups',
description: 'Group memberships of the user',
multiValue: true
}, {
id: "userType",
optional: true,
displayName: 'User Type',
description: 'The type of user',
options: ['Admin', 'Editor', 'Commenter']
}*/];
module.exports = {
user: profile,
metadata: metadata
}