Add access token authentication via HTTP AUTHORIZATION bearer header
This commit is contained in:
committed by
Stanko K.R.
parent
ea697b7143
commit
a81c681a8d
@@ -0,0 +1,14 @@
|
||||
class CreateIdentityAccessTokens < ActiveRecord::Migration[8.2]
|
||||
def change
|
||||
create_table :identity_access_tokens, id: :uuid do |t|
|
||||
t.uuid :identity_id, null: false
|
||||
t.string :token
|
||||
t.string :permission
|
||||
t.text :description
|
||||
|
||||
t.timestamps
|
||||
|
||||
t.index ["identity_id"], name: "index_access_token_on_identity_id"
|
||||
end
|
||||
end
|
||||
end
|
||||
Generated
+10
@@ -321,6 +321,16 @@ ActiveRecord::Schema[8.2].define(version: 2025_12_05_010536) do
|
||||
t.index ["email_address"], name: "index_identities_on_email_address", unique: true
|
||||
end
|
||||
|
||||
create_table "identity_access_tokens", id: :uuid, charset: "utf8mb4", collation: "utf8mb4_0900_ai_ci", force: :cascade do |t|
|
||||
t.datetime "created_at", null: false
|
||||
t.text "description"
|
||||
t.uuid "identity_id", null: false
|
||||
t.string "permission"
|
||||
t.string "token"
|
||||
t.datetime "updated_at", null: false
|
||||
t.index ["identity_id"], name: "index_access_token_on_identity_id"
|
||||
end
|
||||
|
||||
create_table "magic_links", id: :uuid, charset: "utf8mb4", collation: "utf8mb4_0900_ai_ci", force: :cascade do |t|
|
||||
t.string "code", null: false
|
||||
t.datetime "created_at", null: false
|
||||
|
||||
@@ -321,6 +321,16 @@ ActiveRecord::Schema[8.2].define(version: 2025_12_05_010536) do
|
||||
t.index ["email_address"], name: "index_identities_on_email_address", unique: true
|
||||
end
|
||||
|
||||
create_table "identity_access_tokens", id: :uuid, force: :cascade do |t|
|
||||
t.datetime "created_at", null: false
|
||||
t.text "description", limit: 65535
|
||||
t.uuid "identity_id", null: false
|
||||
t.string "permission", limit: 255
|
||||
t.string "token", limit: 255
|
||||
t.datetime "updated_at", null: false
|
||||
t.index ["identity_id"], name: "index_access_token_on_identity_id"
|
||||
end
|
||||
|
||||
create_table "magic_links", id: :uuid, force: :cascade do |t|
|
||||
t.string "code", limit: 255, null: false
|
||||
t.datetime "created_at", null: false
|
||||
|
||||
Reference in New Issue
Block a user