Hide buildOauthRequestInterceptor under isOAuth section (#9147) (#9736)

This commit is contained in:
Ivan
2021-06-14 10:39:55 +03:00
committed by GitHub
parent 5c1270aa37
commit 856eca4ee6

View File

@@ -162,6 +162,7 @@ public class ApiClient {
return objectMapper;
}
{{#isOAuth}}
private RequestInterceptor buildOauthRequestInterceptor(OAuthFlow flow, String authorizationUrl, String tokenUrl, String scopes) {
switch (flow) {
case password:
@@ -172,6 +173,7 @@ public class ApiClient {
throw new RuntimeException("Oauth flow \"" + flow + "\" is not implemented");
}
}
{{/isOAuth}}
public ObjectMapper getObjectMapper(){
return objectMapper;