-
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
Added Schultz Fasit handler #135
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.
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.
Support for keys will be added when it has been finished!
Currently, it is till work in progress.
|
||
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?
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.
PSR18/17 does not have built-in mechanisms for working with certificates. This means, we would end up needing a hard requirement on some sort of adapter (e.g. Guzzle) in order to end up with a PSR18 compliant client, anyways.
'headers' => [ | ||
'Content-Type' => 'application/xml', | ||
], | ||
'body' => $doc->saveXML(), |
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.
IfXML failing fails, body would be FALSE
What happens after this, is that behaviour handled?
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.
Added extra check to handle body being FALSE.
i was asked to review the code. |
Adds Schultz Fasit handler