mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 03:07:52 +01:00
- Added Site settings > Authentication section - Create/edit/delete your custom oauth2 configurations - Login or signup with oauth2
23 lines
677 B
Ruby
23 lines
677 B
Ruby
class CreateOAuths < ActiveRecord::Migration[6.0]
|
|
def change
|
|
create_table :o_auths do |t|
|
|
t.string :name, null: false
|
|
t.string :logo
|
|
t.boolean :is_enabled, default: false
|
|
t.string :client_id, null: false
|
|
t.string :client_secret, null: false
|
|
t.string :authorize_url, null: false
|
|
t.string :token_url, null: false
|
|
t.string :profile_url, null: false
|
|
t.string :scope, null: false
|
|
t.string :json_user_name_path
|
|
t.string :json_user_email_path, null: false
|
|
t.references :tenant, null: false, foreign_key: true
|
|
|
|
t.timestamps
|
|
end
|
|
|
|
add_index :o_auths, [:name, :tenant_id], unique: true
|
|
end
|
|
end
|