Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Schultz Fasit handler #135

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

jekuaitk
Copy link
Contributor

@jekuaitk jekuaitk commented Oct 6, 2024

Adds Schultz Fasit handler

Coding standards are taken care of in #136

'#description' => $this->t('Specifies which api version to use. Should probably be v2'),
];

$certificate = $this->settings->getCertificate();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should real use the key module for this type of data.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which have support for different vault backends.


if (self::LOCATOR_TYPE_AZURE_KEY_VAULT === $locatorType) {
$httpClient = new GuzzleAdapter(new Client());
$requestFactory = new RequestFactory();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would one not inject a Drupal::httpClient using PSR18/17 interfaces and not be locked into guzzle?

try {
$response = $this->client->request('POST', $endpoint, $options);
}
catch (GuzzleException $e) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This again locks the module into using guzzle?

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.

2 participants