我有这样一行代码:
http.oauth2ResourceServer(server -> server.jwt().jwtAuthenticationConverter(jwtAuthenticationConverter()));
字符串
与
@Bean
public JwtAuthenticationConverter jwtAuthenticationConverter() {
...
}
型
jwt()已被弃用,我尝试使用jwt(JwtConfigurer)
。这是怎么回事?如何使用该函数注册我的AuthenticationConverter?
谢谢你,谢谢
1条答案
按热度按时间kxe2p93d1#
https://docs.spring.io/spring-security/reference/reactive/oauth2/resource-server/jwt.html#webflux-oauth2resourceserver-jwt-authorization-extraction
字符串