Flo*_*cke 2 java spring spring-security
我有这行代码:
http.oauth2ResourceServer(server -> server.jwt().jwtAuthenticationConverter(jwtAuthenticationConverter()));
Run Code Online (Sandbox Code Playgroud)
和
@Bean
public JwtAuthenticationConverter jwtAuthenticationConverter() {
...
}
Run Code Online (Sandbox Code Playgroud)
jwt() 已弃用,我尝试使用jwt(JwtConfigurer). 这是如何运作的?如何使用该函数注册我的 AuthenticationConverter?
谢谢!
http
.oauth2ResourceServer(configurer ->
configurer.jwt(
jwtConfigurer -> jwtConfigurer.jwtAuthenticationConverter(jwtAuthenticationConverter())
)
)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
239 次 |
| 最近记录: |