Interface AuthenticationAPI
- All Known Implementing Classes:
AuthenticationAPIImpl
@RequestMapping("/zeus")
@Validated
public interface AuthenticationAPI
Created in Intellij IDEA
User: Balaji Varadharajan
Date: 23, May 2022
Time: 4:41 PM
Project: Zeus
Package Name: com.brihaspathee.zeus.web.resource.interfaces
To change this template use File | Settings | File and Code Template
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<AuthenticationResponse>>basicAuthentication(User user) org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<AuthenticationResponse>>jwtAuthentication(AuthenticationRequest authenticationRequest)
-
Method Details
-
jwtAuthentication
@PostMapping(path="/jwt/authenticate", consumes="application/json", produces="application/json") org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<AuthenticationResponse>> jwtAuthentication(@RequestBody AuthenticationRequest authenticationRequest) throws Exception - Parameters:
authenticationRequest-- Returns:
- Throws:
Exception
-
basicAuthentication
@GetMapping("/basic/authenticate") org.springframework.http.ResponseEntity<com.brihaspathee.zeus.web.response.ZeusApiResponse<AuthenticationResponse>> basicAuthentication(@AuthenticationPrincipal User user) throws Exception - Throws:
Exception
-