backend/restservice/src/main/java/com/plannaplan/controllers/TokenController.java

22 lines
708 B
Java
Raw Normal View History

2020-09-11 14:12:13 +02:00
package com.plannaplan.controllers;
import com.plannaplan.security.CasValidator;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
@RestController
@CrossOrigin
public class TokenController {
public static String SERVICE_URL = "http://localhost:3000";
// @GetMapping("/token")
// public ResponseEntity<String> getToken(@RequestParam("ticket") final String ticket) {
// CasValidator validator = new CasValidator(SERVICE_URL,ticket);
// }
}