5

我正在使用新的 BasicAuthorizationInterceptor 在 oauth2.0 中进行基本身份验证。我找不到已弃用的 BasicAuthorizationInterceptor 的替代品。请帮帮我

4

4 回答 4

2

使用BasicAuthenticationInterceptor对我有用。

于 2019-12-04T22:20:34.270 回答
0

使用BasicAuthenticationInterceptor和寻找的接口 ClientHttpRequestInterceptor

于 2021-02-21T06:22:26.380 回答
0

BasicAuthorizationInterceptor文档中:

自 5.1.1 起已弃用,支持重用 HttpHeaders.setBasicAuth(java.lang.String, java.lang.String) 的 BasicAuthenticationInterceptor,共享其默认字符集 ISO-8859-1 而不是此处使用的 UTF-8

于 2020-04-16T15:04:59.770 回答
0

这就是解决我的问题的方法:

  • 支持BasicAuthenticationInterceptor哪些重用HttpHeaders.setBasicAuth(java.lang.String, java.lang.String),共享其默认字符集 ISO-8859-1 而不是这里使用的 UTF-8 1
于 2021-02-21T05:29:41.213 回答