Class BankIdAuthenticationController


@Controller public class BankIdAuthenticationController extends AbstractAuthenticationController<BankIdAuthenticationProvider>
The controller to which the Spring Security SAML IdP flow directs the user to initiate BankID authentication/signature.
Author:
Martin Lindström, Felix Hellman
  • Field Details

    • AUTHN_PATH

      public static final String AUTHN_PATH
      The path to where the Spring Security SAML IdP flow directs the user agent to.
      See Also:
  • Constructor Details

    • BankIdAuthenticationController

      public BankIdAuthenticationController()
  • Method Details

    • complete

      @GetMapping("/view/complete") public ModelAndView complete(jakarta.servlet.http.HttpServletRequest request)
      Method for completing the operation and returning to the SAML engine.
      Parameters:
      request - the HTTP servlet request
      Returns:
      a ModelAndView
    • completeWithError

      @GetMapping("/view/error") public ModelAndView completeWithError(jakarta.servlet.http.HttpServletRequest request)
      Method for completing the operation and returning to the SAML engine in cases of failed authentication.
      Parameters:
      request - the HTTP servlet request
      Returns:
      a ModelAndView
    • cancelView

      @GetMapping("/view/cancel") public ModelAndView cancelView(jakarta.servlet.http.HttpServletRequest request)
      Method for completing the operation and returning to the SAML engine in cases of cancelled operation.
      Parameters:
      request - the HTTP servlet request
      Returns:
      a ModelAndView
    • getProvider

      protected BankIdAuthenticationProvider getProvider()
      Specified by:
      getProvider in class AbstractAuthenticationController<BankIdAuthenticationProvider>