Add option to set Feign version (#1005)

* Add option to set Feign version

* add java feign 9x to CI

* update usage for Play

* fix duplicated artifactId
This commit is contained in:
William Cheng
2018-09-13 10:32:09 +08:00
committed by GitHub
parent 096ac567ce
commit 95302efdfc
85 changed files with 8380 additions and 15 deletions

View File

@@ -19,7 +19,6 @@ import org.apache.oltu.oauth2.common.message.types.GrantType;
import org.apache.oltu.oauth2.common.token.BasicOAuthToken;
import feign.Client;
import feign.Request.HttpMethod;
import feign.Request.Options;
import feign.RequestInterceptor;
import feign.RequestTemplate;
@@ -93,7 +92,7 @@ public class OAuth implements RequestInterceptor {
try {
accessTokenResponse = oauthClient.accessToken(tokenRequestBuilder.buildBodyMessage());
} catch (Exception e) {
throw new RetryableException(e.getMessage(), HttpMethod.POST, e, null);
throw new RetryableException(e.getMessage(), e,null);
}
if (accessTokenResponse != null && accessTokenResponse.getAccessToken() != null) {
setAccessToken(accessTokenResponse.getAccessToken(), accessTokenResponse.getExpiresIn());