Class ImpersonationEndpoint


  • @FrameworkController
    public class ImpersonationEndpoint
    extends Object
    Author:
    Nick Crum (ncrum)
    • Method Detail

      • impersonate

        @FrameworkGetMapping("/impersonate")
        @PreAuthorize("isAuthenticated() and hasAuthority(\'ALL_IMPERSONATE\')")
        public String impersonate​(javax.servlet.http.HttpServletRequest request,
                                  javax.servlet.http.HttpServletResponse response,
                                  ImpersonationRequest impersonationRequest,
                                  org.springframework.security.core.Authentication authentication)
      • consumeToken

        @FrameworkGetMapping("/consume-token")
        public org.springframework.web.servlet.ModelAndView consumeToken​(javax.servlet.http.HttpServletResponse response,
                                                                         @RequestParam("signedJwt")
                                                                         String token)
      • getCsrUserId

        protected String getCsrUserId​(org.springframework.security.core.Authentication authentication)