@RestController
@RequestMapping(value="/api")
public class UserJWTController
extends java.lang.Object
Constructor and Description |
---|
UserJWTController(TokenProvider tokenProvider,
org.springframework.security.authentication.AuthenticationManager authenticationManager) |
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<io.github.jhipster.sample.web.rest.UserJWTController.JWTToken> |
authorize(LoginVM loginVM) |
public UserJWTController(TokenProvider tokenProvider, org.springframework.security.authentication.AuthenticationManager authenticationManager)
@PostMapping(value="/authenticate") @Timed public org.springframework.http.ResponseEntity<io.github.jhipster.sample.web.rest.UserJWTController.JWTToken> authorize(@RequestBody LoginVM loginVM)
Copyright © 2017 Osgiliath. All rights reserved.