如何解决在 Spring Boot 中通过 NTLM 和 Feign Client 进行身份验证
我正在尝试使用 Feign Client 通过 NTLM 进行身份验证。
不幸的是,我有一个错误:
feign.FeignException $ Unauthorized: [401 Unauthorized] 在 [GET] 到 [url] 期间
@FeignClient(name = "ntmlClient",url = "url",configuration = FeignClientConfiguration.class)
public interface NtmlClient {
@GetMapping(consumes = "application/json",produces = "application/json")
ResponseEntity<Aup> get();
}
@Configuration
public class FeignClientConfiguration {
@Bean
public BasicAuthRequestInterceptor basicAuthRequestInterceptor() {
return new BasicAuthRequestInterceptor("admin","admin");
}
有什么提示吗? Feign Client 可以用于 NTLM 认证吗?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。