[英]CXF Client in Spring with Basic / NTLM Authentication sent on every request
we connect to a WebService through Apache CXF
and Spring
. 我们通过
Apache CXF
和Spring
连接到WebService。 Now, at a first glance, Basic / NTLM Authentication
works as expected. 现在,乍一看,
Basic / NTLM Authentication
可以正常工作。 Though I noticed that the Authorization Headers are sent on each and every request that is done. 尽管我注意到在完成的每个请求上都会发送授权标头。
The question is, how can I get the CXF Client to only send the Authorization Headers on the first request? 问题是,如何让CXF客户端仅在第一个请求上发送授权标头?
Please note that SESSION_MAINTAIN_PROPERTY
is already set to true, so session cookies are saved and sent on the request... 请注意,
SESSION_MAINTAIN_PROPERTY
已经设置为true,因此会话cookie已保存并根据请求发送...
many thanks in advance! 提前谢谢了!
好的,现在我实现了一个拦截器,以在请求中发送cookie时扔掉Authorization-Header,因为那时我知道我们已经通过了身份验证。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.