1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/app/models/database_provider.rb
Sylvain b4e53d2039 (db) table to save OpenID connect configuration
Also refactored OAuth2Mapping to allow usage with any types of providers
2022-05-04 12:16:38 +02:00

16 lines
408 B
Ruby

# frozen_string_literal: true
# DatabaseProvider is a special type of AuthProvider which provides the default app authentication method.
# This method uses Devise and the local database.
class DatabaseProvider < ApplicationRecord
has_one :auth_provider, as: :providable, dependent: :destroy
def profile_url
'/#!/dashboard/profile'
end
def omniauth_authorize_path
'users/sign_in'
end
end