@RestController
@RequestMapping(value="/api/auth")
public class AuthController
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private AuthService |
authService |
private RefreshTokenService |
refreshTokenService |
| Constructor and Description |
|---|
AuthController() |
| Modifier and Type | Method and Description |
|---|---|
AuthenticationResponse |
login(LoginRequest loginRequest) |
org.springframework.http.ResponseEntity<java.lang.String> |
logout(@Valid RefreshTokenRequest refreshTokenRequest) |
AuthenticationResponse |
refreshTokens(@Valid RefreshTokenRequest refreshTokenRequest) |
org.springframework.http.ResponseEntity<java.lang.String> |
signup(RegisterRequest registerRequest) |
org.springframework.http.ResponseEntity<java.lang.String> |
verifyAccount(java.lang.String token) |
private final AuthService authService
private final RefreshTokenService refreshTokenService
@PostMapping(value="/signup")
public org.springframework.http.ResponseEntity<java.lang.String> signup(@RequestBody
RegisterRequest registerRequest)
@PostMapping(value="/login") public AuthenticationResponse login(@RequestBody LoginRequest loginRequest)
@PostMapping(value="refresh/token") public AuthenticationResponse refreshTokens(@Valid @RequestBody @Valid RefreshTokenRequest refreshTokenRequest)
@PostMapping(value="/logout")
public org.springframework.http.ResponseEntity<java.lang.String> logout(@Valid @RequestBody
@Valid RefreshTokenRequest refreshTokenRequest)
@GetMapping(value="accountVerification/{token}")
public org.springframework.http.ResponseEntity<java.lang.String> verifyAccount(@PathVariable
java.lang.String token)