mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2026-01-06 12:36:56 +00:00
ISSUE-14095: added overloaded method for method initClient to accept Feign.Builder as one of the method's parameter. (#14175)
Co-authored-by: Teddy <teddy.crepineau@gmail.com>
This commit is contained in:
parent
7b2206c09b
commit
5f88c8ce9d
@ -51,13 +51,17 @@ public class OpenMetadata {
|
||||
}
|
||||
|
||||
public void initClient(OpenMetadataConnection config) {
|
||||
apiClient = new ApiClient();
|
||||
Feign.Builder builder =
|
||||
Feign.builder()
|
||||
.encoder(new FormEncoder(new JacksonEncoder(apiClient.getObjectMapper())))
|
||||
.decoder(new JacksonDecoder(apiClient.getObjectMapper()))
|
||||
.logger(new Slf4jLogger())
|
||||
.client(new OkHttpClient());
|
||||
initClient(config, builder);
|
||||
}
|
||||
|
||||
public void initClient(OpenMetadataConnection config, Feign.Builder builder) {
|
||||
apiClient = new ApiClient();
|
||||
apiClient.setFeignBuilder(builder);
|
||||
AuthenticationProviderFactory factory = new AuthenticationProviderFactory();
|
||||
apiClient.addAuthorization("oauth", factory.getAuthProvider(config));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user