Révision 01a79e9a
Ajouté par Assos Assos il y a plus de 10 ans
htmltest/modules/openid/openid.install | ||
---|---|---|
15 | 15 |
'idp_endpoint_uri' => array( |
16 | 16 |
'type' => 'varchar', |
17 | 17 |
'length' => 255, |
18 |
'description' => 'URI of the OpenID Provider endpoint.', |
|
18 |
'not null' => TRUE, |
|
19 |
'description' => 'Primary Key: URI of the OpenID Provider endpoint.', |
|
19 | 20 |
), |
20 | 21 |
'assoc_handle' => array( |
21 | 22 |
'type' => 'varchar', |
22 | 23 |
'length' => 255, |
23 | 24 |
'not null' => TRUE, |
24 |
'description' => 'Primary Key: Used to refer to this association in subsequent messages.',
|
|
25 |
'description' => 'Used to refer to this association in subsequent messages.', |
|
25 | 26 |
), |
26 | 27 |
'assoc_type' => array( |
27 | 28 |
'type' => 'varchar', |
... | ... | |
51 | 52 |
'description' => 'The lifetime, in seconds, of this association.', |
52 | 53 |
), |
53 | 54 |
), |
54 |
'primary key' => array('assoc_handle'), |
|
55 |
'primary key' => array('idp_endpoint_uri'), |
|
56 |
'unique keys' => array( |
|
57 |
'assoc_handle' => array('assoc_handle'), |
|
58 |
), |
|
55 | 59 |
); |
56 | 60 |
|
57 | 61 |
$schema['openid_nonce'] = array( |
... | ... | |
158 | 162 |
/** |
159 | 163 |
* @} End of "addtogroup updates-6.x-to-7.x". |
160 | 164 |
*/ |
165 |
|
|
166 |
/** |
|
167 |
* @addtogroup updates-7.x-extra |
|
168 |
* @{ |
|
169 |
*/ |
|
170 |
|
|
171 |
/** |
|
172 |
* Bind associations to their providers. |
|
173 |
*/ |
|
174 |
function openid_update_7000() { |
|
175 |
db_drop_table('openid_association'); |
|
176 |
|
|
177 |
$schema = array( |
|
178 |
'description' => 'Stores temporary shared key association information for OpenID authentication.', |
|
179 |
'fields' => array( |
|
180 |
'idp_endpoint_uri' => array( |
|
181 |
'type' => 'varchar', |
|
182 |
'length' => 255, |
|
183 |
'not null' => TRUE, |
|
184 |
'description' => 'Primary Key: URI of the OpenID Provider endpoint.', |
|
185 |
), |
|
186 |
'assoc_handle' => array( |
|
187 |
'type' => 'varchar', |
|
188 |
'length' => 255, |
|
189 |
'not null' => TRUE, |
|
190 |
'description' => 'Used to refer to this association in subsequent messages.', |
|
191 |
), |
|
192 |
'assoc_type' => array( |
|
193 |
'type' => 'varchar', |
|
194 |
'length' => 32, |
|
195 |
'description' => 'The signature algorithm used: one of HMAC-SHA1 or HMAC-SHA256.', |
|
196 |
), |
|
197 |
'session_type' => array( |
|
198 |
'type' => 'varchar', |
|
199 |
'length' => 32, |
|
200 |
'description' => 'Valid association session types: "no-encryption", "DH-SHA1", and "DH-SHA256".', |
|
201 |
), |
|
202 |
'mac_key' => array( |
|
203 |
'type' => 'varchar', |
|
204 |
'length' => 255, |
|
205 |
'description' => 'The MAC key (shared secret) for this association.', |
|
206 |
), |
|
207 |
'created' => array( |
|
208 |
'type' => 'int', |
|
209 |
'not null' => TRUE, |
|
210 |
'default' => 0, |
|
211 |
'description' => 'UNIX timestamp for when the association was created.', |
|
212 |
), |
|
213 |
'expires_in' => array( |
|
214 |
'type' => 'int', |
|
215 |
'not null' => TRUE, |
|
216 |
'default' => 0, |
|
217 |
'description' => 'The lifetime, in seconds, of this association.', |
|
218 |
), |
|
219 |
), |
|
220 |
'primary key' => array('idp_endpoint_uri'), |
|
221 |
'unique keys' => array( |
|
222 |
'assoc_handle' => array('assoc_handle'), |
|
223 |
), |
|
224 |
); |
|
225 |
db_create_table('openid_association', $schema); |
|
226 |
} |
|
227 |
|
|
228 |
/** |
|
229 |
* @} End of "addtogroup updates-7.x-extra". |
|
230 |
*/ |
Formats disponibles : Unified diff
Update to drupal 7.26