欢迎光临散文网 会员登陆 & 注册

【奈学】百万后端架构师千亿级真实项目案例实战营

2022-11-30 21:51 作者:娜娜络络  | 我要投稿

   public Oauth2TokenDto getAccessToken(User principle, Map<String, String> params) throws HttpRequestMethodNotSupportedException {        UsernamePasswordAuthenticationToken principal = new UsernamePasswordAuthenticationToken(principle,null,principle.getAuthorities());        OAuth2AccessToken oAuth2AccessToken = tokenEndpoint.postAccessToken(principal, params).getBody();        Oauth2TokenDto oauth2TokenDto = Oauth2TokenDto.builder()                .token(oAuth2AccessToken.getValue())                .refreshToken(oAuth2AccessToken.getRefreshToken().getValue())                .expiresIn(oAuth2AccessToken.getEx

【奈学】百万后端架构师千亿级真实项目案例实战营的评论 (共 条)

分享到微博请遵守国家法律