Move default farm OAuth2 client to a separate module

Created on 3 January 2022, almost 3 years ago
Updated 31 October 2023, about 1 year ago

Problem/Motivation

Currently a default farm OAuth2 client is created whenever the farm_api module is installed (which happens on all default installs).

Following on the discussion in #3185721: Default `farm` client id allows Authorization Code grant type with any domain β†’ we may want to move this client to a separate module, so that enabling it is an intentional decision made by the site administrator.

Proposed resolution

Create a farm_api_default_client module and move the logic from farm_api_install() to it. Add this module to the list of "optional" modules in farm.profile so that admins have the option to install it via farm/settings/modules.

Remaining tasks

Implement.

User interface changes

None.

API changes

The farm OAuth2 client will only be available if the dedicated module that provides it is enabled.

Data model changes

None.

πŸ“Œ Task
Status

Fixed

Version

2.0

Component

API

Created by

πŸ‡ΊπŸ‡ΈUnited States m.stenta

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024