请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

refresh token 是否能设置只使用一次 ? 使用一次后便无效,不能再换取access token

@Override
    public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception {
        endpoints.tokenStore(tokenStore())
                .tokenEnhancer(jwtTokenEnhancer())
                .authenticationManager(authenticationManager)
                .reuseRefreshTokens(false)
                .userDetailsService(userDetailsService);
    }

reuseRefreshTokens 设置成false后,仍可以不断刷新token。

正在回答

2回答

token用的是jwt吗?用jwt是不行的,因为服务端并不存储jwt

0 回复 有任何疑惑可以回复我~
慕斯卡3527658 2020-12-23 11:07:02

同样遇到这个问题  等答案~~

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信