Skip to content

Conversation

@ilajili
Copy link
Contributor

@ilajili ilajili commented Sep 21, 2023

Description

In this merge request, I've implemented changes within the PluginTelemetryclass in the PayPlug library. The purpose of these modifications is to ensure that a bearer token is always included when making calls to the MPDC service. This enhancement has been introduced to establish a secure authentication process before storing data in the database.

Changes Made

  1. In the send method of the PluginTelemetryclass, I removed the false parameter when calling the post method. This change ensures that authentication is always enabled, and a bearer token is included in the request header.
  2. I have a adjusted the creation of the HttpClient object by using the default constructor and then updating the client using the provided PayPlug configuration if it is defined.

These changes will enable better control over calling the MPDC service and force the inclusion of a bearer token when needed for secure authentication.

@ilajili ilajili force-pushed the PRE-2007-add-bearer-token-mpdc branch from 801db73 to be3f1c9 Compare November 27, 2024 13:31
@ilajili ilajili self-assigned this Nov 27, 2024
@ilajili ilajili merged commit f647400 into develop Dec 5, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants