2021-03-23 11:49:05 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-03-23 18:39:41 +01:00
|
|
|
json.partial! 'api/auth_providers/auth_provider', auth_provider: @provider
|
2021-03-23 11:49:05 +01:00
|
|
|
json.previous_provider do
|
|
|
|
json.partial! 'api/auth_providers/auth_provider', auth_provider: @previous if @previous
|
|
|
|
end
|
2016-03-23 18:39:41 +01:00
|
|
|
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
|
2019-10-02 14:37:47 +02:00
|
|
|
json.link_to_sso_connect '/sso-redirect'
|
2016-03-23 18:39:41 +01:00
|
|
|
end
|