Class BankIdAuthenticationController
java.lang.Object
se.swedenconnect.spring.saml.idp.authentication.provider.external.AbstractAuthenticationController<BankIdAuthenticationProvider>
se.swedenconnect.bankid.idp.authn.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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe path to where the Spring Security SAML IdP flow directs the user agent to. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncancelView(jakarta.servlet.http.HttpServletRequest request) Method for completing the operation and returning to the SAML engine in cases of cancelled operation.complete(jakarta.servlet.http.HttpServletRequest request) Method for completing the operation and returning to the SAML engine.completeWithError(jakarta.servlet.http.HttpServletRequest request) Method for completing the operation and returning to the SAML engine in cases of failed authentication.protected BankIdAuthenticationProviderMethods inherited from class se.swedenconnect.spring.saml.idp.authentication.provider.external.AbstractAuthenticationController
cancel, complete, complete, getInputToken
-
Field Details
-
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
- Specified by:
getProviderin classAbstractAuthenticationController<BankIdAuthenticationProvider>
-