Merge branch 'dev' of https://gitee.ltd/pig/pigx into dev
This commit is contained in:
commit
c2d4fb9099
7 files changed
+184
-14
No files matched your search
+4
@@ -53,6 +53,10 @@ public class PigxFeignClientInterceptor extends OAuth2FeignRequestInterceptor {
|
||||
*/
|
||||
@Override
|
||||
public void apply(RequestTemplate template) {
|
||||
if (template.headers().isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (oAuth2ClientContext != null
|
||||
&& oAuth2ClientContext.getAccessToken() != null) {
|
||||
super.apply(template);
|
||||
|
||||
Reference in new issue
Block a user