Add ClientCertificateAuthenticationOptions.

We now provide ClientCertificateAuthentication to configure the auth mount path.

Closes gh-557.
This commit is contained in:
Mark Paluch
2020-05-19 13:58:44 +02:00
parent 069eafc498
commit 7dc00613e2
4 changed files with 142 additions and 7 deletions

View File

@@ -599,6 +599,10 @@ class AppConfig extends AbstractVaultConfiguration {
@Override
public ClientAuthentication clientAuthentication() {
ClientCertificateAuthenticationOptions options = ClientCertificateAuthenticationOptions.builder()
.path(…).build();
return new ClientCertificateAuthentication(options, restOperations());
}