|
|
@@ -16,6 +16,7 @@ import org.springframework.security.authentication.DisabledException;
|
|
|
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
|
|
|
import org.springframework.security.core.Authentication;
|
|
|
import org.springframework.security.core.authority.SimpleGrantedAuthority;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
@@ -93,6 +94,12 @@ public class AuthenticationController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @GetMapping("/getTime")
|
|
|
+ public Long getTime() {
|
|
|
+ return System.currentTimeMillis();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* Authenticates the user. If something is wrong, an {@link AuthenticationException} will be thrown
|
|
|
*
|