mautic / mautic/api-library

Auth API supports for Curl CURLOPT_PROXY option

Open
#319 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
205
Forks
129
PR merge metrics
No merged PRs in 30d

Description

Hi,

For those who need to make Mautic API calls behind a proxy server, here is a code update for the AbstractAuth class.
This simply adds support for the Curl CURLOPT_PROXY option.

(see mautic.zip)

Usage :

$initAuth = new ApiAuth();
$auth = $initAuth->newAuth($settings);
$auth->setCurlProxyUrl("https://myproxy.net:8888");

+++
Benoit

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the AbstractAuth class and reviewing the attached mautic.zip for the proposed change. Check how ApiAuth creates the auth object and how the shown setCurlProxyUrl("https://myproxy.net:8888") usage should reach cURL. Done means API authentication can configure the CURLOPT_PROXY option through this interface.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api, authentication
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.