Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
1b0e5502
Commit
1b0e5502
authored
12 years ago
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#1461572
by underq, izus: openid_update_6000() should not be in Drupal 8.
parent
15ccdbbd
No related branches found
No related tags found
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/modules/openid/openid.install
+3
-38
3 additions, 38 deletions
core/modules/openid/openid.install
with
3 additions
and
38 deletions
core/modules/openid/openid.install
+
3
−
38
View file @
1b0e5502
...
...
@@ -117,43 +117,8 @@ function openid_requirements($phase) {
}
/**
* @addtogroup updates-6.x-to-7.x
* @{
* Implements hook_update_last_removed().
*/
/**
* Add a table to store nonces.
*/
function
openid_update_6000
()
{
$schema
[
'openid_nonce'
]
=
array
(
'description'
=>
'Stores received openid.response_nonce per OpenID endpoint URL to prevent replay attacks.'
,
'fields'
=>
array
(
'idp_endpoint_uri'
=>
array
(
'type'
=>
'varchar'
,
'length'
=>
255
,
'description'
=>
'URI of the OpenID Provider endpoint.'
,
),
'nonce'
=>
array
(
'type'
=>
'varchar'
,
'length'
=>
255
,
'description'
=>
'The value of openid.response_nonce'
),
'expires'
=>
array
(
'type'
=>
'int'
,
'not null'
=>
TRUE
,
'default'
=>
0
,
'description'
=>
'A Unix timestamp indicating when the entry should expire.'
,
),
),
'indexes'
=>
array
(
'nonce'
=>
array
(
'nonce'
),
'expires'
=>
array
(
'expires'
),
),
);
db_create_table
(
'openid_nonce'
,
$schema
[
'openid_nonce'
]);
function
openid_update_last_removed
()
{
return
6000
;
}
/**
* @} End of "addtogroup updates-6.x-to-7.x".
*/
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment