Class AuthController
java.lang.Object
com.oc_p9.gateway_service.controller.AuthController
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
isValidUser
(String username, String password) reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<AuthController.AuthResponse>>
login
(AuthController.AuthRequest request) reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<Void>>
logout()
-
Field Details
-
jwtUtil
-
validityInSeconds
private final long validityInSeconds- See Also:
-
-
Constructor Details
-
AuthController
-
-
Method Details
-
login
@PostMapping(value="/auth/login", produces="application/json") public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<AuthController.AuthResponse>> login(@RequestBody AuthController.AuthRequest request) -
logout
@PostMapping("/auth/logout") public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<Void>> logout() -
isValidUser
-