Package de.trustable.ca3s.core.web.rest
Class KerberosAuthenticationResource
- java.lang.Object
-
- de.trustable.ca3s.core.web.rest.KerberosAuthenticationResource
-
@RestController @RequestMapping("/kerberos") public class KerberosAuthenticationResource extends ObjectREST controller for managing the current user's account.
-
-
Constructor Summary
Constructors Constructor Description KerberosAuthenticationResource(TokenProvider tokenProvider, org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder authenticationManagerBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<String>getAuthenticatedUser(javax.servlet.http.HttpServletRequest request)GET /authenticatedUser: check if the user is authenticated, and return its login.
-
-
-
Constructor Detail
-
KerberosAuthenticationResource
public KerberosAuthenticationResource(TokenProvider tokenProvider, org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder authenticationManagerBuilder)
-
-
Method Detail
-
getAuthenticatedUser
@GetMapping("/authenticatedUser") public org.springframework.http.ResponseEntity<String> getAuthenticatedUser(javax.servlet.http.HttpServletRequest request)GET /authenticatedUser: check if the user is authenticated, and return its login.- Parameters:
request- the HTTP request.- Returns:
- the login if the user is authenticated.
-
-