Support client credentials grant (once API supports it)

Created on 7 April 2022, over 2 years ago
Updated 30 January 2023, almost 2 years ago

Problem/Motivation

This module currently use the mautic's official API library. That library currently supports basic auth, oauth1 (we ignore that) and oauth2 but only the authorization code grant type. Since Mautic 4 the API itself supports client credentials grant. We should support that as well, as it will prevent any issues with sites that aren't super active having to re-authorize every 14 days (default refresh token lifetime in Mautic).

Proposed resolution

Either we adapt the current Oauth connector to work using client credentials, or we add a third option so we support authorization code flow client credentials. I'm not sure there is a good enough use-case to keep supporting auth code.

Remaining tasks

Create PR, test it
Note; will require a patched api-library: https://github.com/mautic/api-library/pull/269
Can patch library locally with https://patch-diff.githubusercontent.com/raw/mautic/api-library/pull/269...

User interface changes

redirect_base_url won't be needed anymore so that form field will disappear.

API changes

Should be none.

Data model changes

None.

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium Grayle

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