Mercurial > defr > drupal > core
comparison modules/openid/openid.install @ 19:3edae6ecd6c6 6.9
Drupal 6.9
author | Franck Deroche <franck@defr.org> |
---|---|
date | Thu, 15 Jan 2009 10:15:56 +0100 |
parents | c1f4ac30525a |
children |
comparison
equal
deleted
inserted
replaced
18:f5131a9cd9e5 | 19:3edae6ecd6c6 |
---|---|
1 <?php | 1 <?php |
2 // $Id: openid.install,v 1.3 2007/10/10 11:39:33 goba Exp $ | 2 // $Id: openid.install,v 1.3.2.1 2009/01/06 15:46:37 goba Exp $ |
3 | 3 |
4 /** | 4 /** |
5 * Implementation of hook_install(). | 5 * Implementation of hook_install(). |
6 */ | 6 */ |
7 function openid_install() { | 7 function openid_install() { |
20 /** | 20 /** |
21 * Implementation of hook_schema(). | 21 * Implementation of hook_schema(). |
22 */ | 22 */ |
23 function openid_schema() { | 23 function openid_schema() { |
24 $schema['openid_association'] = array( | 24 $schema['openid_association'] = array( |
25 'description' => t('Stores temporary shared key association information for OpenID authentication.'), | 25 'description' => 'Stores temporary shared key association information for OpenID authentication.', |
26 'fields' => array( | 26 'fields' => array( |
27 'idp_endpoint_uri' => array( | 27 'idp_endpoint_uri' => array( |
28 'type' => 'varchar', | 28 'type' => 'varchar', |
29 'length' => 255, | 29 'length' => 255, |
30 'description' => t('URI of the OpenID Provider endpoint.'), | 30 'description' => 'URI of the OpenID Provider endpoint.', |
31 ), | 31 ), |
32 'assoc_handle' => array( | 32 'assoc_handle' => array( |
33 'type' => 'varchar', | 33 'type' => 'varchar', |
34 'length' => 255, | 34 'length' => 255, |
35 'not null' => TRUE, | 35 'not null' => TRUE, |
36 'description' => t('Primary Key: Used to refer to this association in subsequent messages.'), | 36 'description' => 'Primary Key: Used to refer to this association in subsequent messages.', |
37 ), | 37 ), |
38 'assoc_type' => array( | 38 'assoc_type' => array( |
39 'type' => 'varchar', | 39 'type' => 'varchar', |
40 'length' => 32, | 40 'length' => 32, |
41 'description' => t('The signature algorithm used: one of HMAC-SHA1 or HMAC-SHA256.'), | 41 'description' => 'The signature algorithm used: one of HMAC-SHA1 or HMAC-SHA256.', |
42 ), | 42 ), |
43 'session_type' => array( | 43 'session_type' => array( |
44 'type' => 'varchar', | 44 'type' => 'varchar', |
45 'length' => 32, | 45 'length' => 32, |
46 'description' => t('Valid association session types: "no-encryption", "DH-SHA1", and "DH-SHA256".'), | 46 'description' => 'Valid association session types: "no-encryption", "DH-SHA1", and "DH-SHA256".', |
47 ), | 47 ), |
48 'mac_key' => array( | 48 'mac_key' => array( |
49 'type' => 'varchar', | 49 'type' => 'varchar', |
50 'length' => 255, | 50 'length' => 255, |
51 'description' => t('The MAC key (shared secret) for this association.'), | 51 'description' => 'The MAC key (shared secret) for this association.', |
52 ), | 52 ), |
53 'created' => array( | 53 'created' => array( |
54 'type' => 'int', | 54 'type' => 'int', |
55 'not null' => TRUE, | 55 'not null' => TRUE, |
56 'default' => 0, | 56 'default' => 0, |
57 'description' => t('UNIX timestamp for when the association was created.'), | 57 'description' => 'UNIX timestamp for when the association was created.', |
58 ), | 58 ), |
59 'expires_in' => array( | 59 'expires_in' => array( |
60 'type' => 'int', | 60 'type' => 'int', |
61 'not null' => TRUE, | 61 'not null' => TRUE, |
62 'default' => 0, | 62 'default' => 0, |
63 'description' => t('The lifetime, in seconds, of this association.'), | 63 'description' => 'The lifetime, in seconds, of this association.', |
64 ), | 64 ), |
65 ), | 65 ), |
66 'primary key' => array('assoc_handle'), | 66 'primary key' => array('assoc_handle'), |
67 ); | 67 ); |
68 | 68 |