Package org.pac4j.springframework.web
Class CallbackController
java.lang.Object
org.pac4j.springframework.web.CallbackController
This controller finishes the login process for an indirect client.
- Since:
- 1.0.0
- Author:
- Jerome Leleu
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
callback
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Handle the callback.void
callbackWithClientName
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String cn) Handle the callback (client name in path).
-
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 requestresponse
- 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 requestresponse
- the HTTP responsecn
- the client name
-