mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-01 21:47:16 +00:00
Inspecting 1404 files .............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................W.....................W....................................W...........................W....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... Offenses: engines/catalog/catalog.gemspec:7:1: W: [Corrected] Gemspec/RequireMFA: metadata['rubygems_mfa_required'] must be set to 'true'. Gem::Specification.new do |s| ... ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ engines/catalog/catalog.gemspec:14:1: C: [Corrected] Layout/IndentationConsistency: Inconsistent indentation detected. s.metadata['rubygems_mfa_required'] = 'true' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ engines/dfc_provider/dfc_provider.gemspec:9:1: W: [Corrected] Gemspec/RequireMFA: metadata['rubygems_mfa_required'] must be set to 'true'. Gem::Specification.new do |spec| ... ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ engines/dfc_provider/dfc_provider.gemspec:21:1: C: [Corrected] Layout/IndentationConsistency: Inconsistent indentation detected. spec.metadata['rubygems_mfa_required'] = 'true' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ engines/order_management/order_management.gemspec:7:1: W: [Corrected] Gemspec/RequireMFA: metadata['rubygems_mfa_required'] must be set to 'true'. Gem::Specification.new do |s| ... ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ engines/order_management/order_management.gemspec:14:1: C: [Corrected] Layout/IndentationConsistency: Inconsistent indentation detected. s.metadata['rubygems_mfa_required'] = 'true' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ engines/web/web.gemspec:7:1: W: [Corrected] Gemspec/RequireMFA: metadata['rubygems_mfa_required'] must be set to 'true'. Gem::Specification.new do |s| ... ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ engines/web/web.gemspec:14:1: C: [Corrected] Layout/IndentationConsistency: Inconsistent indentation detected. s.metadata['rubygems_mfa_required'] = 'true' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1404 files inspected, 8 offenses detected, 8 offenses corrected
DfcProvider
This engine is implementing the Data Food Consortium specifications in order to serve semantic data. You can find more details about this on https://github.com/datafoodconsortium.
Basically, it allows an OFN user linked to an enterprise:
- to serve his Products Catalog through a dedicated API using JSON-LD format, structured by the DFC Ontology
- to be authenticated thanks to an Access Token from DFC Authorization server (using an OIDC implementation)
The API endpoint for the catalog is /api/dfc_provider/enterprise/prodcuts.json and you need to pass the token inside an authentication header (Authentication: Bearer 123mytoken456).
This feature is still under active development.