All Implemented Interfaces:
SecondFactorAuthenticator

public class Duo extends AbstractSecondFactorAuthenticator
Implements the second factor using the Duo security.
Since:
8.7.3
Author:
Marco Meschieri - LogicalDOC
  • Constructor Details

    • Duo

      public Duo()
  • Method Details

    • authenticate

      public void authenticate(com.logicaldoc.core.security.user.User user, String key) throws com.logicaldoc.core.security.authentication.AuthenticationException
      Description copied from interface: SecondFactorAuthenticator
      Authenticates the given user
      Parameters:
      user - The user to check
      key - The key inputed by the user
      Throws:
      com.logicaldoc.core.security.authentication.AuthenticationException - the user was not authenticated
    • generateKey

      public String generateKey(com.logicaldoc.core.security.user.User user)
      Description copied from class: AbstractSecondFactorAuthenticator
      A generic implementation that does do nothing. Concrete implementations should put here a call to the authentication framework to send the user a key he will have to put in the login screen
      Specified by:
      generateKey in interface SecondFactorAuthenticator
      Overrides:
      generateKey in class AbstractSecondFactorAuthenticator
      Parameters:
      user - The user that will try to authenticate
      Returns:
      the result of the key generation, it may be a transaction id