@RestController public class AuthenticationController extends Object
| Constructor and Description |
|---|
AuthenticationController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<Void> |
changePassword(@NotNull io.rocketbase.commons.dto.authentication.PasswordChangeRequest passwordChange,
org.springframework.security.core.Authentication authentication) |
org.springframework.http.ResponseEntity<io.rocketbase.commons.dto.appuser.AppUserRead> |
getAuthenticated(org.springframework.security.core.Authentication authentication) |
org.springframework.http.ResponseEntity<io.rocketbase.commons.dto.authentication.LoginResponse> |
login(@NotNull io.rocketbase.commons.dto.authentication.LoginRequest login) |
org.springframework.http.ResponseEntity<String> |
refreshToken(org.springframework.security.core.Authentication authentication) |
org.springframework.http.ResponseEntity<Void> |
updateProfile(@NotNull io.rocketbase.commons.dto.authentication.UpdateProfileRequest updateProfile,
org.springframework.security.core.Authentication authentication) |
@RequestMapping(method=POST,
path="/auth/login",
consumes="application/json")
@ResponseBody
public org.springframework.http.ResponseEntity<io.rocketbase.commons.dto.authentication.LoginResponse> login(@RequestBody @NotNull @Validated
@NotNull io.rocketbase.commons.dto.authentication.LoginRequest login)
@RequestMapping(value="/auth/me",
method=GET)
@ResponseBody
public org.springframework.http.ResponseEntity<io.rocketbase.commons.dto.appuser.AppUserRead> getAuthenticated(org.springframework.security.core.Authentication authentication)
@RequestMapping(value="/auth/change-password",
method=PUT,
consumes="application/json")
public org.springframework.http.ResponseEntity<Void> changePassword(@RequestBody @NotNull @Validated
@NotNull io.rocketbase.commons.dto.authentication.PasswordChangeRequest passwordChange,
org.springframework.security.core.Authentication authentication)
@RequestMapping(value="/auth/update-profile",
method=PUT,
consumes="application/json")
public org.springframework.http.ResponseEntity<Void> updateProfile(@RequestBody @NotNull @Validated
@NotNull io.rocketbase.commons.dto.authentication.UpdateProfileRequest updateProfile,
org.springframework.security.core.Authentication authentication)
@RequestMapping(value="/auth/refresh",
method=GET)
@ResponseBody
public org.springframework.http.ResponseEntity<String> refreshToken(org.springframework.security.core.Authentication authentication)
Copyright © 2018–2019. All rights reserved.