Commit Graph

3998 Commits

Author SHA1 Message Date
paul121 8a097a0e32 Remove redundant variable defining oauth2_server_name. 2020-03-24 11:56:39 -04:00
paul121 c2a6d1f537 Document hook_farm_api_oauth2_client. 2020-03-24 11:56:39 -04:00
paul121 332b576fa6 Allow modules to provide an option oauth2 client_secret. 2020-03-24 11:56:39 -04:00
paul121 be4d7a53c5 Rename hook_farm_oauth_client to hook_farm_api_oauth2_client. 2020-03-24 11:56:39 -04:00
paul121 a64de67dda Merge farm_api_oauth into farm_api. 2020-03-24 11:56:39 -04:00
paul121 1ed4e32f52 Remove default OAuth client. 2020-03-24 11:56:39 -04:00
Michael Stenta fbc218768f Sort drupal-org.make alphabetically. 2020-03-24 11:56:39 -04:00
paul121 5210948c64 Refactor to allow modules to add oauth clients via hook_api 2020-03-24 10:02:19 -04:00
paul121 8ecda18c34 Refactor to allow adding oauth clients via hook_farm_oauth_client, and enable via system settings form. 2020-03-24 10:02:19 -04:00
paul121 dbf5e4d8db Add farm_api_oauth to the list of default farm modules. 2020-03-24 10:02:19 -04:00
paul121 ccf05f6e5e Merge farm.install from farmOS-map branch. 2020-03-24 10:02:19 -04:00
paul121 155627d9fc Add contrib modules to drupal-org.make that support farm_api_oauth. 2020-03-24 10:02:19 -04:00
paul121 968b4b7fdf Add oauth2-server-php library to drupal-org.make. 2020-03-24 10:02:19 -04:00
paul121 89ae497fe0 Disable the implicit OAuth flow by default. OAuth standards no longer recommend the implicit flow. 2020-03-24 07:21:08 -04:00
paul121 7a9535c74e Do not enable the client_credentials grant, client secret by default. This value cannot be made public. 2020-03-24 07:21:08 -04:00
paul121 d3f622af55 Fix deletion of oauth2_server_client and oauth2_server_scope entities. 2020-03-24 07:21:08 -04:00
Paul Weidner 986d87d33f Update farm_api_farm_info to require the farm_info scope for basic info. 2020-03-24 07:21:08 -04:00
Paul Weidner 532c5cfddf Update hook_farm_info api example. 2020-03-24 07:21:08 -04:00
Paul Weidner ae37a1a71c Update the farm.json endpoint to check for OAuth Scopes. 2020-03-24 07:21:08 -04:00
Paul Weidner 08bfb23fd4 Add farm_api_oauth as a submodule of farm_api. 2020-03-24 07:21:08 -04:00
Michael Stenta 09411cbb31 Remove old zoom_levels property from bed area type. 2020-03-18 13:15:29 -04:00
Michael Stenta 42fd841e69 Update Localization Update module to 7.x-2.3. 2020-03-18 12:45:40 -04:00
Michael Stenta 8421d009c3 Merge branch 'farm_l10n' into 7.x-1.x 2020-03-18 10:19:19 -04:00
Michael Stenta fde4542b9a Put the farm_l10n module in the farmOS (beta) package. 2020-03-18 10:18:11 -04:00
Michael Stenta 19cab336a8 Export default localization config to new farm_l10n module. 2020-03-18 10:17:47 -04:00
Michael Stenta 36a9a0df3e Add the l10n_update module. 2020-03-18 10:15:54 -04:00
botlfarm ec128c1c28 Changed default configuration from force single to allow multiple. 2020-03-14 20:41:14 -04:00
Michael Stenta a3b7600047 Fix Error: call to undefined function bcscale() #258 2020-02-28 14:20:20 -05:00
Michael Stenta 383dbc77ae Add a farm metrics module to collect high level metrics #230 2020-02-26 11:18:43 -05:00
Michael Stenta 11dc980beb Move metrics into farm.json. Remove farm_metrics.json. 2020-02-26 11:17:59 -05:00
Michael Stenta 6b20ba1a04 Create a farm_metrics() helper function for loading metrics. 2020-02-26 11:10:44 -05:00
Michael Stenta 98c682b0cb Install farm_metrics on new and existing sites. 2020-02-26 11:03:58 -05:00
Michael Stenta 209cb5e48a Only show metrics dashboard pane if the user has access to metrics. 2020-02-26 10:40:27 -05:00
Michael Stenta 14b72d7930 Remove unused variable. 2020-02-26 10:40:27 -05:00
Michael Stenta 41758a29d2 Allow all farm roles to access metrics. 2020-02-26 10:40:27 -05:00
Michael Stenta 1db1671256 Move hook_farm_access_perms() to module file for consistency. 2020-02-26 10:40:27 -05:00
Paul Weidner b7cb769191 Refactor hook_farm_metrics to use a 'key' to identify arrays of metrics.
Without this, the 'farm_metrics.json' endpoint returns an array indexed by element ID, which would be more difficult for consumers of the 'farm_metrics.json' API to parse.
2020-02-26 10:40:27 -05:00
Paul Weidner ec82d5d9d6 Create farm_metrics.json endpoint to expose metrics over API. 2020-02-26 10:40:27 -05:00
Paul Weidner 6a114b7fc8 Refactor farm_ui.farm_dashboard.inc to farm_ui.farm_metrics.inc. 2020-02-26 10:40:27 -05:00
Paul Weidner 0833072bf5 Refactor farm_area.farm_dashboard.inc to farm_area.farm_metrics.inc. 2020-02-26 10:40:27 -05:00
Paul Weidner de788dfd89 Remove 'farm_dashboard_metrics' from farm_dashboard hook_hook_info. 2020-02-26 10:39:40 -05:00
Paul Weidner 7ee3c604a4 Init farm_metrics modules from existing farm_dashboard code. 2020-02-26 10:39:40 -05:00
Michael Stenta 6611a52cb7 Update farmOS-map library to v1.0.0. 2020-02-26 09:53:07 -05:00
Michael Stenta d3eec67e7c Revert "farmOS 7.x-1.3."
This reverts commit 725f21b45fcd3546602cde8858440bd2488de83e.
2020-02-21 11:57:20 -05:00
Michael Stenta 6a7458cb71 farmOS 7.x-1.3. 2020-02-21 11:57:20 -05:00
Michael Stenta 73ae680f9b Prepare for release of farmOS 7.x-1.3. 2020-02-21 11:57:20 -05:00
Michael Stenta 01f8866ce1 Update the farmOS-map library to v0.9.5. 2020-02-21 11:57:20 -05:00
Michael Stenta 27c83e92d5 Make sure farmOS.map.behaviors.geofield runs after farmOS.map.behaviors.wkt. 2020-02-20 23:30:56 -05:00
Michael Stenta 0656c75550 Fix PHP Notice: Undefined index: default_value in farm_ui_farm_info() 2020-02-20 14:25:18 -05:00
Michael Stenta 4311198721 Issue #3083352: Migrate to farmOS-map library 2020-02-17 13:50:18 -05:00