如题,springboot,org.springframework.security.oauth2
如何设置code的超时时间呢
oauth2.0使用AuthorizationCodeServices去生成code,你要生成code的时候加入自己的业务,自己去实现类加入到配置链中即可
可以参考这一篇文章看看 https://www.cnblogs.com/guos/p/11673798.html 自定义AuthorizationCodeServices重写code生成规则 ,最后在endpoints 中配置 authorizationCodeServices,将自定义的codeServices设置进去。