Skip to content

Commit

Permalink
perf($auth-center): reduce injected dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnymillergh committed Jul 6, 2021
1 parent aca40f6 commit a12f130
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package com.jmsoftware.maf.authcenter.security.controller;

import cn.hutool.json.JSONUtil;
import com.jmsoftware.maf.authcenter.security.service.JwtService;
import com.jmsoftware.maf.common.bean.ResponseBodyBean;
import com.jmsoftware.maf.common.domain.authcenter.security.ParseJwtResponse;
import com.jmsoftware.maf.common.exception.SecurityException;
import com.jmsoftware.maf.springcloudstarter.configuration.MafProjectProperty;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
Expand All @@ -30,7 +28,6 @@
@RequestMapping("/jwt-remote-api")
public class JwtRemoteApiController {
private final JwtService jwtService;
private final MafProjectProperty mafProjectProperty;

/**
* Parse response body bean.
Expand All @@ -40,7 +37,6 @@ public class JwtRemoteApiController {
@GetMapping("/parse")
@ApiOperation(value = "Parse JWT", notes = "Parse JWT (Remote API)")
public ResponseBodyBean<ParseJwtResponse> parse(HttpServletRequest request) throws SecurityException {
log.info("buildProperties.getVersion {}", JSONUtil.toJsonStr(mafProjectProperty.getBuildProperties()));
return ResponseBodyBean.ofSuccess(
new ParseJwtResponse().setUsername(jwtService.getUsernameFromRequest(request)));
}
Expand Down

0 comments on commit a12f130

Please sign in to comment.