Class CallbackController

java.lang.Object
org.pac4j.springframework.web.CallbackController

@Controller public class CallbackController extends Object

This controller finishes the login process for an indirect client.

Since:
1.0.0
Author:
Jerome Leleu
  • Constructor Details

    • CallbackController

      public CallbackController()
  • Method Details

    • callback

      @RequestMapping("${pac4j.callback.path:/callback}") public void callback(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
      Handle the callback.
      Parameters:
      request - the HTTP request
      response - the HTTP response
    • callbackWithClientName

      @RequestMapping("${pac4j.callback.path/{cn}:/callback/{cn}}") public void callbackWithClientName(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, @PathVariable("cn") String cn)
      Handle the callback (client name in path).
      Parameters:
      request - the HTTP request
      response - the HTTP response
      cn - the client name