1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-20 09:52:19 +01:00
fab-manager/app/views/api/auth_providers/show.json.jbuilder

12 lines
362 B
Plaintext
Raw Normal View History

# frozen_string_literal: true
2016-03-23 18:39:41 +01:00
json.partial! 'api/auth_providers/auth_provider', auth_provider: @provider
# OAuth 2.0
if @provider.providable_type == OAuth2Provider.name
json.providable_attributes do
json.extract! @provider.providable, :id, :base_url, :token_endpoint, :authorization_endpoint, :profile_url, :client_id, :client_secret, :scopes
2016-03-23 18:39:41 +01:00
end
end