Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
2020-12-04 15:42:28 +01:00
parent b897fce416
commit 6dfb99f253
5 changed files with 21 additions and 19 deletions

View File

@ -8,6 +8,7 @@ import com.plannaplan.security.cas.CustomUAMCasValidator;
import com.plannaplan.services.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
@ -24,7 +25,8 @@ import io.swagger.annotations.ApiParam;
@Api(tags = { "Token" }, value = "Token", description = "Enpoints to get authorization.")
public class TokenController {
private final static String SERVICE_URL = "https://wmi.plannaplan.pl";
@Value("${plannaplan.frontendUrl}")
private String SERVICE_URL;
@Autowired
private UserService userService;