ludc
2023-06-13 5569ff5c185797bb159ea2c58a52a92815e18db9
Source/UBCS/ubcs-auth/src/main/java/com/vci/ubcs/auth/support/BladeJwtTokenEnhancer.java
@@ -21,6 +21,7 @@
import lombok.AllArgsConstructor;
import org.springblade.core.jwt.JwtUtil;
import org.springblade.core.jwt.props.JwtProperties;
import org.springblade.core.secure.utils.AuthUtil;
import org.springblade.core.tool.utils.Func;
import org.springframework.security.oauth2.common.DefaultOAuth2AccessToken;
import org.springframework.security.oauth2.common.OAuth2AccessToken;
@@ -46,7 +47,6 @@
   @Override
   public OAuth2AccessToken enhance(OAuth2AccessToken accessToken, OAuth2Authentication authentication) {
      BladeUserDetails principal = (BladeUserDetails) authentication.getUserAuthentication().getPrincipal();
      //token参数增强
      Map<String, Object> info = new HashMap<>(16);
      info.put(TokenUtil.CLIENT_ID, TokenUtil.getClientIdFromHeader());