mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
14 lines
453 B
Ruby
14 lines
453 B
Ruby
# frozen_string_literal: true
|
|
|
|
json.partial! 'api/auth_providers/auth_provider', auth_provider: @provider
|
|
json.previous_provider do
|
|
json.partial! 'api/auth_providers/auth_provider', auth_provider: @previous if @previous
|
|
end
|
|
json.mapping @provider.sso_fields
|
|
json.link_to_sso_profile @provider.link_to_sso_profile
|
|
if @provider.providable_type == DatabaseProvider.name
|
|
json.link_to_sso_connect '/#'
|
|
else
|
|
json.link_to_sso_connect '/sso-redirect'
|
|
end
|