0
0
Fork 0

Enable OAuth PKCE Extension (#31129)

This commit is contained in:
Emelia Smith 2024-07-26 10:53:10 +02:00 committed by GitHub
parent 3793c845c9
commit 693d9b03ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 164 additions and 6 deletions

View file

@ -0,0 +1,8 @@
# frozen_string_literal: true
class EnablePkce < ActiveRecord::Migration[7.1]
def change
add_column :oauth_access_grants, :code_challenge, :string, null: true
add_column :oauth_access_grants, :code_challenge_method, :string, null: true
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.1].define(version: 2024_07_13_171909) do
ActiveRecord::Schema[7.1].define(version: 2024_07_24_181224) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -739,6 +739,8 @@ ActiveRecord::Schema[7.1].define(version: 2024_07_13_171909) do
t.string "scopes"
t.bigint "application_id", null: false
t.bigint "resource_owner_id", null: false
t.string "code_challenge"
t.string "code_challenge_method"
t.index ["resource_owner_id"], name: "index_oauth_access_grants_on_resource_owner_id"
t.index ["token"], name: "index_oauth_access_grants_on_token", unique: true
end