Class KerberosAuthenticationResource


  • @RestController
    @RequestMapping("/kerberos")
    public class KerberosAuthenticationResource
    extends Object
    REST controller for managing the current user's account.
    • 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.