mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-04 12:51:41 -05:00
4af8a9102e
See https://github.com/michaelkirk/discourse_oauth2_example for an example of how you might integrate your existing oauth2 provider's authentication via a Discourse plugin.
14 lines
366 B
Ruby
14 lines
366 B
Ruby
class CreateOauth2UserInfos < ActiveRecord::Migration
|
|
def change
|
|
create_table :oauth2_user_infos do |t|
|
|
t.integer :user_id, null: false
|
|
t.string :uid, null: false
|
|
t.string :provider, null: false
|
|
t.string :email
|
|
t.string :name
|
|
t.timestamps
|
|
end
|
|
|
|
add_index :oauth2_user_infos, [:uid, :provider], unique: true
|
|
end
|
|
end
|