Commit Graph

3824 Commits

Author SHA1 Message Date
Michael Stenta 1705dc4c5f Patch restws to fix Issue #2490416 (restws_basic_auth module conflicts with restws_oauth2_server). 2020-03-28 15:56:50 -04:00
Michael Stenta a491a84cd7 Issue #3122259: Remove Farm Tours and dependencies 2020-03-28 11:30:37 -04:00
Michael Stenta 9f794cc564 Issue #3034214 by m.stenta, paul121: farmOS OAuth2 Identity Provider 2020-03-25 11:30:30 -04:00
Michael Stenta 7da2be9b82 Disable farmOS OAuth2 clients when modules that provide them are disabled. 2020-03-25 11:28:45 -04:00
Michael Stenta 2fe098445d Refactor to remove the 'farm_api_enabled_clients' variable. 2020-03-25 11:23:51 -04:00
Michael Stenta 3826a57959 Automatically enable farmOS OAuth2 clients when the module that provides them is enabled. 2020-03-25 11:23:50 -04:00
Michael Stenta 77f0257157 Create a farm_api_enable_oauth_client() helper function. 2020-03-25 09:46:19 -04:00
Michael Stenta 16ba371638 Re-export farm_api Feature. 2020-03-25 09:15:46 -04:00
Michael Stenta 556e2283cf Fix comment. 2020-03-24 11:56:54 -04:00
Michael Stenta a44290677d Document farm_api_check_scope() return value. 2020-03-24 11:56:54 -04:00
Michael Stenta e5ef44f2fc Specify that admin/config/farm/oauth is farmOS-specific in the title and description. 2020-03-24 11:56:54 -04:00
Michael Stenta 6043edaf07 Remove unnecessary 'file path' from hook_menu(). 2020-03-24 11:56:54 -04:00
Michael Stenta aa4192c28e Rename 'administer oauth clients' permission to 'administer farm api oauth clients'. 2020-03-24 11:56:54 -04:00
Michael Stenta 00d4b789b2 Delete the farm_api_enabled_clients when farm_api is uninstalled. 2020-03-24 11:56:54 -04:00
Michael Stenta 3d62e83f0e Install oauth2_server and restws_oauth2_server in farm_api_update_7001(). 2020-03-24 11:56:54 -04:00
Michael Stenta bb2767fe5a Do not call farm_api_install() from update hook, in case it changes in the future. 2020-03-24 11:56:54 -04:00
Michael Stenta 44aa8eeed6 Move hook_install() and hook_uninstall() to top. 2020-03-24 11:56:54 -04:00
Michael Stenta a13c25ec36 Capitalize "URI". 2020-03-24 11:56:54 -04:00
Michael Stenta 54317e2743 Whitespace. 2020-03-24 11:56:54 -04:00
Michael Stenta 6fe10e0a63 Use 7.x-1.0-beta1 tagged release of restws_oauth2_server. 2020-03-24 11:56:39 -04:00
Michael Stenta d20f8987ad Remove update hook for installing old farm_api_oauth module, and remove it from install modules list. 2020-03-24 11:56:39 -04:00
paul121 b93247f4c8 Refactor authorized_callback.js to Drupal JS conventions. 2020-03-24 11:56:39 -04:00
paul121 37ebfcad3a Create separate farm_api_development module for development with OAuth. 2020-03-24 11:56:39 -04:00
paul121 6637611bf2 Enable the farmOS OAuth2 server on existing sites. 2020-03-24 11:56:39 -04:00
paul121 999d26b4ed Refactor to use hook_install and hook_uninstall not disable and enable. 2020-03-24 11:56:39 -04:00
paul121 e8455708f0 Remove unnecessary variable. 2020-03-24 11:56:39 -04:00
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