-
Notifications
You must be signed in to change notification settings - Fork 1
/
samlauth.install
102 lines (100 loc) · 2.33 KB
/
samlauth.install
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
<?php
/**
* @file
* The installation file for thie SamlAuth module.
*/
/**
* Implements hook_schema().
*/
function samlauth_schema() {
return [
'samlauth_settings' => [
'fields' => [
'idp_id' => [
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
],
'idp_machine_name' => [
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
],
'sp_entity_id' => [
'type' => 'varchar',
'length' => 255,
],
'sp_name_id_format' => [
'type' => 'varchar',
'length' => 255,
],
'sp_x509_certificate' => [
'type' => 'text',
],
'sp_private_key' => [
'type' => 'varchar',
'length' => 255,
],
'idp_entity_id' => [
'type' => 'varchar',
'length' => 255,
],
'idp_single_sign_on_service' => [
'type' => 'varchar',
'length' => 255,
],
'idp_x509_certificate' => [
'type' => 'text',
],
'map_users' => [
'type' => 'int',
'default' => 0,
'size' => 'small',
],
'map_users_email' => [
'type' => 'varchar',
'length' => 255,
],
'create_users' => [
'type' => 'int',
'default' => 0,
'size' => 'small',
],
'user_name_attribute' => [
'type' => 'varchar',
'length' => 255,
],
'user_mail_attribute' => [
'type' => 'varchar',
'length' => 255,
],
'security_authn_requests_sign' => [
'type' => 'int',
'default' => 0,
'size' => 'small',
],
'security_messages_sign' => [
'type' => 'int',
'default' => 0,
'size' => 'small',
],
'security_name_id_sign' => [
'type' => 'int',
'default' => 0,
'size' => 'small',
],
'security_signed_assertion' => [
'type' => 'int',
'default' => 0,
'size' => 'small',
],
'security_encrypted_assertion' => [
'type' => 'int',
'default' => 0,
'size' => 'small',
],
],
'primary key' => ['idp_id'],
],
];
}