add MS oauth

This commit is contained in:
Alex Turchyn authored and Pete Matsyburka committed 2023-12-05 17:38:56 +02:00
1 parent 83ce401cf2
commit 9f48c6e625
8 files changed
+62 -15

No files matched your search

+4 -1
View File
@@ -58,7 +58,10 @@ class User < ApplicationRecord
has_many :email_messages, dependent: :destroy
devise :two_factor_authenticatable, :recoverable, :rememberable, :validatable, :trackable
devise :registerable, :omniauthable, omniauth_providers: [:google_oauth2] if Docuseal.multitenant?
if Docuseal.multitenant?
devise :registerable, :omniauthable, omniauth_providers: %i[google_oauth2 microsoft_office365 github]
end
attribute :role, :string, default: ADMIN_ROLE
attribute :uuid, :string, default: -> { SecureRandom.uuid }