-
Notifications
You must be signed in to change notification settings - Fork 3
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
base: develop
Are you sure you want to change the base?
Conversation
'#description' => $this->t('Specifies which api version to use. Should probably be v2'), | ||
]; | ||
|
||
$certificate = $this->settings->getCertificate(); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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?
Adds Schultz Fasit handler
Coding standards are taken care of in #136