Interface MultifactorAuthenticationTriggerSelectionStrategy


public interface MultifactorAuthenticationTriggerSelectionStrategy
This interface is responsible for deciding which Multifactor provider to use based on the request, service, and principal.
Since:
5.0.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Default Bean name.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets multifactor authentication triggers.
    resolve(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.apereo.cas.services.RegisteredService registeredService, org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.authentication.principal.Service service)
    Resolve the multifactor authentication provider id.
  • Field Details

  • Method Details

    • resolve

      Optional<MultifactorAuthenticationProvider> resolve(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.apereo.cas.services.RegisteredService registeredService, org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.authentication.principal.Service service) throws Throwable
      Resolve the multifactor authentication provider id.
      Parameters:
      request - The original request to check for MFA requirements
      response - the response
      registeredService - The service to check for MFA requirements
      authentication - The authentication to check for MFA requirements
      service - the service
      Returns:
      the provider id of the MFA provider required for authentication
      Throws:
      Throwable - the throwable
    • multifactorAuthenticationTriggers

      Collection<MultifactorAuthenticationTrigger> multifactorAuthenticationTriggers()
      Gets multifactor authentication triggers.
      Returns:
      the multifactor authentication triggers