mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-04 15:24:23 +01:00
8495e2a7a0
Also refactored OAuth2Mapping to allow usage with any types of providers
12 lines
362 B
Ruby
12 lines
362 B
Ruby
# frozen_string_literal: true
|
|
|
|
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
|
|
end
|
|
end
|