我正在使用新的 BasicAuthorizationInterceptor 在 oauth2.0 中进行基本身份验证。我找不到已弃用的 BasicAuthorizationInterceptor 的替代品。请帮帮我
问问题
3309 次
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 回答