mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +01:00
0c51aff748
Previously, scopes were supported through OAUTH2_SCOPE since v5.3.1. BREAKING CHANGE: update your oauth2 provider configuration if you need scopes support
13 lines
536 B
Ruby
13 lines
536 B
Ruby
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
|
|
json.o_auth2_mappings_attributes @provider.providable.o_auth2_mappings do |m|
|
|
json.extract! m, :id, :local_model, :local_field, :api_field, :api_endpoint, :api_data_type, :transformation
|
|
end
|
|
end
|
|
end
|