mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-11 22:24:21 +01:00
927479733b
see https://github.com/omniauth/omniauth/wiki/Resolving-CVE-2015-9284 for more info
11 lines
395 B
Ruby
11 lines
395 B
Ruby
json.partial! 'api/auth_providers/auth_provider', auth_provider: @provider
|
|
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
|
|
|
|
json.domain @provider.providable.domain if @provider.providable_type == OAuth2Provider.name
|